Trouble updating after fresh install

update
pacman
cinnamon
manjaro

#1

My HD broke so I had to install a fresh version (this one) and after that I can’t update the system, been google-ing and searching for solutions but nothing helps, at least nothing I understand.

sudo pacman -Syyu
:: Synchronising package databases…
core 138,3 KiB 658K/s 00:00 [####################################################################] 100%
extra 1806,0 KiB 1034K/s 00:02 [####################################################################] 100%
community 4,1 MiB 728K/s 00:06 [####################################################################] 100%
multilib 182,2 KiB 1091K/s 00:00 [####################################################################] 100%
:: Starting full system upgrade…
:: Replace manjaro-documentation with extra/manjaro-documentation-en? [Y/n] y
resolving dependencies…
looking for conflicting packages…
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-glu: installing mhwd (0.6.0rc1-4) breaks dependency ‘lib32-libgl’

Even tried pacman -R lib32-libgl but it wasn’t there. What I can’t get my head around is how something that isn’t there can be a dependency.

I updated all mirrors so they are not the problem.


#2

Is that the only one ?
It may be an old file that has since been retired (possibly part of Archs recent purges?)
If it is the only one I would probably just ‘–force’ upgrade needed packages before updating everything

sudo pacman -Sy lib32-glu --force
sudo pacman -Syyu

But maybe someone else can shed light


#3

This is what I got:

[bjarkih@Tardis ~]$ sudo pacman -Sy lib32-glu --force
[sudo] password for bjarkih:
:: Synchronising package databases…
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: lib32-glu-9.0.0-3 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Packages (1) lib32-glu-9.0.0-3

Total Download Size: 0,19 MiB
Total Installed Size: 0,55 MiB
Net Upgrade Size: 0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
lib32-glu-9.0.0-3-x86_64 192,5 KiB 615K/s 00:00 [####################################################################] 100%
(1/1) checking keys in keyring [####################################################################] 100%
(1/1) checking package integrity [####################################################################] 100%
(1/1) loading package files [####################################################################] 100%
(1/1) checking for file conflicts [####################################################################] 100%
(1/1) checking available disk space [####################################################################] 100%
:: Processing package changes…
(1/1) reinstalling lib32-glu [####################################################################] 100%
:: Running post-transaction hooks…
(1/1) Arming ConditionNeedsUpdate…
[bjarkih@Tardis ~]$ sudo pacman -Syyu
:: Synchronising package databases…
core 138,3 KiB 466K/s 00:00 [####################################################################] 100%
extra 1806,0 KiB 919K/s 00:02 [####################################################################] 100%
community 4,1 MiB 757K/s 00:06 [####################################################################] 100%
multilib 182,2 KiB 613K/s 00:00 [####################################################################] 100%
:: Starting full system upgrade…
:: Replace manjaro-documentation with extra/manjaro-documentation-en? [Y/n] y
resolving dependencies…
looking for conflicting packages…
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-glu: installing mhwd (0.6.0rc1-4) breaks dependency ‘lib32-libgl’
[bjarkih@Tardis ~]$ sudo pacman -Sy lib32-libgl
:: Synchronising package databases…
core is up to date
extra is up to date
community is up to date
multilib is up to date
resolving dependencies…
looking for conflicting packages…
:: mesa and mhwd are in conflict (mesa-libgl). Remove mhwd? [y/N] y
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency
warning: dependency cycle detected:
warning: lib32-mesa will be installed before its lib32-libglvnd dependency

Packages (17) lib32-expat-2.2.0-1 lib32-libdrm-2.4.79-1 lib32-libpciaccess-0.13.4-1 lib32-libtxc_dxtn-1.0.1-5 lib32-libxdamage-1.1.4-2 lib32-libxml2-2.9.3-1 lib32-libxshmfence-1.2-1
lib32-libxxf86vm-1.1.4-1 lib32-llvm-libs-4.0.0-1 lib32-mesa-17.0.4-2 lib32-ncurses-6.0-2 lib32-readline-7.0-1 lib32-wayland-1.13.0-1 libglvnd-0.2.999+g4ba53457-2
mesa-17.0.4-2 mhwd-0.5.9-3 [removal] lib32-libglvnd-0.2.999+g4ba53457-2

Total Download Size: 32,27 MiB
Total Installed Size: 128,57 MiB
Net Upgrade Size: 91,11 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
mesa-17.0.4-2-x86_64 9,2 MiB 1111K/s 00:08 [####################################################################] 100%
libglvnd-0.2.999+g4ba53457-2-x86_64 180,1 KiB 808K/s 00:00 [####################################################################] 100%
lib32-libpciaccess-0.13.4-1-x86_64 16,7 KiB 99,8K/s 00:00 [####################################################################] 100%
lib32-libdrm-2.4.79-1-x86_64 135,1 KiB 319K/s 00:00 [####################################################################] 100%
lib32-libxxf86vm-1.1.4-1-x86_64 8,3 KiB 1389K/s 00:00 [####################################################################] 100%
lib32-libxdamage-1.1.4-2-x86_64 4,5 KiB 0,00B/s 00:00 [####################################################################] 100%
lib32-libxshmfence-1.2-1-x86_64 3,5 KiB 0,00B/s 00:00 [####################################################################] 100%
lib32-ncurses-6.0-2-x86_64 222,3 KiB 560K/s 00:00 [####################################################################] 100%
lib32-llvm-libs-4.0.0-1-x86_64 13,2 MiB 800K/s 00:17 [####################################################################] 100%
lib32-expat-2.2.0-1-x86_64 55,5 KiB 1633K/s 00:00 [####################################################################] 100%
lib32-readline-7.0-1-x86_64 126,3 KiB 859K/s 00:00 [####################################################################] 100%
lib32-libxml2-2.9.3-1-x86_64 550,0 KiB 458K/s 00:01 [####################################################################] 100%
lib32-wayland-1.13.0-1-x86_64 45,1 KiB 165K/s 00:00 [####################################################################] 100%
lib32-libtxc_dxtn-1.0.1-5-x86_64 9,2 KiB 1529K/s 00:00 [####################################################################] 100%
lib32-mesa-17.0.4-2-x86_64 8,4 MiB 455K/s 00:19 [####################################################################] 100%
lib32-libglvnd-0.2.999+g4ba53457-2-x86_64 159,0 KiB 723K/s 00:00 [####################################################################] 100%
(16/16) checking keys in keyring [####################################################################] 100%
(16/16) checking package integrity [####################################################################] 100%
(16/16) loading package files [####################################################################] 100%
(16/16) checking for file conflicts [####################################################################] 100%
error: failed to commit transaction (conflicting files)
libglvnd: /usr/lib/libEGL.so exists in filesystem
libglvnd: /usr/lib/libEGL.so.1 exists in filesystem
libglvnd: /usr/lib/libEGL.so.1.0.0 exists in filesystem
libglvnd: /usr/lib/libGL.so exists in filesystem
libglvnd: /usr/lib/libGL.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2.0.0 exists in filesystem
Errors occurred, no packages were upgraded.

ps. how do I limit the number of lines in quated text? (individual window to scroll in)


#4

Oh lets not remove mesa or mhwd :wink:
(it seems you got caught in the perfect stable iso vs package EOL vs updates vs depends storm)

First lets go a different way:

sudo pacman -Syu```

That should take care of core components first (like mhwd) and then hopefully it can update smooth after.

#5

Sorry :frowning:

sudo pacman -S manjaro-system
[sudo] password for bjarkih:
warning: manjaro-system-20170406-5 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Packages (1) manjaro-system-20170406-5

Total Download Size: 0,02 MiB
Total Installed Size: 0,00 MiB
Net Upgrade Size: 0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
manjaro-system-20170406-5-any 19,3 KiB 261K/s 00:00 [########################################################] 100%
(1/1) checking keys in keyring [########################################################] 100%
(1/1) checking package integrity [########################################################] 100%
(1/1) loading package files [########################################################] 100%
(1/1) checking for file conflicts [########################################################] 100%
(1/1) checking available disk space [########################################################] 100%
:: Processing package changes…
(1/1) reinstalling manjaro-system [########################################################] 100%
==> Fix mesa-stack …
resolving dependencies…
looking for conflicting packages…
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-glu: installing mhwd (0.6.0rc1-4) breaks dependency 'lib32-libgl’
warning: lock file missing /var/lib/pacman/db.lck


#6

OK - looks like last time it ‘canceled the update’.
We need to fix the lock first then another ‘selective’ upgrade
Make sure no other updates (terminal windows or tray applets or pamac/octopi) are running.

Then follow these steps:

sudo rm /var/lib/pacman/db.lck
sudo pacman -Syy
sudo pacman -S lib32-mesa
[answer yes to remove mhwd]
sudo pacman -Syu mhwd


#7

rm: cannot remove ‘/var/lib/pacman/db.lck’: No such file or directory


#8

OOPS it says ‘missing’ not locked. Please reboot and make sure no instance of pacman is running and go ahead with the other commands.


#9

I want to start by thanking you for all the help, but now I’m going to sleep. It’s past midnight here in Iceland :wink:

[bjarkih@Tardis ~]$ sudo rm /var/lib/pacman/db.lck
[sudo] password for bjarkih:
rm: cannot remove ‘/var/lib/pacman/db.lck’: No such file or directory
[bjarkih@Tardis ~]$ sudo pacman -Syy
:: Synchronising package databases…
core 138,3 KiB 377K/s 00:00 [########################################################] 100%
extra 1806,0 KiB 383K/s 00:05 [########################################################] 100%
community 4,1 MiB 933K/s 00:05 [########################################################] 100%
multilib 182,2 KiB 929K/s 00:00 [########################################################] 100%
[bjarkih@Tardis ~]$ sudo pacman -S lib32-mesa
resolving dependencies…
looking for conflicting packages…
:: lib32-mesa and mhwd are in conflict (lib32-mesa-libgl). Remove mhwd? [y/N] y
warning: dependency cycle detected:
warning: lib32-libglvnd will be installed before its lib32-mesa dependency
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency

Packages (17) lib32-expat-2.2.0-1 lib32-libdrm-2.4.79-1 lib32-libglvnd-0.2.999+g4ba53457-2 lib32-libpciaccess-0.13.4-1 lib32-libtxc_dxtn-1.0.1-5
lib32-libxdamage-1.1.4-2 lib32-libxml2-2.9.3-1 lib32-libxshmfence-1.2-1 lib32-libxxf86vm-1.1.4-1 lib32-llvm-libs-4.0.0-1
lib32-ncurses-6.0-2 lib32-readline-7.0-1 lib32-wayland-1.13.0-1 libglvnd-0.2.999+g4ba53457-2 mesa-17.0.4-2 mhwd-0.5.9-3 [removal]
lib32-mesa-17.0.4-2

Total Installed Size: 128,57 MiB
Net Upgrade Size: 91,11 MiB

:: Proceed with installation? [Y/n] y
(16/16) checking keys in keyring [########################################################] 100%
(16/16) checking package integrity [########################################################] 100%
(16/16) loading package files [########################################################] 100%
(16/16) checking for file conflicts [########################################################] 100%
error: failed to commit transaction (conflicting files)
libglvnd: /usr/lib/libEGL.so exists in filesystem
libglvnd: /usr/lib/libEGL.so.1 exists in filesystem
libglvnd: /usr/lib/libEGL.so.1.0.0 exists in filesystem
libglvnd: /usr/lib/libGL.so exists in filesystem
libglvnd: /usr/lib/libGL.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2.0.0 exists in filesystem
Errors occurred, no packages were upgraded.


#10

OK. This all seems related to the mesa stack update from last month:



#11

I finally gave up and decided to do something by trial & error (that is, didn’t what I was doing). Decided that I had nothing to loose even if I broke the system :slight_smile:

started by:

sudo pacman -S lib32-libgl
resolving dependencies…
looking for conflicting packages…
:: mesa and mhwd are in conflict (mesa-libgl). Remove mhwd? [y/N] y
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency
warning: dependency cycle detected:
warning: lib32-mesa will be installed before its lib32-libglvnd dependency

Packages (17) lib32-expat-2.2.0-1 lib32-libdrm-2.4.79-1 lib32-libpciaccess-0.13.4-1 lib32-libtxc_dxtn-1.0.1-5 lib32-libxdamage-1.1.4-2
lib32-libxml2-2.9.3-1 lib32-libxshmfence-1.2-1 lib32-libxxf86vm-1.1.4-1 lib32-llvm-libs-4.0.0-1 lib32-mesa-17.0.4-2 lib32-ncurses-6.0-2
lib32-readline-7.0-1 lib32-wayland-1.13.0-1 libglvnd-0.2.999+g4ba53457-2 mesa-17.0.4-2 mhwd-0.5.9-3 [removal]
lib32-libglvnd-0.2.999+g4ba53457-2

Total Installed Size: 128,57 MiB
Net Upgrade Size: 91,11 MiB

:: Proceed with installation? [Y/n] y
(16/16) checking keys in keyring [########################################################] 100%
(16/16) checking package integrity [########################################################] 100%
(16/16) loading package files [########################################################] 100%
(16/16) checking for file conflicts [########################################################] 100%
error: failed to commit transaction (conflicting files)
libglvnd: /usr/lib/libEGL.so exists in filesystem
libglvnd: /usr/lib/libEGL.so.1 exists in filesystem
libglvnd: /usr/lib/libEGL.so.1.0.0 exists in filesystem
libglvnd: /usr/lib/libGL.so exists in filesystem
libglvnd: /usr/lib/libGL.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so exists in filesystem
libglvnd: /usr/lib/libGLESv1_CM.so.1 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2 exists in filesystem
libglvnd: /usr/lib/libGLESv2.so.2.0.0 exists in filesystem
Errors occurred, no packages were upgraded.

then deleted those files that existed in filesystem, the list at the bottom. Then ran

sudo pacman -Syyu

And all is well.

edit: should I mark the thread as [solved]?


#12

Hey that worked :slight_smile: