当前位置:网站首页>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
边栏推荐
猜你喜欢
Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
Redis——热点key问题
Ruijie ebgp configuration case
默认google浏览器打不开链接(点击超链接没有反应)
数据科学【八】:SVD(一)
Alibaba cloud MFA binding Chrome browser
Name six schemes to realize delayed messages at one go
Uploading attachments using Win32 in Web Automation
代码技巧——Controller参数注解@RequestParam
Cglib agent - Code enhancement test
随机推荐
日志 - 7 - 记录一次丢失文件(A4纸)的重大失误
Amazon AWS data Lake Work Pit 1
Sentinel 阿里开源流量防护组件
CUDA中的存储空间修饰符
Introduce two automatic code generators to help improve work efficiency
Self cultivation of programmers - Reflection on job hunting
Storage space modifier in CUDA
Idea announced a new default UI, which is too refreshing (including the application link)
Loops in tensorrt
Detailed definition of tensorrt data format
QQ email cannot receive the email sent by Jenkins using email extension after construction (timestamp or auth...)
看完有用的blog
Redis---1. Data structure characteristics and operation
奇葩pip install
Redis - big key problem
Redis——缓存击穿、穿透、雪崩
DeprecationWarning: .ix is deprecated. Please use.loc for label based indexing or.iloc for positi
20201002 VS 2019 QT5.14 开发的程序打包
ShardingSphere-JDBC篇
Codeforces Round #797 (Div. 3) A—E