【Debian】更換軟體 源出現的Certificate問題解決方法

keleman發表於2024-06-28

更新軟體源 sudo apt-get update

提示ca-certificates 錯誤 出現安全證書不信任的問題
Reading package lists... Done
W: https://mirrors.aliyun.com/debian/dists/bullseye/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.aliyun.com/debian/dists/bullseye-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: Failed to fetch https://mirrors.aliyun.com/debian/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
W: Failed to fetch https://mirrors.aliyun.com/debian/dists/bullseye-updates/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
W: Some index files failed to download. They have been ignored, or old ones used instead.

有三種解決辦法,使用其一即可。

把https協議換成http協議(未測試)
先安裝certificate庫(安裝命令為sudo apt install ca-certificates),再修改成阿里雲的源地址。有一種不配源怎麼安裝,不安裝怎麼配源的死鎖感😂(測試成功)
使用中科大的源,因為他們在這使用的是http協議(未測試)。

更換軟體源 提示證書錯誤

相關文章