Skip to content

Instantly share code, notes, and snippets.

@marciopalheta
Created December 2, 2013 03:51
Show Gist options
  • Save marciopalheta/7744756 to your computer and use it in GitHub Desktop.
Save marciopalheta/7744756 to your computer and use it in GitHub Desktop.
Resolvendo o erro de verificação da assinatura no Ubuntu / Mint
Se, ao tentar atualizar a lista de pacotes no Ubuntu,
você se deparar com as seguintes mensagens de erro (ou similares):
W: Um erro ocorreu durante a verificação da assinatura. O repositório não foi atualizado e o índice anterior de arquivo será usado. Erro GPG: http://extras.ubuntu.com oneiric Release:As seguintes assinaturas eram inválidas: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Erro GPG: http://archive.canonical.com oneiric Release: As seguintes assinaturas eram inválidas: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Erro GPG: http://ppa.launchpad.net oneiric Release: As seguintes assinaturas eram inválidas: BADSIG 9B0BBF00E2D0EBE9 Launchpad PPA for RAVEfinity Project
Aqui, funcionou com a seguinte sequência de comandos no terminal:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo rm -r /var/lib/apt/lists
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get update
:-)
@TecnoSigma
Copy link

👍

@edsonlima2506
Copy link

Deu certo :)

@marcelomsiqueira7
Copy link

O meu não deu certo, veja o erro

W: Erro GPG: http://repo.mysql.com/apt/debian stretch InRelease: As seguintes assinaturas eram inválidas: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering mysql-build@oss.oracle.com
E: O repositório 'http://repo.mysql.com/apt/debian stretch InRelease' não está assinado.
N: Atualizações a partir de tal repositório não podem ser feitas de forma segura e estão, portanto, desativadas por definição.
N: See apt-secure(8) manpage for repository creation and user configuration details.
marcelo@marcelo:$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5
Executing: /tmp/apt-key-gpghome.KNXD1WGGuD/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5
gpg: key 8C718D3B5072E1F5: 4 duplicate signatures removed
gpg: chave 8C718D3B5072E1F5: "MySQL Release Engineering mysql-build@oss.oracle.com" não mudada
gpg: Número total processado: 1
gpg: não modificados: 1
marcelo@marcelo:
$ ^C

@LSermatheu
Copy link

O meu apresentou o mesmo erro que o do Marcelo.

@eucandre
Copy link

Thanks

@Djalma-Neto
Copy link

Djalma-Neto commented Apr 17, 2023

O meu apresentou o mesmo erro, resolvi com o comando que encontrei nesse site: "https://zerotoherosec.blogspot.com/2018/03/erro-de-assinatura-invalida-expkeysig.html"

Onde utiliza os comandos:
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
apt-get update && upgrade

@evelynholanda
Copy link

Aqui não funcionou. Já procurei em vários sites

W: Erro GPG: http://repo.mysql.com/apt/debian buster InRelease: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY B7B3B788A8D3785C
E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not 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: Erro GPG: http://ppa.launchpad.net/git-core/ppa/ubuntu noble InRelease: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY A1715D88E1DF1F24
E: The repository 'http://ppa.launchpad.net/git-core/ppa/ubuntu noble InRelease' is not 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.
E: The repository 'http://ppa.launchpad.net/linuxuprising/java/ubuntu noble Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu noble Release' does not have a Release file.
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: Erro GPG: http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu noble InRelease: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY 4DEA8909DC6A13A3
E: The repository 'http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu noble InRelease' is not 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.
E: The repository 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu noble Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu noble Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/webupd8team/brackets/ubuntu noble Release' does not have a Release file.
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.

@deisesalless
Copy link

Marcelo, o meu apresentou o mesmo erro, então eu resolvi usar a imagem do MySQL do Docker, mais simples e mais leve.

Eu corrigi o erro assim no terminal: Removei o MySQL da minha máquina e tudo que tinha dele, e como o o erro persistiu, o único arquivo que ainda tinha estava na pasta: /etc/apt/sources.list.d e o nome do arquivo é mysql.lisT então eu removi esse arquivo estando no usuário root com o comando rm mysql.list dá um novo update e some

Depois que comecei a usar o docker não sofro mais tentando baixar o mysql na minha máquina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment