NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A

У меня проблема с apt-key debian 9.13, когда я пытаюсь обновить пакет apt, он показывает это сообщение об ошибке:

# sudo apt update

Err:2 http://security.debian.org/debian-security stretch/updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
Ign:3 http://ftp.us.debian.org/debian stretch InRelease
Hit:4 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:5 http://ftp.us.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org/debian-security stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
W: Some index files failed to download. They have been ignored, or old ones used instead.

Как это исправить?


27
1

Ответ:

Решено

с Ubuntu вы можете добавить потерянный ключ следующим образом:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 

Я думаю, что это то же самое для дебиана.