Ubuntu 安装软件时出现 **The certificate is NOT trusted**

Ubuntu 安装软件时出现 **The certificate is NOT trusted**,第1张

Ubuntu 安装软件时出现 **The certificate is NOT trusted** Ubuntu 安装软件时出现 The certificate is NOT trusted
  1. 出现原因

    由于对应的软件仓库缺少对应的认证文件,处于安全的考虑 Ubuntu 在获取这个仓库的软件时会拒绝获取这个仓库的软件
    可能如下图所示:

  2. 解决方案

    • 首先,将这个软件仓库设置为受信任的,只需在对应的仓库添加[trusted=yes]

      比如,一个原有的 /etc/apt/source.list.d/***.list文件如下所示:

      deb http://ppa.launchpad.net/repo_name/pkg/ubuntu vivid main
      

      改为:

      deb [trusted=yes] http://ppa.launchpad.net/repo_name/pkg/ubuntu vivid main
      

      即可

    • 然后安装 ca-certificates 即可解决这个问题

      sudo apt install ca-certificates
      
    • 安装完成之后再获取对应仓库的软件,此时应该是可以安装了的

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/3993189.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-10-21
下一篇 2022-10-21

发表评论

登录后才能评论

评论列表(0条)

保存