1. 先將預設的軟體源備份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2. 更換軟體源
sudo gedit /etc/apt/sources.list
將以下內容覆蓋原來的
# 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋
deb focal main restricted universe multiverse
# deb-src focal main restricted universe multiverse
deb focal-updates main restricted universe multiverse
# deb-src focal-updates main restricted universe multiverse
deb focal-backports main restricted universe multiverse
# deb-src focal-backports main restricted universe multiverse
deb focal-security main restricted universe multiverse
# deb-src focal-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb focal-proposed main restricted universe multiverse
# deb-src focal-proposed main restricted universe multiverse
或者用阿里雲的
deb bionic main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb-src bionic-proposed main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
3. 更新源和軟體
sudo apt-get update //更新源
sudo apt-get upgrade //更新軟體
Window更換pip源(清華源)
global timeout 6000 可選解決超時 index url install trusted host pypi.tuna.tsinghua.edu.cn 2 將該txt文件重新命名為pip.ini 3 執行命令配置全域性源 pip config set global.index url...
ubuntu16 04更換清華源
找到映象源的存放檔案,並備份 cd etc apt sudo cp sources.list sources.list.bak sudo vim sources.list將下面內容覆蓋掉原檔案內容 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋 deb xenial ...
ubuntu18 04更換清華源
1.使用root使用者 sudo s2.sources.list備份 cp etc apt sources.list etc apt sources.list.bak3找到sources.list檔案 sudo gedit etc apt sources.list4.更換檔案中的內容如下 預設注釋了...