当前位置:网站首页>Apt command reports certificate error certificate verification failed: the certificate is not trusted
Apt command reports certificate error certificate verification failed: the certificate is not trusted
2022-07-02 06:36:00 【Dull as dull】
problem apt Command reports certificate error
Certificate verification failed: The certificate is NOT trusted

Treatment method
1. Change source file , Will all https Change to http:
sudo vi /etc/apt/sources.list
After the change, it is as follows :
deb http://mirrors.zju.edu.cn/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.zju.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.zju.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.zju.edu.cn/ubuntu/ focal-security main restricted universe multiverse
2. Update source
sudo apt-get update
3. install / Renew Certificate ca-certificates
sudo apt-get install --reinstall ca-certificates
4. Refer to step 1 to change the image source file back to https
After finishing /etc/apt/sources.list The contents of the document are as follows :
deb https://mirrors.zju.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ focal-security main restricted universe multiverse
5. Update the source again
sudo apt-get update
6. Now you can install the software normally .
sudo apt-get install xxxxx
reference
Unable to locate package Error resolution _ Freedom hungry blog -CSDN Blog
apt The solution to the error of command report certificate ------- Certificate verification failed: The certificate is NOT trusted._Chaowanq The blog of -CSDN Blog
From LFY To solve
边栏推荐
猜你喜欢

apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted

Redis——大Key問題

一起学习SQL中各种join以及它们的区别

Distributed transactions: the final consistency scheme of reliable messages

Pytest (2) mark function

由於不正常斷電導致的unexpected inconsistency;RUN fsck MANUALLY問題已解决

由于不正常断电导致的unexpected inconsistency;RUN fsck MANUALLY问题已解决

Shardingsphere JDBC

pytest(2) mark功能

ctf三计
随机推荐
Three suggestions for all students who have graduated and will graduate
CUDA中的Warp Shuffle
Dynamic global memory allocation and operation in CUDA
TensorRT中的循环
Sentinel 阿里开源流量防护组件
Sparse array (nonlinear structure)
2020-9-23 use of QT timer qtimer class.
Render minecraft scenes into real scenes using NVIDIA GPU
Tensorrt command line program
20201025 visual studio2019 qt5.14 use of signal and slot functions
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
Redis - cluster data distribution algorithm & hash slot
Eggjs -typeorm 之 TreeEntity 实战
Data science [9]: SVD (2)
数据科学【九】:SVD(二)
Learn about various joins in SQL and their differences
unittest.TextTestRunner不生成txt测试报告
web自动中利用win32上传附件
Alibaba cloud MFA binding Chrome browser
Redis - hot key issues