Ubuntu apt update 签名无效问题

现象:

Get:1 http://mirrors.aliyun.com/ubuntu bionic InRelease [242 kB]
Get:2 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:3 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease [242 kB]
Err:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Err:2 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Get:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease [88.7 kB]
Err:3 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Get:5 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Err:5 http://mirrors.aliyun.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://mirrors.aliyun.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://mirrors.aliyun.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://mirrors.aliyun.com/ubuntu bionic-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-backports 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://mirrors.aliyun.com/ubuntu bionic-proposed InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-proposed 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://mirrors.aliyun.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://mirrors.aliyun.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://mirrors.aliyun.com/ubuntu bionic-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://mirrors.aliyun.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.

解决方案:

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

附:aliyun sources

deb http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe
  • 15
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
### 回答1: ubuntu sudo apt update 错误可能是由于以下原因之一: 1. 网络连接问题:检查网络连接是否正常,确保能够访问互联网。 2. 软件源问题:检查软件源是否正确配置,可以尝试更换软件源。 3. 系统更新问题:检查系统是否需要更新,如果需要更新,请先更新系统再执行命令。 4. 其他问题:如果以上方法都无法解决问题,可以尝试重新安装 Ubuntu 或者联系技术支持。 ### 回答2: 在使用 Ubuntu 操作系统的过程中,我们经常需要执行更新软件包的操作。使用命令 "sudo apt update" 就可以更新软件包了。但是,在使用这个命令的时候,有时候会遇到一些错误提示。下面来简单介绍一下这些错误: 错误 1:403 Forbidden 这个错误提示通常是由于无法访问 Update 的源服务器所导致。这个问题的解决方法是检查源列表 "sudo nano /etc/apt/sources.list",确保更新源服务器所在的国家或地区与您的位置相匹配。 错误 2:Hash Sum mismatch 这个错误是由于 Ubuntu 系统在执行更新的时候无法正确验证软件包,导致哈希值不匹配。这种情况下,我们可以尝试使用以下命令来解决这个问题: sudo rm -rf /var/lib/apt/lists/* sudo apt-get clean sudo apt-get update 这个命令会清除旧的软件包列表并从服务器更新。 错误 3:Temporary failure resolving 'archive.ubuntu.com' 这个错误提示表示无法解析预 configurerd 地址,导致软件包无法下载。这个问题的解决方法是在 /etc/resolv.conf 文件中添加名字解析器,例如,我们可以添加 Google 的名字解析器: nameserver 8.8.8.8 错误 4:Unable to fetch some archives 如果出现这个错误,表示 Ubuntu 系统无法从服务器下载软件包。这个问题通常是由于过时的软件包列表引起的。在这种情况下,我们可以使用以下命令来更新软件包列表: sudo apt-get clean sudo apt-get update 以上就是一些可能出现的 Ubuntu sudo apt update 错误,希望这些信息可以帮助你更好地维护 Ubuntu 系统。 ### 回答3: 在使用Ubuntu进行软件更新时,有时会出现sudo apt update出现错误的情况。这种情况通常出现在Ubuntu系统中的软件更新源配置出现问题的情况下。 首先,我们需要确认网络连接是否正常。如果网络连接正常,我们可以检查/etc/apt/sources.list文件中的源配置是否正确。在这个文件中,Ubuntu系统会列出所有的软件源地址,这些源地址是从中央的Ubuntu镜像库中联系下来的。 如果源地址配置是正确的,那么我们可能需要对软件更新源进行更改。可以尝试更换Ubuntu软件源的地址,或者使用代理服务器进行软件更新。同时,我们可以尝试卸载已经安装的apt软件包并重新安装来解决该问题。 此外,我们还可以通过命令sudo apt-get clean来清理系统中的一些缓存文件,以确保更新源地址的正确性。如果这一步操作后问题依然存在,我们可能需要手动安装软件包来解决该问题。 最后,如果以上解决方案都没有解决问题,我们可以查询Ubuntu的官方文档或者在社区中求助专家来解决该问题。总之,在使用Ubuntu进行软件更新时出现错误,我们需要耐心排查问题,并选择正确的解决方案来解决该问题

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值