1,问题

ubuntu 22.04 

apt 源切到国内时,执行 apt-get update 报错:

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification.

2,解决

先切回原先的 apt 源,

更新证书:

sudo apt update --fix-missing  # 尝试修复
sudo apt install --reinstall ca-certificates
sudo update-ca-certificates --fresh

再切到国内的 apt 源

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐