Certificate verification failed: The certificate is NOT trusted.解决方案
我在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.解决方案相关推荐
- 【ubuntu】解决 Certificate verification failed: The certificate is NOT trusted
目录 1.遇到问题 2.问题解决 1.遇到问题 Certificate verification failed: The certificate is NOT trusted. The certifi ...
- 解决ubuntu Certificate verification failed: The certificate is NOT trusted.
在ubuntu18.04使用apt-get命令时使用了清华的镜像资源时出现了证书问题 解决方法如下: 修改镜像资源网站为http sudo vim /etc/apt/sources.list # 默认 ...
- docker.io/nginx 修改apt源后提示Certificate verification failed: The certificate is NOT trusted.
从官网获取docker.io/nginx镜像之后,大家肯定都需要安装一些自己需要的东西,但是修改/etc/apt/sources.list数据为国内源的时候,apt update报错,源内容 # de ...
- Server certificate verification failed: certificate issued for a different hostn
2019独角兽企业重金招聘Python工程师标准>>> > PROPFIND request failed on '/svn/Superscout' > PROPFIND ...
- IDEA SVN Server SSL certificate verification failed
IDEA SVN Server SSL certificate verification failed 先说问题 原因 解决问题 先说问题 代码是用TortoiesSVN checkout的,提交的时 ...
- 解决SVN提示https证书验证失败问题svn: E230001: Server SSL certificate verification failed: certificate issued
svn: E230001: Server SSL certificate verification failed: certificate issued 今天在使用svn时候发现出现这个问题,这个是因 ...
- 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 ...
- Dockerfile 执行 git clone 一直 timeout 或者 server certificate verification failed
问题1:fatal: unable to access 'https://github.com/***/': Operation timed out after 300032 milliseconds ...
- 解决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 ...
最新文章
- hbase建索引java api_hbase java api样例(版本1.3.1,新API)
- 银盛通信与深圳邮政达成合作,全城线下代办点突破1000家
- 查看linux的用户 7.2,linux下查看用户登入系统相关命令及编写脚本(七)
- JQUERY的split
- 推荐一些能能提高生产力的 Python 库
- python os模块 os.chmod
- AlbertTransformerEncoder
- 无版权,全免费,请收藏这10个免费高清无权素材网站
- 单片机实验计数显示器C语言代码,单片机实验1-计数显示器.doc
- 程序员高效出书避坑和实践指南
- Hosts文件拒绝访问
- GeForce Experience 安装时乱码解决
- 华为HCIA认证考试简介
- Python一个回合制兵棋小游戏(1)
- win10环境下Android SDK下载安装及配置教程
- nacg python证书_这个nacg证书有用吗?
- java命令行输出hello_J2SE基础之命令行中编写第一个 Hello World
- CRM管理系统软件哪家好?
- 文字发光_青岛发光字制作有哪些?迷你字吸塑发光字树脂发光字冲孔字精工字...
- Windows截取gif动态图的软件 ScreenToGif 的安装、使用教程