【踩坑】Ubuntu执行apt命令时报错
前言
Ubuntu执行apt命令apt update
时报错:Failed to fetch https:// Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
原因
- SSL证书过期
解决问题
- 在https://pkgs.org/download/ca-certificates中寻找符合自己操作系统版本的证书下载并安装
1 | wget http://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20190110ubuntu1_all.deb |