Não é possível corrigir o erro GPG NO_PUB_KEY

2

Como título, tenho o erro "GPG Error ... NO_PUB_KEY" tão comum, mas não consigo corrigi-lo. Eu tentei os dois Y PPA Manager e a linha de comando sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUB_KEY> , mas não funciona; de fato, o último sempre retorna algo assim

gpg: key 98AB5139: "Oracle Corporation (VirtualBox archive signing key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

O problema começou quando modifiquei o arquivo sources.list para excluir duas linhas referentes a dropbox ppa. A partir desse momento, comecei a ter muitos erros de GPG.

W: GPG error: http://deb.torproject.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 74A941BA219EC810
W: GPG error: http://download.virtualbox.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 13B00F1FD2C19886
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://desktop-download.mendeley.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ntop.org x64/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 98C843C67921DF34

W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ntop.org all/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 98C843C67921DF34

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com trusty-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

W: GPG error: http://archive.ubuntu.com trusty-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://linux.dropbox.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC918B335044912E
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  

W: Failed to fetch http://packages.ntop.org/apt-stable/14.04/x64/InRelease  

W: Failed to fetch http://packages.ntop.org/apt-stable/14.04/all/InRelease  

W: Some index files failed to download. They have been ignored, or old ones used instead.

Até mesmo restaurar o arquivo usando o arquivo sources.list.save não funcionou até agora. No entanto, para ser honesto, eu não sei porque essa mudança deve quebrar todas as coisas.

    
por tigerjack89 16.12.2015 / 10:30

2 respostas

0

Parece que apt pode manipular somente & lt; 40 fontes e atingi o limite.

A solução mais eficiente para mim é excluir alguns arquivos .list* inúteis de /etc/apt/sources.list.d/ e .gpg* de /etc/apt/trusted.gpg.d .

Embora eu tenha atingido o limite há muito tempo atrás, eu acho que o problema só foi solucionado agora porque hoje eu tentei "Importar todas as chaves ausentes" com Y PPA Manager . Quer dizer, talvez eu tivesse algum PPA sem nenhuma chave GPG, não sei.

Se alguém souber uma solução diferente, você é bem-vindo.

    
por tigerjack89 16.12.2015 / 11:37
0

Esta solução alternativa pode ajudar você:

sudo apt-get clean
sudo mv /var/lib/apt/lists /var/apt/lists.old
mkdir -p /var/lib/apt/lists/partial
sudo apt-get update
    
por Tung Tran 16.12.2015 / 11:00