I have a big problem this morning. My laptop freezed during an update.
I made a hard reboot with power button.
I think crash happened during the download sequence but seeing errors I’m not sure.
System boots but some apps won’t start and I can’t run Yay nor pacman.
[nicolas@arnold-gnome-nicolas ~]$ yay
yay: error while loading shared libraries: /usr/lib/libalpm.so.13: file too short
[nicolas@arnold-gnome-nicolas ~]$ sudo pacman -Syyu
[sudo] Mot de passe de nicolas :
[nicolas@arnold-gnome-nicolas ~]$ gnome-terminal
gnome-terminal: error while loading shared libraries: /usr/lib/libvte-2.91.so.0: file too short
[nicolas@arnold-gnome-nicolas ~]$ waybar -c ~/.config/waybar-sway/config -s ~/.config/waybar-sway/style.css
waybar: error while loading shared libraries: /usr/lib/libmpdclient.so.2: file too short
I run Kernel: 6.1.12-1-ck-generic-v3.
It’s the first time this happened to me and I absolutely don’t kown what to do. . . If I can find a solultion without reinstall it’s better!
OK.
And a tip: if possible, be careful when installing AUR stuff. The recommendation is to prefer official packages over the AUR. It means avoid installing from AUR if a similar official package is available.
Doing this way can avoid some weird issues.
But we are only diggin in the dark here could been caused by something you have tried out before or a file corruption from a system crash or failed update… ?
And reinstalling pacman from teh livesession could be the trick to get pacman working again what would make you able to go reionstall system packages or all packages… to remove corruptions.
Mount your installed systems root under /mnt like you woiuld do for the arch-chrooting… sudo pacman --sysroot /mnt -Syu pacman linux linux-headers