当前位置:网站首页>apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
2022-07-02 06:22:00 【呆呆象呆呆】
问题 apt命令报证书错误
Certificate verification failed: The certificate is NOT trusted

处理办法
1.更改源文件,将所有的https改成http:
sudo vi /etc/apt/sources.list
更改过后如下:
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.更新源
sudo apt-get update
3.安装/更新证书ca-certificates
sudo apt-get install --reinstall ca-certificates
4.参照步骤一将镜像源文件改回https
改完后/etc/apt/sources.list 文件内容如下:
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.再次更新源
sudo apt-get update
6.至此可以正常安装软件了。
sudo apt-get install xxxxx
参考文献
Unable to locate package错误解决_自由渴望的博客-CSDN博客
apt命令报证书错误的解决方法------- Certificate verification failed: The certificate is NOT trusted._Chaowanq的博客-CSDN博客
From LFY 一起解决
边栏推荐
- Redis——Cluster数据分布算法&哈希槽
- 标签属性disabled selected checked等布尔类型赋值不生效?
- 程序员的自我修养—找工作反思篇
- Redis——大Key问题
- CUDA and Direct3D consistency
- selenium+msedgedriver+edge浏览器安装驱动的坑
- RestTemplate请求时设置请求头,请求参数,请求体。
- Cglib agent - Code enhancement test
- 递归(迷宫问题、8皇后问题)
- qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
猜你喜欢

Sentinel规则持久化到Nacos

Support new and old imperial CMS collection and warehousing tutorials

js中正则表达式的使用

FE - 微信小程序 - 蓝牙 BLE 开发调研与使用

Redis——大Key问题

Sentinel 阿里开源流量防护组件

Name six schemes to realize delayed messages at one go

The intern left a big hole when he ran away and made two online problems, which made me miserable

稀疏数组(非线性结构)

Redis - grande question clé
随机推荐
web自动中利用win32上传附件
selenium的web自动化中常用的js-修改元素属性翻页
AWD学习
TensorRT的命令行程序
Network related knowledge (Hardware Engineer)
计算属性普通函数写法 和 set get 写法
深入了解JUC并发(一)什么是JUC
日志 - 7 - 记录一次丢失文件(A4纸)的重大失误
pytest(3)parametrize参数化
MySQL的10大经典错误
Function execution space specifier in CUDA
递归(迷宫问题、8皇后问题)
qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
提高用户体验 防御性编程
底层机制Mvcc
Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
IDEA公布全新默认UI,太清爽了(内含申请链接)
TensorRT中的循环
Redis---1. Data structure characteristics and operation
奇葩pip install