docker ubuntu18.04镜像apt update报错Certificate verification failed
公司环境使用docker的ubuntu:18.04镜像,因为公司网络限制,apt无法使用http源(我也不知道为啥。。。),改为https源后,apt update 报错Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not hands
公司环境使用docker的ubuntu:18.04镜像,因为公司网络限制,apt无法使用http源(我也不知道为啥。。。),改为https源后,apt update 报错Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
问题原因:
上网各种搜,最终发现大佬给出的正确答案:缺少ca-certificates包
解决办法:
因无法正常使用apt install(http源被禁,https源无法使用,如果能正常使用apt,直接apt install ca-certificates解决一切),需要手动安装ca-certificates包,要下载ca-certificates包还有libssl和openssl两个依赖包,按照如下顺序安装3个包后,再次apt update正常。(注意,我的版本对应ubuntu18.04)
dpkg -i libssl1.1_1.1.1-1ubuntu2.1_18.04.6_amd64.deb
dpkg -i openssl_1.1.1-1ubuntu2.1_18.04.6_amd64.deb
dpkg -i ca-certificates_20190110_18.04.1_all.deb
包下载路径如下(忘了打压缩包了,下载3次吧,反正不要分):
https://download.csdn.net/download/sc_goddog/12493173
https://download.csdn.net/download/sc_goddog/12493167
https://download.csdn.net/download/sc_goddog/12493135
--------------------------------------------------------------------------------------------------------------
补充ubuntu16.04的镜像无法使用https源解决方法,与ubuntu18.04类似,下载附件解压缩后执行setup.sh安装相关deb包即可
https://download.csdn.net/download/sc_goddog/12500401
更多推荐
所有评论(0)