Apt

嘗試進行 apt upgrade 時出現錯誤

  • September 26, 2021

pop-os 21.04,每次我嘗試使用 apt upgrade 或 update 做某事時,我都會收到一個錯誤

E: Failed to fetch http://ppa.launchpad.net/system76/pop/ubuntu/pool/main/m/mesa/mesa-vulkan-drivers_21.2.1-2ubuntu1pop0%7e1631200248%7e21.04%7e4d5cd49_i386.deb  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable)

請記住,我只是在無法啟動後從 Windows 切換

您可以暫時禁用此功能ppa:system76/pop

sudo add-apt-repository -r ppa:system76/pop
sudo apt update && sudo apt upgrade

或者您可以手動刪除 system76 儲存庫:

sudo rm /etc/apt/sources.list.d/system76-pop-*.list
sudo apt update && sudo apt upgrade

引用自:https://unix.stackexchange.com/questions/670683