Can't install Visual Studio Code due to breaking dependencies

Hello

I have recently installed EndeavourOS for the first time.
Now I was trying to install Visual Studio Code by running sudo pacman -S code.
At first when I tried to install I had some errors regarding some mirrors. So I updated the mirror list and ran yay -Syyu. Now when running yay I have a long list of “local package is newer than extra/core”.

Now sudo pacman -S code results in the following error:

error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by gspell
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by harfbuzz-icu
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by raptor

How can I resolve these dependencies? And what (if anything) should I do about the packages that are newer than extra/core?

I am a bit confused and hope somebody can help me.
Thank you.

It sounds like you are connected to an out of date mirror.

Try commenting out the first mirror in the list at /etc/pacman.d/mirrorlist

Then run

sudo pacman -Syu code
1 Like

Thank you for you fast reply.
I tried the steps provided. However, I still have the same error with the dependencies.

Can you post the full output from the command?

:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
warning: archlinux-keyring: local (20240520-1) is newer than core (20240429-1)
warning: bluez: local (5.76-1) is newer than extra (5.75-1)
warning: bluez-libs: local (5.76-1) is newer than extra (5.75-1)
warning: bluez-utils: local (5.76-1) is newer than extra (5.75-1)
warning: device-mapper: local (2.03.24-1) is newer than core (2.03.23-3)
warning: enchant: local (2.7.3-2) is newer than extra (2.7.3-1)
warning: fastfetch: local (2.13.1-1) is newer than extra (2.12.0-1)
warning: fwupd: local (1.9.20-1) is newer than extra (1.9.19-1)
warning: ghostscript: local (10.03.1-1) is newer than extra (10.03.0-2)
warning: glances: local (4.0.5-1) is newer than extra (3.4.0.5-3)
warning: glib2: local (2.80.2-2) is newer than core (2.80.2-1)
warning: gspell: local (1.12.2-3) is newer than extra (1.12.2-2)
warning: gtk3: local (1:3.24.42-1) is newer than extra (1:3.24.41-1)
warning: harfbuzz: local (8.5.0-1) is newer than extra (8.4.0-2)
warning: harfbuzz-icu: local (8.5.0-1) is newer than extra (8.4.0-2)
warning: haruna: local (1.1.1-1) is newer than extra (1.1.0-1)
warning: icu: local (75.1-1) is newer than core (74.2-2)
warning: jasper: local (4.2.4-1) is newer than extra (4.2.1-1)
warning: kdeplasma-addons: local (6.0.4-2) is newer than extra (6.0.4-1)
warning: konsole: local (24.02.2-2) is newer than extra (24.02.2-1)
warning: kwayland5: local (5.116.0-1) is newer than extra (5.115.0-1)
warning: kwindowsystem5: local (5.116.0-1) is newer than extra (5.115.0-1)
warning: libass: local (0.17.2-1) is newer than extra (0.17.1-4)
warning: libgusb: local (0.4.9-1) is newer than extra (0.4.8-2)
warning: libqalculate: local (5.1.1-2) is newer than extra (5.1.1-1)
warning: liburing: local (2.6-2) is newer than extra (2.6-1)
warning: libwbclient: local (4.20.1-2) is newer than extra (4.20.1-1)
warning: libxml2: local (2.12.7-1) is newer than core (2.12.6-2)
warning: linux: local (6.9.1.arch1-1) is newer than core (6.8.9.arch1-2)
warning: linux-headers: local (6.9.1.arch1-1) is newer than core (6.8.9.arch1-2)
warning: linux-lts: local (6.6.31-1) is newer than core (6.6.30-2)
warning: linux-lts-headers: local (6.6.31-1) is newer than core (6.6.30-2)
warning: llvm-libs: local (17.0.6-5) is newer than extra (17.0.6-4)
warning: lvm2: local (2.03.24-1) is newer than core (2.03.23-3)
warning: nftables: local (1:1.0.9-3) is newer than extra (1:1.0.9-2)
warning: nvidia: local (550.78-4) is newer than extra (550.78-2)
warning: nvidia-lts: local (1:550.78-3) is newer than extra (1:550.78-2)
warning: pcsclite: local (2.2.2-1) is newer than extra (2.2.1-1)
warning: plasma-desktop: local (6.0.4-2) is newer than extra (6.0.4-1)
warning: plasma-workspace: local (6.0.4-2) is newer than extra (6.0.4-1)
warning: python-annotated-types: local (0.7.0-1) is newer than extra (0.6.0-3)
warning: python-packaging: local (24.0-1) is newer than extra (23.2-3)
warning: qt5-base: local (5.15.13+kde+r145-2) is newer than extra (5.15.13+kde+r145-1)
warning: qt6-5compat: local (6.7.0-2) is newer than extra (6.7.0-1)
warning: qt6-base: local (6.7.0-7) is newer than extra (6.7.0-6)
warning: qt6-webengine: local (6.7.0-2) is newer than extra (6.7.0-1)
warning: raptor: local (2.0.16-5) is newer than extra (2.0.16-4)
warning: samba: local (4.20.1-2) is newer than extra (4.20.1-1)
warning: smbclient: local (4.20.1-2) is newer than extra (4.20.1-1)
warning: svt-av1: local (2.1.0-1) is newer than extra (2.0.0-1)
warning: tracker3: local (3.7.3-2) is newer than extra (3.7.3-1)
warning: vapoursynth: local (R68-1) is newer than extra (R66-2)
warning: vulkan-headers: local (1:1.3.285-1) is newer than extra (1:1.3.279-1)
warning: vulkan-icd-loader: local (1.3.285-1) is newer than extra (1.3.279-1)
warning: webkit2gtk-4.1: local (2.44.2-1) is newer than extra (2.44.1-1)
warning: xfsprogs: local (6.8.0-2) is newer than core (6.7.0-1)
warning: xorg-xwayland: local (24.1.0-1) is newer than extra (23.2.7-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by gspell
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by harfbuzz-icu
:: installing icu (74.2-2) breaks dependency 'libicuuc.so=75-64' required by raptor

Still looks like you are connected to an old mirror. Comment out the next mirror on your list.

Also, make sure you are editing the file I mentioned above and not one of your other mirrorlist files.

1 Like

Ok commenting out the second mirror as well worked.
Thank you for your help!

Why were my mirrors old even tough I updated them? How can I avoid this in the future?

1 Like

Often times, mirror update routines connect you to the fastest mirror. The fastest mirror isn’t always the most up-to-date.

I rate my mirrors with something like this command:

rate-mirrors arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist
1 Like

Updating mirrors with the endeavourOS commands only does so much. pacman -Syyu can force a refresh of all package databases, which usually solves this issue for me if updating the mirrors doesn’t. Use the man <command> to view options for most commands, don’t run things without understanding them.

On that note. pacman -S code will install OSS-code, which is a minimal open source VS code build that does not have access to the microsoft extension store, only the opensource version, limiting the official microsoft extension options (eg, no pylance). You can pick up a microsoft vs code build from the AUR with Yay if you choose.

1 Like

Thank you for the additional comments.
And I also just realized that there are no extensions. I removed the package and installed the AUR version instead.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.