我在 apt 更新中收到以下错误。
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease [15.5 kB]
Err:3 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Hit:6 https://download.sublimetext.com apt/stable/ InRelease
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu trusty 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.
我尝试使用以下命令来删除存储库。
sudo add-apt-repository --remove ppa:webupd8team/java
但每次运行 apt update 命令时仍然会出现同样的错误。我检查了 apt 源和包文件夹。没有任何与此包相关的内容。那么这个存储库指的是哪里?
答案1
看http://askubuntu.com/a/1078746/231142添加 GPG 密钥。
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EEA14886
然后运行
sudo apt update
至于关闭存储库,请转到设置 -> 软件和更新然后单击“其他软件”选项卡并从那里取消选择它。