You are not logged in.

#1 2023-09-22 10:47:03

festuc
Member
Registered: 2017-02-04
Posts: 6

not able to populate pacman-key

Hi, I try to update my packages as usual pacman -Syu
but it said some keyring isues so I do pacman -S archlinux-keyring
and again pacman -Syu and still have isues with keys.
So i try to do pacman-key --init and pacman-key --populate but apears this errror:

 sudo pacman-key --init  

gpg: s'està comprovant la base de dades de confiança
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: no s'ha pogut reconstruir la memòria cau de l'anell: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring 

How i can restore keyblock?

Offline

#2 2023-09-22 10:53:37

seth
Member
Registered: 2012-09-03
Posts: 59,325

Re: not able to populate pacman-key

The wiki wrote:

Resetting all the keys
Remove or reset all the keys installed in your system by removing the /etc/pacman.d/gnupg directory (as root) and by rerunning pacman-key --init followed by pacman-key --populate to re-add the default keys.

Also please use LC_ALL=C when posting error messages.

Online

Board footer

Powered by FluxBB