apt update 最后报错

$ sudo apt update
报错

......
91 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
W: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/focal/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29

重点:
NO_PUBKEY 467B942D3A79BD29

缺少公钥?

重新获取公钥并加入到 apt 信任密钥

  1. 获取 gpg 公钥
    $ sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29

     gpg: key 467B942D3A79BD29: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" importedgpg: Total number processed: 1gpg:               imported: 1
    

    重复执行多次不会改变,也不影响
    $ sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29

     gpg: key 467B942D3A79BD29: "MySQL Release Engineering <mysql-build@oss.oracle.com>" not changedgpg: Total number processed: 1gpg:              unchanged: 1
    
  2. 导出公钥,加入到 apt 信任密钥
    $ sudo gpg --export --armor 467B942D3A79BD29 | sudo apt-key add -
    OK

  3. 再来 update
    $ sudo apt update

     ......Reading package lists... DoneBuilding dependency tree       Reading state information... Done98 packages can be upgraded. Run 'apt list --upgradable' to see them.
    

    不再报错了!

4 确认:查询一下被信任密钥

$ apt-key list......
pub   rsa4096 2021-12-14 [SC] [expires: 2023-12-14]859B E8D7 C586 F538 430B  19C2 467B 942D 3A79 BD29
uid           [ unknown] MySQL Release Engineering <mysql-build@oss.oracle.com>
sub   rsa4096 2021-12-14 [E] [expires: 2023-12-14]

报错:The following signatures couldn‘t be verified because the public key is not available: NO_PUBKEY相关推荐

  1. 在ubuntu中运行sudo apt-get update报错The following signatures couldn‘t be verified because the public key

    出现的问题如下图: 报错信息: Err:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InR ...

  2. The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4

    ubuntu apt-get update报错: The following signatures couldn't be verified because the public key is not ...

  3. The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXX

    reference apt-key adv --recv-keys --keyserver keyserver.ubuntu.com XXXXXX apt-get update

  4. 【Ubuntu升级报错】“the following signatures couldn’t be verified because the public key is not available”

    升级Python时第一步apt-get update报错 报错界面 报错界面 在ubuntu中运行apt-get update时,有时会出现如下报错 ubuntu@ubuntu-virtual-mac ...

  5. 【apt】The following signatures couldn‘t be verified because the public key is not available

    遇到问题: 执行 apt update 产生如下图报错: The following signatures couldn't be verified because the public key is ...

  6. Ubuntu解决 The following signatures couldn‘t be verified because the public key is not available:

    Ubuntu在source.list中添加源后,提示 The following signatures couldn't be verified because the public key is n ...

  7. The following signatures couldn‘t be verified because the public key is not available问题解决

    记住NO_PUBKEY后面的那串数字例如40976EAF437D05B5 然后输入: sudo apt-key  adv --keyserver keyserver.ubuntu.com --recv ...

  8. 关于mysql数据库的外键插入报错:Cannot add or update a child row: a foreign key constraint fails,完整性问题

    关于mysql的外键插入报错:Cannot add or update a child row: a foreign key constraint fails..... 首先确定sql语句的正确 然后 ...

  9. BaiduMapsApiDemo报错:请在 DemoApplication.java文件输入正确的授权Key

    BaiduMaps的程序猿真是恶心,弄个BaiduMapsApiDemo,下载下来了还报错,让人申请授权Key: 请在 DemoApplication.java文件输入正确的授权Key!申请地址:ht ...

  10. 4 Flask开发进阶:记下一次级联删除的报错:Cannot delete or update a parent row: a foreign key constraint fails

    中间表 class Permission(object):LOGIN = 0x01EDITOR = 0x02OPERATOR = 0x04ADMINISTER = 0xffPERMISSION_MAP ...

最新文章

  1. python gdbt+fm_GBDT回归的原理及Python实现
  2. JConsole监控远程Tomcat服务器
  3. 读书笔记_Effective_C++_条款三十一:将文件间的编译依存关系降至最低(第二部分)...
  4. 为什么Java能够持续的受到欢迎呢?原因有这些
  5. 分布式搜索 Elasticsearch —— 删除索引
  6. 【学习笔记】第一章——操作系统的概念、功能、特征、发展分类(系统调用、并发共享虚拟异步)
  7. php 字符串表示,php:字符串(string)数据类型实例详解
  8. 疫情下的创业品牌如何逆风翻盘?
  9. 谈谈对从业IT行业看法
  10. VS编译器中QT版本问题不正确解决方法-Please assign a Qt installation in ‘Qt Project Settings‘.
  11. 颜色rgba、16进制、10进制互相装换
  12. 一起来做一个 c++ 单项选择题标准化考试系统
  13. nexus开机启动设置
  14. 给别人打电话显示用话提醒服务器,打电话给对方但提示已启用来电提醒功能,是怎么回事...
  15. oracle数据库 同义词读写操作,Oracle数据库之同义词(SYNONYM)使用
  16. 计算机没有显示远程桌面连接,连接远程桌面时出现:“这台计算机没有远程桌面客户端访问许可”,怎么处理?...
  17. 新浪微博--分享到微博的简单使用
  18. 可以远程控制的浏览器(双核)让浏览器动起来
  19. 家用洗地机实用吗?家用洗地机款式推荐
  20. 解决:getReader() has already been called for this request

热门文章

  1. react —— diff算法与VDOM
  2. HDU - 6273 Master of GCD
  3. 团队作业4——第一次项目冲刺(Alpha版本)2nd day
  4. 在propreties文件中引用另一个properties文件中的内容
  5. 你需要知道的、有用的 Python 功能和特点
  6. flashmx action画线方法(下)
  7. 我设想的可扩展结构(插件) (二)
  8. bzoj1010: [HNOI2008]玩具装箱toy
  9. android应用开发全程实录-你有多熟悉listview? getView重写 inflate使用
  10. checkbox是否被选中