You are not logged in.
I was running pacman -Syyu the other day and my PC froze. I forced a shutdown, booted it up only to be met with the following error:
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---My PC has frozen before, but not this fatally. still, there's a forum post on this, which says that one of the possible causes is that my partitions aren't mounted.
So alright, I boot up arch from a usb stick on the same machine, run lsblk and indeed my partitions aren't mounted. I go through the standard partition mounting. But after some time and confusion I figure out that my fstab is perfectly fine and specifies the right places to mount everything, it's just everything is unmounted at shutdown and booting from a USB didn't mount everything using my fstab. Alright, I've learned something, but haven't solved the problem.
Then I look at this post, which tells me I should arch-chroot into my system and run pacman -S linux. So I do that, but I get a different error:
pacman: error while loading shared libraries: /usr/lib/libgpg-error.so.0 file is too shorttrying a couple other commands, like systemctl and reboot (from within the chroot) gives the exact same error, except pacman is replaced by the command I'm trying. Running cat /usr/lib/libgpg-error.so.0 reveals that the file exists, but is empty.
So, I'm stuck. Something is broken, but I don't know what it is, how it broke or how to fix it. Any help is much appreciated.
Last edited by RichKat (2020-12-28 18:05:32)
Offline
This has nothing to do with the partitions not mounting. You have filesystem corruption and need to reinstall all of the packages that were involved with the update you were doing. Since pacman is broken, you need to either do it from the live disk with pacman --root or with pacman-static.
Offline
Alright, I don't know about pacman-static, but running
pacman --root /mnt/ -Syyu(after mounting the broken system to /mnt) gives a number of errors.
Three errors like this:
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No dataAnd four like this:
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to synchronize all databasesTrying to install any package like this similarly gives the three GPGME errors, plus three errors like this:
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))Offline