当前位置:网站首页>server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 失败
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 失败
2022-07-31 16:04:00 【Leon_George】
- 问题:在Ubuntu16.04环境下执行
apt update时,反馈服务主机的证书认证失败。
错误:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 systemd-sysv amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libpam-systemd amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libsystemd0 amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 systemd amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 udev amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libudev1 amd64 229-4ubuntu21.31
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
错误:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libseccomp2 amd64 2.5.1-1ubuntu1~16.04.1
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- 解决办法:
在 /etc/apt/apt.conf.d目录下创建
99verify-peer.conf配置文件# touch /etc/apt/apt.conf.d/99verify-peer.conf在文件中输入以下一行:
Acquire { https::Verify-Peer false }# vim /etc/apt/apt.conf.d/99verify-peer.conf保存重装https网络传输认证证书
apt install apt-transport-https ca-certificates
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
ca-certificates 已经是最新版 (20210119~16.04.1)。
下列软件包将被升级:
apt-transport-https
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 24 个软件包未被升级。
需要下载 26.6 kB 的归档。
解压缩后会消耗 1,024 B 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.35 [26.6 kB]
已下载 26.6 kB,耗时 19秒 (1,397 B/s)
(正在读取数据库 ... 系统当前共安装有 186842 个文件和目录。)
正准备解包 .../apt-transport-https_1.2.35_amd64.deb ...
正在将 apt-transport-https (1.2.35) 解包到 (1.2.32ubuntu0.2) 上 ...
正在设置 apt-transport-https (1.2.35) ...
- 重新执行软件列表及更新命令
apt update
命中:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
命中:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
命中:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
命中:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有 26 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
apt upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
下列【新】软件包将被安装:
distro-info libzstd1 python3-distro-info python3-yaml
下列软件包将被升级:
apt apt-utils dpkg dpkg-dev grub-common grub-pc grub-pc-bin grub2-common libapt-inst2.0 libapt-pkg5.0 libdpkg-perl libgnutls-openssl27 libgnutls30 libpam-systemd
libseccomp2 libsystemd0 libudev1 python-apt-common python3-apt systemd systemd-sysv ubuntu-advantage-tools udev unattended-upgrades update-notifier
update-notifier-common
升级了 26 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 15.2 MB 的归档。
解压缩后会消耗 3,870 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libzstd1 amd64 1.3.1+dfsg-1~ubuntu0.16.04.1 [153 kB]
获取:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.7 [2,084 kB]
- 由此看出,已经完美解决!
边栏推荐
- Use of radiobutton
- JVM parameter analysis Xmx, Xms, Xmn, NewRatio, SurvivorRatio, PermSize, PrintGC "recommended collection"
- C language "the third is" upgrade (mode selection + AI chess)
- 多主复制下处理写冲突(4)-多主复制拓扑
- Bilateral filtering acceleration "recommended collection"
- Snake Project (Simple)
- 牛客 HJ3 明明的随机数
- 复杂高维医学数据挖掘与疾病风险分类研究
- update data table update
- The principle of hough transform detection of straight lines (opencv hough straight line detection)
猜你喜欢

深度学习机器学习理论及应用实战-必备知识点整理分享

C language - function

.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world

Dialogue with Zhuang Biaowei: The first lesson of open source

【Meetup预告】OpenMLDB+OneFlow:链接特征工程到模型训练,加速机器学习模型开发

Kubernetes常用命令

【TypeScript】深入学习TypeScript类型操作

.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的

【7.29】代码源 - 【排列】【石子游戏 II】【Cow and Snacks】【最小生成数】【数列】

leetcode303 Weekly Match Replay
随机推荐
ansible学习笔记02
基于C语言的编译器设计与实现
After Grafana is installed, the web opens and reports an error
Why is the field of hacking almost filled with boys?
gerrit中如何切换远程服务器
OPPO在FaaS领域的探索与思考
Tencent Cloud Deployment----DevOps
外媒所言非虚,苹果降价或许是真的在清库存
牛客 HJ16 购物单
leetcode303 Weekly Match Replay
Internet banking stolen?This article tells you how to use online banking safely
腾讯云部署----DevOps
ASP.NET Core 产生连续 Guid
MySQL数据库操作
6-22漏洞利用-postgresql数据库密码破解
网站漏洞修复服务商关于越权漏洞分析
How Redis handles concurrent access
The new BMW 3 Series is on the market, with safety and comfort
深度学习机器学习理论及应用实战-必备知识点整理分享
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的