error: key XXXXXX could not be looked up remotely

Standard

Another annoying PGP message has popped out when I tried to install python-httplib2

$ sudo pacman -S python-httplib2
resolviendo dependencias...
verificando conflictos...
Objetivos (1): python-httplib2-0.7.4-1
Tamaño instalado: 0,20 MiB
¿Continuar con la instalación? [S/n]
(1/1) verificando la integridad de los paquetes [###############################################] 100%
error: python-httplib2: key "7FB1A3800C84C0A5" is unknown
error: key "7FB1A3800C84C0A5" could not be looked up remotely
error: error al realizar la transacción (paquete no válido o dañado (firma PGP))
Ocurrieron errores, no se actualizaron paquetes

Googling the answer, I found that I can add the key manually by doing

$ sudo pacman-key -r 7FB1A3800C84C0A5

But when I try again to install tha package, the error persist.

$ sudo pacman -S python-httplib2
resolviendo dependencias...
verificando conflictos...
Objetivos (1): python-httplib2-0.7.4-1
Tamaño instalado: 0,20 MiB
¿Continuar con la instalación? [S/n]
(1/1) verificando la integridad de los paquetes [###############################################] 100%
error: python-httplib2: signature from "Thomas Dziedzic " is unknown trust
error: error al realizar la transacción (paquete no válido o dañado (firma PGP))
Ocurrieron errores, no se actualizaron paquetes

Now is slightly different because it recognizes the author but continues saying that is an unknown trust. Editing /etc/pacman.conf and setting SigLevel to “Never” does not work, it continues failing.

I tried also to change the PGP server in /etc/pacman.d/gnupg/gpg.conf to use the MIT server, which uses a different port (hkp://pgp.mit.edu:11371), perhaps used o required by this key, but as you may guessed, it didn’t work either.

Then, in the spanish forums, I saw a comment from a user who say there was another way to add an untrusted key into our keyring. He was wrong, because we do not want to add the key, this step is already done before, but we want to SIGN the key, and we can do it by typing:

$ sudo pacman-key --lsign-key 0x7FB1A3800C84C0A5

And now the package installs like it would do

$ sudo pacman -S python-httplib2
resolviendo dependencias...
verificando conflictos...
Objetivos (1): python-httplib2-0.7.4-1
Tamaño instalado: 0,20 MiB
¿Continuar con la instalación? [S/n]
(1/1) verificando la integridad de los paquetes [###############################################] 100%
(1/1) cargandos los archivos del paquete... [###############################################] 100%
(1/1) verificando conflictos entre archivos [###############################################] 100%
(1/1) verificando el espacio disponible en disco [###############################################] 100%
(1/1) instalando python-httplib2

Please note that sometimes I typed the key with a “0x” before the key and sometimes without. I have not figured yet what’s the meaning of that “0x” and it worked indistinctly, perhaps a more versed reader can explain to us what’s the point of that.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s