【问题标题】:'sudo apt-get update' failure [closed]'sudo apt-get update' 失败 [关闭]
【发布时间】:2018-12-19 13:32:19
【问题描述】:

下面是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 以及我尝试过的其他方法。

感谢任何帮助。

【问题讨论】:

    标签: ubuntu apt-get failed-installation


    【解决方案1】:

    使用this 之类的命令将公钥添加到您的密钥环:

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

    那么你应该正常运行sudo apt-get update

    【讨论】:

    • 完美!问题已解决。现在更新,升级工作正常。也会检查“安装”并更新它的运行方式。谢谢。
    猜你喜欢
    • 2016-07-12
    • 1970-01-01
    • 1970-01-01
    • 2019-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 1970-01-01
    相关资源
    最近更新 更多