ubuntu 更新报错There were unauthenticated packages and -y was used without --allow-unauthenticated

使用 apt update 报错

The following NEW packages will be installed:
  autopoint dh-autoreconf libappstream4 libstemmer0d
The following packages will be upgraded:
  apport apport-gtk appstream debhelper libarchive13 python3-apport
  python3-problem-report
7 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,914 kB of archives.
After this operation, 1,555 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libappstream4 appstream dh-autoreconf debhelper libarchive13
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

apt-key utility

apt-key用于管理apt用于验证软件包的密钥列表。 已经使用这些密钥验证的软件包将被视为可信。 使用Ubuntu归档密钥的密钥环更新本地密钥环,并从密钥环中移除不再有效的归档密钥。

解决方法

$ sudo apt-key update
$ sudo apt-get update
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容