我在linux上安装一个包的时候遇到了如下的错误:

(base) cnptucs1@cnptucs1:~$ sudo apt-get install -y libssl-dev --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:linux-headers-4.15.0-72 linux-headers-4.15.0-72-generic linux-image-4.15.0-72-genericlinux-modules-4.15.0-72-generic linux-modules-extra-4.15.0-72-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:libssl1.1
Suggested packages:libssl-doc
The following NEW packages will be installed:libssl-dev
The following packages will be upgraded:libssl1.1
1 upgraded, 1 newly installed, 0 to remove and 251 not upgraded.
Need to get 1,566 kB/2,867 kB of archives.
After this operation, 7,848 kB of additional disk space will be used.
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.1-1ubuntu2.1~18.04.6
Err:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.1-1ubuntu2.1~18.04.6Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.8.193 443]
Preconfiguring packages ...
(Reading database ... 163679 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1-1ubuntu2.1~18.04.6_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.6) over (1.1.1-1ubuntu2.1~18.04.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.6) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
W: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1-1ubuntu2.1~18.04.6_amd64.deb: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1-1ubuntu2.1~18.04.6_amd64.deb: No system certificates available. Try installing ca-certificates.
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1-1ubuntu2.1~18.04.6_amd64.deb  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.8.193 443]

参考此处, 可以得出如下方法:

1. 重装ca-certificates.

sudo apt-get install --reinstall ca-certificates

2. 运行如下命令:

sudo apt-get update

3. 重新运行安装包的命令.

Certificate verification failed: The certificate is NOT trusted.解决方案相关推荐

  1. 【ubuntu】解决 Certificate verification failed: The certificate is NOT trusted

    目录 1.遇到问题 2.问题解决 1.遇到问题 Certificate verification failed: The certificate is NOT trusted. The certifi ...

  2. 解决ubuntu Certificate verification failed: The certificate is NOT trusted.

    在ubuntu18.04使用apt-get命令时使用了清华的镜像资源时出现了证书问题 解决方法如下: 修改镜像资源网站为http sudo vim /etc/apt/sources.list # 默认 ...

  3. docker.io/nginx 修改apt源后提示Certificate verification failed: The certificate is NOT trusted.

    从官网获取docker.io/nginx镜像之后,大家肯定都需要安装一些自己需要的东西,但是修改/etc/apt/sources.list数据为国内源的时候,apt update报错,源内容 # de ...

  4. Server certificate verification failed: certificate issued for a different hostn

    2019独角兽企业重金招聘Python工程师标准>>> > PROPFIND request failed on '/svn/Superscout' > PROPFIND ...

  5. IDEA SVN Server SSL certificate verification failed

    IDEA SVN Server SSL certificate verification failed 先说问题 原因 解决问题 先说问题 代码是用TortoiesSVN checkout的,提交的时 ...

  6. 解决SVN提示https证书验证失败问题svn: E230001: Server SSL certificate verification failed: certificate issued

    svn: E230001: Server SSL certificate verification failed: certificate issued 今天在使用svn时候发现出现这个问题,这个是因 ...

  7. git clone server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile

    git clone server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile ...

  8. Dockerfile 执行 git clone 一直 timeout 或者 server certificate verification failed

    问题1:fatal: unable to access 'https://github.com/***/': Operation timed out after 300032 milliseconds ...

  9. 解决svn: E230001: Server SSL certificate verification failed: certificate has expired

    svn拉代码报错: Error:svn: E170013: Unable to connect to a repository at URL '' svn: E230001: Server SSL c ...

最新文章

  1. hbase建索引java api_hbase java api样例(版本1.3.1,新API)
  2. 银盛通信与深圳邮政达成合作,全城线下代办点突破1000家
  3. 查看linux的用户 7.2,linux下查看用户登入系统相关命令及编写脚本(七)
  4. JQUERY的split
  5. 推荐一些能能提高生产力的 Python 库
  6. python os模块 os.chmod
  7. AlbertTransformerEncoder
  8. 无版权,全免费,请收藏这10个免费高清无权素材网站
  9. 单片机实验计数显示器C语言代码,单片机实验1-计数显示器.doc
  10. 程序员高效出书避坑和实践指南
  11. Hosts文件拒绝访问
  12. GeForce Experience 安装时乱码解决
  13. 华为HCIA认证考试简介
  14. Python一个回合制兵棋小游戏(1)
  15. win10环境下Android SDK下载安装及配置教程
  16. nacg python证书_这个nacg证书有用吗?
  17. java命令行输出hello_J2SE基础之命令行中编写第一个 Hello World
  18. CRM管理系统软件哪家好?
  19. 文字发光_青岛发光字制作有哪些?迷你字吸塑发光字树脂发光字冲孔字精工字...
  20. Windows截取gif动态图的软件 ScreenToGif 的安装、使用教程

热门文章

  1. Android知识点及资料汇总(不断更新中)
  2. 太平洋直购传销被查处
  3. 什么是CHINANET
  4. 元神app怎么修改服务器,原神客户端如何修改
  5. UNCTF2022 wp Re ezzzzre
  6. 如何从IT外包中获得最大的商业价值?
  7. 原来眼镜是可以摘掉的
  8. 约瑟夫环——公式法(递推公式)
  9. 解决visio中形状搜索无法使用
  10. systemverilog学习 semaphore 和 mailbox