You are not logged in.
I updated my system using
yay -Syyuu
. It crashed during the update. I mounted my root partition to /mnt and boot partition to /mnt/boot and chroot in the system by
arch-chroot
using a live cd.
Then tried pacman -Syu it said
pacman: error while loading shared libraries: /usr/lib/libcurl.so.4: file too short
.I tried checking the /var/log/pacman.log it had garbage characters at the end of the log.
I then tried following https://wiki.archlinux.org/title/Pacman … an_upgrade but it said
error failed to synchronize all databases (unable to lock database)
for which I tried
rm /var/lib/pacman/db.lck
but the file db.lck does not exsit.
Any steps I can do from here to recover my system?
Offline
I'm assuming you tried that rm command from the live disk instead of in the chroot. You'd have to prefix it with where you have the actual root mounted.
Offline
I checked the list of files and directories in /mnt/var/lib/pacman/ and found only /local directory in it.
Last edited by akss13 (2021-09-22 19:23:17)
Offline