You are not logged in.
Hello everyone.
I ran a regular, weekly update today and ran into errors that I cannot debug.
I looked around all day today trying to figure this out but I wasn't successful -- I would appreciate your help.
I don't know how to save output of commands after they fail -- because the system ends up in a read-only state so it's impossible to save files or copy anything -- please let me know how can I provide more information.
Context:
-
pacman -Syucommand returned:
error: glib2: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/glib2-2.80.0-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: systemd: signature from "Christian Hesse <eworm@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/systemd-255.5-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: gtk4: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/gtk4-1:4.14.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: libvirt: signature from "Frederik Schwan <frederik.schwan@linux.com>" is invalid
:: File /var/cache/pacman/pkg/libvirt-1:10.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: zellij: signature from "Caleb Maclennan <alerque@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/zellij-0.40.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.- Running pacman -Syu --debug shows that several important libraries like glibc, glib2, libelf and several others are not satisfied as dependencies for other packages like systemd and some others.
- I noticed that each time I tried to run pacman -Syu (and accept deleting corrupted packages) it would fail while trying to update libreoffice-fresh saying that the system is read-only. I tried deleting libreoffice however, I get errors saying:
error: cannot remove file '/usr/': Read-only file system.
So far I tried:
Accepting to delete corrupted packages -> this leads to update failing and leaving the file-system in read-only state
Checking PGP signatures as per this discussion -> I found several undef keys, I deleted them along with the ones above that are corrupted and re-populated archlinux keyring
Completely remove /etc/pacman.d/gnupg and re-init it -- as per the ArchWiki
Reinstall archlinux-keyring
Force refresh keys with pacman-key --refresh-keys and mirrors with pacman -Syyu
Clean pacman cache with pacman -Sc
Last edited by Tibor (2024-05-03 19:43:57)
Offline