Ir a contenido

Corregir fallos de apt-get signatures


Si utilizas la versión, actualmente inestable, de apt-get, puede que errores de este tipo se hallan convertido en habituales:

W: GPG error: Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX

Se deben a la verificación de firmas de los repositorios.

A mí concretamente me aparecían estos:

W: GPG error: ftp://ftp.nerim.net stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: ftp://ftp.nerim.net unstable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: ftp://ftp.nerim.net testing Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: http://non-us.debian.org/debian-non-US Release: The following signatures couldn’t be verified because the public key is not available:
NO_PUBKEY B629A24C38C6029A
W: GPG error: http://debian.cihar.com/ unstable Release: The following signatures couldn’t be verified because the public key is not available:
NO_PUBKEY E64A2AA53714DD6A

Después de buscar por google, encontré una solución:

Escribir esto como root:

root@maquina:~$ gpg –keyserver wwwkeys.eu.pgp.net –recv-keys DD41397117E73B4E
gpg: directory `/root/.gnupg’ created
gpg: can’t open `/gnupg/options.skel’: No existe el fichero o el directorio
gpg: keyring `/root/.gnupg/secring.gpg’ created
gpg: keyring `/root/.gnupg/pubring.gpg’ created
gpg: requesting key 17E73B4E from hkp server wwwkeys.eu.pgp.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 17E73B4E: public key “Gianluigi Tiesi < sherpya @ netfarm.it >” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
root@maquina:~$ gpg –armor –export 17E73B4E | apt-key add -

donde DD41397117E73B4E es la combinación de letras y números de la firma que dice no encontrar.

De esta forma se añaden las firmas que dan los errores.
El servidor de llaves puede cambiarse, pero a mí me funciona bastante bien, suele encontrar muchas de las claves públicas que necesito.

Actualización:
Para importar clases desde ficheros, se usan los siguientes comandos:

root@maquina:~$ wget http://download.tuxfamily.org/shames/A42A6CF5.gpg
–16:08:51– http://download.tuxfamily.org/shames/A42A6CF5.gpg
=> `A42A6CF5.gpg’
Resolviendo download.tuxfamily.org… 88.191.250.18
Connecting to download.tuxfamily.org|88.191.250.18|:80… conectado.
Petición HTTP enviada, esperando respuesta… 200 OK
Longitud: 1,690 (1.7K) [application/octet-stream]
100%[======================================================================>] 1,690 –.–K/s
16:08:52 (21.49 KB/s) - `A42A6CF5.gpg’ saved [1690/1690]
root@maquina:~$ apt-key add A42A6CF5.gpg
OK

Etiquetas: , , , , , , , ,