Quando corro apt-get update
, recebo
Ign:1 http://dl.google.com/linux/musicmanager/deb stable InRelease
Ign:2 http://archive-4.kali.org/kali kali-rolling InRelease
Hit:3 http://archive-4.kali.org/kali-security sana/updates InRelease
0% [3 InRelease gpgv 11.9 kB] [Waiting for headers] [Waiting for headers]Couldn't create tempfiles for splitting up /var/lib/apt/lists/security.kali.org_kali-seErr:3 http://archive-4.kali.org/kali-security sana/updates InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Hit:4 http://archive-4.kali.org/kali sana InRelease
0% [4 InRelease gpgv 20.3 kB] [Waiting for headers]Couldn't create tempfiles forErr:4 http://archive-4.kali.org/kali sana InRelease_dists_sana_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:5 http://archive-4.kali.org/kali kali-rolling Release [23.7 kB]
Get:6 http://archive-4.kali.org/kali kali-rolling Release.gpg [819 B]
0% [6 Release.gpg gpgv 23.7 kB] 3,846 B/s 0smktemp: failed to create directory via template '/tmp/tmp.XXXXXXXXXX': Permission denied
Err:6 http://archive-4.kali.org/kali kali-rolling Release.gpg
At least one invalid signature was encountered.
Hit:7 http://dl.google.com/linux/musicmanager/deb stable Release
80% [Release.gpg gpgv 1,345 B]mktemp: failed to create directory via template '/tmp/tmp.XXXXXXXXXX': Permission denied
Err:8 http://dl.google.com/linux/musicmanager/deb stable Release.gpg
At least one invalid signature was encountered.
Reading package lists... Done
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-4.kali.org/kali-security sana/updates InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
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-4.kali.org/kali sana InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
W: GPG error: http://archive-4.kali.org/kali kali-rolling Release: At least one invalid signature was encountered.
E: The repository 'http://http.kali.org/kali kali-rolling Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/musicmanager/deb stable Release: At least one invalid signature was encountered.
Não faço ideia de como isso aconteceu ou como corrigi-lo. Tenho o gnupg, o gnupg-agent, o gnupg-pkcs11-scd, o gnupg2, o gnupg-curl, o gnupg-pkcs11-scd-dbg instalado.
linux
root
kali-linux
apt-get
Zach
fonte
fonte
Respostas:
Limpe o cache do APT e gere-o novamente:
fonte
Talvez haja um link ou arquivo inválido no diretório
/etc/apt/trusted.gpg.d/
Verifique se o diretório contém arquivos e links válidos, por exemplo:
Portanto, procure o pacote que deve conter o arquivo
e execute algumas das seguintes ações:
reinstale-o
ou reinstale todos os chaveiros instalados
ou remover o link ou arquivo inválido
fonte
Experimentar
chown root:root /tmp chmod 1777 /tmp
fonte
Todas as minhas chaves estavam corretas, mas a solução do okwap me levou a olhar para o diretório / tmp.
Eu tinha milhares de subdiretórios lá, criados por um processo de serviço que estava tendo problemas para iniciar. Eu até tive problemas para excluir todos os diretórios porque havia muitos (tive que canalizar ls para xargs para evitar erros de "muitos argumentos").
Assim que meu / tmp foi limpo, o apt-get update funcionou bem novamente. Portanto, suspeito que haja algum código no apt-get update relacionado à verificação de assinaturas que usa / tmp e falha quando há um número tolo de itens.
fonte