On 23-09-15 09:49:13, Łukasz Michalski wrote:
Hi,
I tried to pacman -Suy today and it failed:
...
What could I do to fix this problem? Do I understand it right that ths is a problem with pacman-key --init ?
Regards, Łukasz
It's a bit of a longshot but there's few things you could check, at least it won't make your situation any worse. check the keyring package if it's actually ok $ cd /var/cache/pacman/pkg $ echo "1adcb1f1599b24ff357573996e4064ba9155f90e7998c3289520f6d97ca20189 archlinux-keyring-20230821-2-any.pkg.tar.zst" | sha256sum - if not, clear cache (or just package) and $ pacman -Sy archlinux-keyring if system clock is not correct, pacman-key might fail $ timedatectl https://wiki.archlinux.org/title/Pacman/Package_signing#Troubleshooting But it seems such a mess, I'd probably go with this $ sudo pacman -Scc $ sudo rm -r /etc/pacman.d/gnupg $ sudo pacman-key --init $ sudo pacman-key --populate archlinux $ sudo pacman -Sy archlinux-keyring to have clean slate, because it would seem you've tried all kinds of things gpg: WARNING: unsafe permissions on homedir '/etc/pacman.d/gnupg' is not good nor running constantly as root if you do this you'll have to add all the unofficial keys again (if you had any) https://wiki.archlinux.org/title/Pacman/Package_signing#Adding_unofficial_ke... if that doesn't work there's maybe some hardware error, faulty disk or such