【踩坑】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证书过期

解决问题

1
2
wget http://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20190110ubuntu1_all.deb
dpkg -i ./ca-certificates_20190110ubuntu1_all.deb

完成

参考文献

CSDN——某呆啊