![]() |
![]() |
![]() |
|
Ошибки apt при обновлении и их исправление
Если в процессе обновления Debian/Ubuntu возникла ошибка вида:
W: GPG error: http://debian.nsu.ru etch Release: The following signatures were invalid: BADSIG <key> Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>
W: GPG error: http://debian.nsu.ru etch/updates Release: The following signatures were invalid: BADSIG <key> Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org> W: You may want to run apt-get update to correct these problems
Или такая:
W: GPG error: http://debian.nsu.ru etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <key>
W: You may want to run apt-get update to correct these problems
То, для решения проблемы необходимо сделать следующее:
Для Debian
sudo apt-key adv --recv-keys --keyserver-options http-proxy="http://proxy-server:port" --keyserver keyring.debian.org <key>
Для Ubuntu
sudo apt-key adv --recv-keys --keyserver-options http-proxy="http://proxy-server:port" --keyserver keyserver.ubuntu.com <key>
|