docker.io/nginx 修改apt源后提示Certificate verification failed: The certificate is NOT trusted.
从官网获取docker.io/nginx镜像之后,大家肯定都需要安装一些自己需要的东西,但是修改/etc/apt/sources.list数据为国内源的时候,apt update报错,源内容
# deb http://snapshot.debian.org/archive/debian/20200422T000000Z buster main
# deb http://deb.debian.org/debian buster main
deb https://mirrors.aliyun.com/debian buster main contrib non-free
# deb http://snapshot.debian.org/archive/debian-security/20200422T000000Z buster/updates main
# deb http://security.debian.org/debian-security buster/updates main
deb http://mirrors.ustc.edu.cn/debian-security buster/updates main
# deb http://snapshot.debian.org/archive/debian/20200422T000000Z buster-updates main
# deb http://deb.debian.org/debian buster-updates main
deb https://mirrors.aliyun.com/debian buster-updates main contrib non-free
看网上说是时钟不对,结果测试不正确,还得把sources.list改回去,安装ca-certificates再试
apt-get install -y ca-certificates
然后再修改源就OK了
docker.io/nginx 修改apt源后提示Certificate verification failed: The certificate is NOT trusted.相关推荐
- 高版本Ubuntu(如22.02)修改apt源,快速安装低版本gcc/g++
Ubuntu不同版本默认apt install gcc安装的gcc和g++版本不同,如Ubuntu22.04默认安装gcc/g++为11版本,高版本Ubuntu无法直接通过apt install gc ...
- 九阴白骨爪(1)修改APT源为国内源的懒人法
九阴白骨爪(1)修改APT源为国内源的懒人法 最近搞了一个电信的云主机,把自己做的一个小系统放了上去.由于我以前没有写过B/S架构的东西,这是第一次,所以从开发到部署遇到N多的坑.现在把这些悲惨的遭遇 ...
- android 打包提示 Password verification failed
今天旧项目调整代码并打包时,提示Password verification failed. 意思是密码验证失败,但我确定自己密码没输错.折腾了一段时间,clean project.rebuild,清除 ...
- android 打包提示 Password verification failed
今天旧项目调整代码并打包时,提示Password verification failed. 意思是密码验证失败,但我确定自己密码没输错.折腾了一段时间,clean project.rebuild,清除 ...
- 解决SVN提示https证书验证失败问题svn: E230001: Server SSL certificate verification failed: certificate issued
svn: E230001: Server SSL certificate verification failed: certificate issued 今天在使用svn时候发现出现这个问题,这个是因 ...
- 解决修改PyCharm源后添加源信任的问题
问题描述 使用PyCharm内置的包管理修改默认源为豆瓣源后出现报错: "The repository located at pypi.douban.com is not a trusted ...
- Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found
场景 Ubuntu Server 16.04 LTS上怎样安装下载安装Nginx并启动: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/detai ...
- 移除apt源_apt提示处理归档 (--unpack)时出错的解决办法
#apt##Ubuntu##Debian# 1.问题现象 今天在升级软件的时候遇到一个错误,如下: root@x:~# apt --fix-broken install正在读取软件包列表... 完成正 ...
- Ubuntu 修改apt 源
2019独角兽企业重金招聘Python工程师标准>>> 方法: 1.修改源地址: cp /etc/apt/sources.list /etc/apt/sources.list.bak ...
最新文章
- RabbitMQ 可靠消息传输实战--云平台技术栈12
- python使用缩进作为语法边界、一般建议缩进()_Python百题计划
- python猜拳游戏三局两胜制_猜拳游戏三局两胜------java实现代码
- UT斯达康XV6700上网终极设置
- android intent和intent action大全
- MyBatis 快速入门
- [POJ2888] Magic Bracelet
- Python生成(x,y,z)三维坐标序列
- Revit二次开发示例:APIAppStartup
- 以太坊上DeFi协议总锁仓量环比上升4.37%
- Network Virtualization In Solaris 11
- matlab计算均值和方差
- 橡胶接头分类和型号规格选择
- 火爆全网的 Evil.js 源码解读
- 互联网和万维网的区别
- 【算法练习】数据结构/图论 poj4084:拓扑排序
- 潘多拉 搭建 php服务器,MAYA带你重建潘多拉!
- 从混沌到有序的远程办公进阶之路
- 微信小程序中显示使用64位图片
- [bzoj 1143--CTSC2008]祭祀