Pamac upgrade fails: cannot open shared object file

Updating my software with the usual:

pamac upgrade

gives the error:

pamac: error while loading shared libraries: libpamac.so: cannot open shared object file: No such file or directory

What should I do?

Fully update your system with pacman:

$ sudo pacman -Syu
1 Like

Upgrading with pacman fails too. Spits a bunch of things like:

warning: could not get file information for /usr/lib/libreoffice/share/xdg/draw.desktop

And then:

:: Running pre-transaction hooks...
(1/3) Removing linux initcpios...
(2/3) Remove Firefox Distribution Settings
(3/4) Unregistering Haskell modules...
error: command failed to execute correctly
:: Processing package changes...
(1/78) upgrading firefox            [#############] 100%

And then it hangs.

I think somehow you messed up your system or your hardware is failing. The warnings are just warnings and they are not going to stop the update. If the system hangs I think there is something else going on… hard disk failure, maybe? Or RAM?

When you say that it hangs, do you mean just the system update or the whole system?

Just the update hangs. My system is still usable, and the biggest cpu and mem usage is coming from firefox, not pacman

Do you have firefox open during the update?

With firefox closed, it gives me all the

warning: could not get file information for usr/share/...

and then fails again after

(2/3) Unregistering Haskell modules...
error: command failed to execute correctly
:: Processing package changes...

and then hangs (pacman, not the system)

Try the verbose option to see if it gives more information:

pacman -Syu -v

Also, if possible, post here the whole output of the command.