当前位置:网站首页>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
边栏推荐
- 2020-9-23 use of QT timer qtimer class.
- 利用NVIDIA GPU将Minecraft场景渲染成真实场景
- FE - weex 开发 之 使用 weex-ui 组件与配置使用
- pytest(2) mark功能
- Render minecraft scenes into real scenes using NVIDIA GPU
- When requesting resttemplate, set the request header, request parameters, and request body.
- Pytest (2) mark function
- 计算属性普通函数写法 和 set get 写法
- Vector types and variables built in CUDA
- JS modification element attribute flipping commonly used in selenium's Web Automation
猜你喜欢
随机推荐
FE - weex 开发 之 使用 weex-ui 组件与配置使用
TensorRT的功能
记录一次RDS故障排除--RDS容量徒增
Loops in tensorrt
Function execution space specifier in CUDA
unittest.TextTestRunner不生成txt测试报告
Redis——大Key問題
Redis - hot key issues
Pytest (2) mark function
Storage space modifier in CUDA
[self cultivation of programmers] - Reflection on job hunting Part II
kali最新更新指南
eslint配置代码自动格式化
Mech 3002 explanation
ShardingSphere-JDBC篇
华为MindSpore开源实习机试题
PgSQL学习笔记
AtCoder Beginner Contest 253 F - Operations on a Matrix // 树状数组
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
Win电脑截图黑屏解决办法




![Data science [9]: SVD (2)](/img/2c/f1a8c3ff34ff3f3cc6e26157a32bfd.png)




