Debian GPG error when install or update using apt-get
Algumas vezes quando tentamos instalar ou atualizar pacotes no Debian temos problema com a chave GPG, veja como resolver esse problema.
Problema
Veja e mensagem de erro da chave GPG.
W: GPG error: http://security.debian.org lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
Correção
Agora vamos aprender a corrigir esse problema, é bem simples, basta instalar o pacotes debian-archive-keyring
aptitude install debian-archive-keyring
Veja o roteiro de instalação do pacotes, você precisa responder a algumas perguntas para completar a instalação.
Em destaque os pontos que você deve confirmar a instalação.
# aptitude install debian-archive-keyring Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done The following packages will be upgraded: debian-archive-keyring 1 packages upgraded, 0 newly installed, 0 to remove and 47 not upgraded. Need to get 20.0kB of archives. After unpacking 4096B will be used. Do you want to continue? [Y/n/?] WARNING: untrusted versions of the following packages will be installed! Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do. debian-archive-keyring Do you want to ignore this warning and proceed anyway? To continue, enter "Yes"; to abort, enter "No": yes Writing extended state information... Done Get:1 http://ftp.br.debian.org lenny/main debian-archive-keyring 2010.08.28~lenny1 [20.0kB] Fetched 20.0kB in 0s (58.9kB/s) (Reading database ... 82212 files and directories currently installed.) Preparing to replace debian-archive-keyring 2009.01.31 (using .../debian-archive-keyring_2010.08.28~lenny1_all.deb) ... Unpacking replacement debian-archive-keyring ... Setting up debian-archive-keyring (2010.08.28~lenny1) ... gpg: key F42584E6: "Lenny Stable Release Key <[email protected]>" not changed gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) <[email protected]>" not changed gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed gpg: key B98321F9: public key "Squeeze Stable Release Key <[email protected]>" imported gpg: key 473041FA: public key "Debian Archive Automatic Signing Key (6.0/squeeze) <[email protected]>" imported gpg: Total number processed: 5 gpg: imported: 2 (RSA: 2) gpg: unchanged: 3 gpg: no ultimately trusted keys found Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Current status: 47 updates [-1].
Abraços.