Corriger l'erreur There is no public key available for the following key IDs après apt-get update

13/03/2009 - 17471 consultations - 1 commentaire


Ce mini tutoriel vous explique comment corriger l'erreur There is no public key available for the following key IDs

Vous faites un apt-get update et vous rencontrez l'erreur suivante :
debian:~# apt-get update
Réception de : 1 http://ftp.fr.debian.org stable Release.gpg [386B]
Atteint http://ftp.fr.debian.org stable Release
Réception de : 2 http://security.debian.org etch/updates Release.gpg [197B]
Ign http://ftp.fr.debian.org stable/main Packages/DiffIndex
Atteint http://security.debian.org etch/updates Release
Ign http://ftp.fr.debian.org stable/contrib Packages/DiffIndex
Ign http://ftp.fr.debian.org stable/non-free Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://ftp.fr.debian.org stable/main Sources/DiffIndex
Ign http://ftp.fr.debian.org stable/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://ftp.fr.debian.org stable/non-free Sources/DiffIndex
Atteint http://security.debian.org etch/updates/main Packages
Atteint http://ftp.fr.debian.org stable/main Packages
Atteint http://ftp.fr.debian.org stable/contrib Packages
Atteint http://security.debian.org etch/updates/contrib Packages
Atteint http://security.debian.org etch/updates/main Sources
Atteint http://ftp.fr.debian.org stable/non-free Packages
Atteint http://security.debian.org etch/updates/contrib Sources
Atteint http://ftp.fr.debian.org stable/main Sources
Atteint http://ftp.fr.debian.org stable/contrib Sources
Atteint http://ftp.fr.debian.org stable/non-free Sources
2o réceptionnés en 1s (2o/s)
Lecture des listes de paquets... Fait
W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: Vous pouvez lancer "apt-get update" pour corriger ces problèmes.

En général taper la commande suivante suffit :
debian:~# apt-key update
gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>" not changed
gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>" not changed
gpg: key ADB11277: "Etch Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed
gpg: Total number processed: 4
gpg:              unchanged: 4

Si ça ne fonctionne pas, allez générer la clé à l'aide du site pgp.net :
debian:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 4D270D06F42584E6
gpg: directory '/root/.gnupg' created
gpg: can't open '/gnupg/options.skel': Aucun fichier ou répertoire de ce type
gpg: keyring '/root/.gnupg/secring.gpg' created
gpg: keyring '/root/.gnupg/pubring.gpg' created
gpg: requesting key F42584E6 from hkp server wwwkeys.eu.pgp.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key F42584E6: public key "Lenny Stable Release Key <debian-release@lists.debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

Puis ajoutez là à votre serveur :
debian:~# apt-key add /root/.gnupg/pubring.gpg
OK

Enfin refaites in apt-get update :
debian:~# apt-get update
Réception de : 1 http://ftp.fr.debian.org stable Release.gpg [386B]
Atteint http://ftp.fr.debian.org stable Release
Réception de : 2 http://security.debian.org etch/updates Release.gpg [197B]
Ign http://ftp.fr.debian.org stable/main Packages/DiffIndex
Ign http://ftp.fr.debian.org stable/contrib Packages/DiffIndex
Atteint http://security.debian.org etch/updates Release
Ign http://ftp.fr.debian.org stable/non-free Packages/DiffIndex
Ign http://ftp.fr.debian.org stable/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://ftp.fr.debian.org stable/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://ftp.fr.debian.org stable/non-free Sources/DiffIndex
Atteint http://ftp.fr.debian.org stable/main Packages
Atteint http://security.debian.org etch/updates/main Packages
Atteint http://ftp.fr.debian.org stable/contrib Packages
Atteint http://ftp.fr.debian.org stable/non-free Packages
Atteint http://security.debian.org etch/updates/contrib Packages
Atteint http://security.debian.org etch/updates/main Sources
Atteint http://ftp.fr.debian.org stable/main Sources
Atteint http://security.debian.org etch/updates/contrib Sources
Atteint http://ftp.fr.debian.org stable/contrib Sources
Atteint http://ftp.fr.debian.org stable/non-free Sources
2o réceptionnés en 1s (2o/s)
Lecture des listes de paquets... Fait

Et là ça fonctionne !!!

Commentaires (1)

Eric barode - 28/03/2011 à 14h03
Je trouve votre post très utile notamment utile pour élaborer mon site
Merci ;)
Bonne continuation

Commentez cet article

Nom (obligatoire)
E-mail (obligatoire)
Site Internet (facultatif)
code anti-spam

Me tenir inform� des nouveaux messages


terminal.pngCommandes de base Debian et Ubuntu
Liste de commandes Linux les plus utilisées et les plus courantes sous Debian et Ubuntu avec les options qui vont biens
mycomputer.pngInstaller le serveur FTP Proftpd avec le module MySQL et stocker les utilisateurs dans une base de données MySQL sous Linux Debian Lenny
Ce tutoriel vous présente comment installer le serveur FTP Proftpd lié à MySQL sous Linux Debian Lenny ainsi que la gestion de vos utilisateurs dans une table MySQL
ark.pngGestion de paquets sous debian etch et sarge et sous ubuntu
Cet article vous présente les commandes de gestion de paquets debian
log.pngInstallation d'un systeme de monitoring MRTG (Multi Router Traffic Grapher) sous debian
Ce tutoriel a pour but d'installer l'outil de monitoring MRTG. Cet outil permet de générer des graphiques en fonction de données SNMP, ou de scripts shell.
terminal.pngCréer un dépôt git privé sur un hébergement mutualisé ovh
Ce tutoriel vous présente comment installer un dépôt GIT sur votre hébergement mutualisé OVH
kcmdevices.pngInstaller et formater un disque dur externe usb sous Linux Debian Etch
Ce tutoriel vous présente comment installer votre dique usb sous Linux debian de l'installation en passant par le formatage jusqu'au montage dans votre système de fichier
encrypted.pngProtéger un dossier web apache2 par login et mot de passe avec un htaccess et un htpasswd sous debian lenny
Ce tutoriel vous présente comment protéger un répertoire web apache2 par login et mot de passe avec un htaccess et un htpasswd sous debian lenny
database.pngInstallation MySQL 5 sous Debian Sarge avec les paquets backports.org
Tutoriel d'installation de MySQL 5 sous Debian Sarge à partir des paquets backports.org
ark.pngApt-proxy, serveur proxy de dépot de paquets debian
Apt-proxy permet de centraliser l'accès aux dépots debian en créant un proxy sur lequel toutes les machines de votre lan vont chercher les paquets à installer et mettre à jour