公钥不可用,无法使用 apt-update

公钥不可用,无法使用 apt-update

我收到很多这样的错误:

W: An error occurred during the signature verification. 
The repository is not updated and the previous index files will be used. 
GPG error: http://ftp.uk.debian.org/debian stretch-updates 
InRelease: The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010

尝试使用以下命令手动添加密钥:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553

它说已导入/已处理,但我仍然遇到相同的错误。

答案1

我建议这些:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update

相关内容