Sempre que tento executar o atualizador de software, recebo o erro "Falha ao baixar o repositório. Informações, verifique sua conexão com a Internet". e sempre que executo sudo apt update
recebo o erro
Get:6 https://packages.riot.im/debian default InRelease [2,892 B]
Err:6 https://packages.riot.im/debian default InRelease
The following signatures were invalid: EXPKEYSIG C2850B265AC085BD riot.im packages <[email protected]>
Reading package lists... Done
W: GPG error: https://packages.riot.im/debian default InRelease: The following signatures were invalid: EXPKEYSIG C2850B265AC085BD riot.im packages <[email protected]>
E: The repository 'https://packages.riot.im/debian default 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.`
Responder1
Você deve atualizar a chave GPG do repositório usando o comando abaixo
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C2850B265AC085BD
wget -q -O - https://packages.riot.im/element-release-key.gpg | sudo apt-key add -
wget -q -O - https://packages.riot.im/element-release-key-2020.gpg | sudo apt-key add -
wget -q -O - https://packages.riot.im/riot-release-key.gpg | sudo apt-key add -
e, em seguida, instale todas as atualizações com novas dependências em seu sistema atual,
sudo apt-get update
sudo apt-get dist-upgrade
Responder2
Isso funcionou para mim (dehttps://linuxintosh.wordpress.com/2021/04/26/the-following-signatures-were-invalid-expkeysig-c2850b265ac085bd-riot-im-packages/):
$ sudo ls -la /usr/share/keyrings/ | grep riot
-rw-r--r-- 1 root root 2887 Apr 16 2019 riot-im-archive-keyring.gpg
$ sudo rm /usr/share/keyrings/riot-im-archive-keyring.gpg
$ sudo wget -O /usr/share/keyrings/riot-im-archive-keyring.gpg https://packages.riot.im/debian/riot-im-archive-keyring.gpg
$ echo "deb [signed-by=/usr/share/keyrings/riot-im-archive-keyring.gpg] https://packages.riot.im/debian/ default main" | sudo tee /etc/apt/sources.list.d/riot-im.list