首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法更新Ubuntu 18.04

无法更新Ubuntu 18.04
EN

Ask Ubuntu用户
提问于 2019-01-31 14:55:16
回答 3查看 4.2K关注 0票数 1

当我运行命令:root@versinator:~# apt-get update时,我得到以下错误:

代码语言:javascript
复制
Hit:1 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease
Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease [17.5 kB]
Err:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1E9377A2BA9EF27F
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1E9377A2BA9EF27F
E: The repository 'http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial 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.

如何删除此错误并返回到安全状态?

EN

回答 3

Ask Ubuntu用户

发布于 2019-02-25 17:10:48

"apt-get更新“的问题是您丢失了公钥1E9377A2BA9EF27F。您可以通过执行以下操作将此键添加到您的密钥环中:

代码语言:javascript
复制
sudo apt-key adv --recv-key 1E9377A2BA9EF27F

它会向你展示这样的东西:

代码语言:javascript
复制
Executing: /tmp/apt-key-gpghome.IA65nrxcnz/gpg.1.sh --recv-key 1E9377A2BA9EF27F
gpg: key 1E9377A2BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1

现在您可以运行"apt-get update“或"apt update",它还将获取"http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease”的索引。

票数 2
EN

Ask Ubuntu用户

发布于 2019-01-31 20:02:57

编辑文件:

代码语言:javascript
复制
sudo nano /etc/apt/sources.list

将#作为一行的第一个字符。

然后,只需做一个更新:

代码语言:javascript
复制
sudo apt update

如果错误消失,您可以删除所观察到的行。

票数 0
EN

Ask Ubuntu用户

发布于 2019-01-31 20:34:35

转到synaptic,然后设置选项卡存储库,然后是其他软件。取消选中ppa前面的框为Ubuntu-工具链-r。再装子弹。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1114438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档