After a crash during a system update where I had to hard reboot, the system failed to boot and stuck at switch to root message.
So I followed instructions about repairing my system using live usb and arch-chroot https://discovery.endeavouros.com/system-rescue/arch-chroot/2022/12/
After mounting EFI and main partitions in /mnt, I logged with arch-chroot to repair broken system.
Yet, when I try to use pacman commands like pacman -Syu, I get errors like
pacman: error while loading shared libraries: /usr/lib/libarchive.so.13: file too short
After some additional research, I tried to update signatures with ./pacman-static -S archlinux-keyring on the mounted system.
I got same kind of error
[root@EndeavourOS /]# ./pacman-static -S archlinux-keyring
warning: archlinux-keyring-20240313-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change
core/archlinux-keyring 20240313-1 20240313-1 0.00 MiB
Total Installed Size: 1.66 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [---------------------------------------------------------------------------------------] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [---------------------------------------------------------------------------------------] 100%
error: GPGME error: Invalid crypto engine
error: archlinux-keyring: missing required signature
:: File /var/cache/pacman/pkg/archlinux-keyring-20240313-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
[root@EndeavourOS /]# pacman-key --init
pacman-conf: error while loading shared libraries: /usr/lib/libarchive.so.13: file too short
mkdir: cannot create directory ââ: No such file or directory
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
chmod: cannot access '/trustdb.gpg': No such file or directory
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> Generating pacman master key. This may take some time.
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> Updating trust database...
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> ERROR: Trust database could not be updated.
And when I try the following commands from the arch-chroot
The first pacman-static command outputs bunch of errors like below:
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: './var/cache/pacman/pkg/btrfs-progs-6.3.2-1-x86_64.pkg.tar.zst': invalid or corrupted package (PGP signature)
warning: gnupg-2.4.5-1 is up to date -- reinstalling
warning: gpgme-1.23.2-1 is up to date -- reinstalling
error: could not open file ./usr/lib/firmware/iwlwifi-so-a0-gf-a0-81.ucode.zst: Unrecognized archive format
error: './usr/lib/firmware/iwlwifi-so-a0-gf-a0-81.ucode.zst': cannot open package file
error: could not open file ./usr/lib/firmware/sxg/saharadbgdownloadB.sys.zst: Unrecognized archive format
error: './usr/lib/firmware/sxg/saharadbgdownloadB.sys.zst': cannot open package file
error: could not open file ./usr/lib/firmware/sxg/saharadownloadB.sys.zst: Unrecognized archive format
error: './usr/lib/firmware/sxg/saharadownloadB.sys.zst': cannot open package file
error: could not open file ./usr/lib/firmware/amd/amd_sev_fam19h_model1xh.sbin.zst: Unrecognized archive format
error: './usr/lib/firmware/amd/amd_sev_fam19h_model1xh.sbin.zst': cannot open package file
...
I also reinstalled kernel
I still had some broken packages, plus additional kernels, but I could reboot to the main system, update GPG keys with pacman-key --init and pacman-key --populate archlinux endeavouros, and clean the old and unused kernels with kernel-install remove
I may have to check if some damaged packages still remain thoughâŚ
Et voilĂ ! A bit painful though for a first time. This can be closed !
Yes, indeed, but I also read something about help vampirism here though, I thought this was related.
But it was my entire fault, I didnât pay attention to the rules when first posting, as a lot of relevant and useful info can be found on the arch wiki and the arch forum ! Naively thinking vanilla arch and derivatives were one community with specificities of course.
I was thinking it may be useful to remind newbie people like me on endeavouros that this is forbidden.
Indeed it is, and I just wanted to point out that itâs not because of help vampirism, which is a separate thing thatâs not tolerated there, but because forum rules specifically state that the forum is for Arch only - not âArch-basedâ distros.
The main reason for this is that Arch-based distros are pre-configured, so the user usually does not know how to answer questions about what configurations/daemons/services are in use, whereas with an actual Arch installation the user would know because they set it up themselves. Arch is a DIY distro.
I would also like to point out for the people who say the Arch forum is rude and mean and nasty that you got a polite, useful answer to your question there in the same post that pointed out the rules to you .
Interesting, I get it, thank you for this clarification ! Despite this pre-configuration, is it correct that one could find the relevant info by digging into his pre-configured system, thus being able to tell what is actually in use ? Also, do features like pacman present any pre-configuration that would make endeavouros specific on this layer ?
Donât know if you said that because of my message, but despite my foolishness, I did not feel like the Arch forum was rude or mean, I would rather truly say it is a masterpiece of useful info and skilled people I will definitely be more watchful in the future (I admit I was in a hurry) !
(and please excuse me for being quite off-topic, but I find the topic interesting ! Iâve been a Linux user for a long time, but I consider myself quite ignorant on philosophical questions about distributions and related communities)
Yes, but that has no bearing on the fact that the Arch forum is for support of Arch only, not Arch-based distros. The rule is clear, and when creating an account an individual agrees to abide by forum rules.
These boards are for the support of Arch Linux, and Arch ONLY
If you have installed Archbang, Artix, Chakra, EndeavourOS, Evo/Lution, Manjaro, Whatever, you are NOT running Arch Linux. Similarly, if you followed some random video on YouTube or used an automated script you found on a blog, you are NOT running Arch Linux, so do not expect any support, sympathy or anything but your thread being closed and told to move along.
Donât break a forumâs rules. Youâre not using Arch, youâre using an Arch-based distro, so the place to ask for assistance is that distroâs forums. Uisng the Arch forum to get assistance for Arco, Endeavour, Manjaro, Garuda, etc is wasting the time and effort of the volunteers who are there to help Arch users.
Feel free to browse the Arch forum for pertinent information, and the Arch wiki is available for everyone (and, like the Gentoo wiki, the Arch wiki has information that is useful no matter what distro is being used). But donât post on the Arch forums if you havenât installed Arch itself.