Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu/Mint 無法新增 PPA 來源?兩招快速修復

編輯:關於 Linux

執行 sudo add-apt-repository ppa:... 時出現 Cannot add PPA,常見原因有二:CA 憑證損壞 或 網路代理阻擋 HTTPS 握手。

修復步驟

  1. 重新安裝 CA 憑證:
    sudo apt-get install --reinstall ca-certificates
  2. 若無效,略過代理使用 sudo -E 保留環境變數:
    sudo -E add-apt-repository ppa:linrunner/tlp

PPA 新增錯誤

原理: add-apt-repository 需透過 HTTPS 向 Launchpad 驗證 PPA 簽名。損壞的 CA 憑證會導致 TLS 驗證失敗;企業代理若未正確設定 https_proxy,同樣會中斷連線。sudo -E 保留使用者的 http_proxy/https_proxy 環境變數,讓指令能正確走代理通道。
Copyright © Windows教程網 All Rights Reserved