'sudo apt-get update'失败

时间:2018-12-19 13:32:20

标签: ubuntu apt-get failed-installation

以下是sudo apt-get update的o / p:

/etc/apt$ sudo apt-get update
Get:1 http://01.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Err:1 http://01.archive.ubuntu.com/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Get:2 http://01.archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Err:2 http://01.archive.ubuntu.com/ubuntu bionic-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Get:3 http://01.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:3 http://01.archive.ubuntu.com/ubuntu bionic-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
W: GPG error: http://01.archive.ubuntu.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://01.archive.ubuntu.com/ubuntu bionic 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.
W: GPG error: http://01.archive.ubuntu.com/ubuntu bionic-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://01.archive.ubuntu.com/ubuntu bionic-security 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.
W: GPG error: http://01.archive.ubuntu.com/ubuntu bionic-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <Pub_key_here>
E: The repository 'http://01.archive.ubuntu.com/ubuntu bionic-updates 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.

我相信所有install命令都会因此失败。

在卸载virtualbox,kubectl时搞砸了,我想将一切恢复到正常状态。我只是对此很熟悉。实验取消。

除其他尝试外,我还尝试使用this替换sources.list

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

使用this之类的命令向您的钥匙圈添加公钥:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

然后,您应该正常运行sudo apt-get update

相关问题