進入對應資料夾,用管理員許可權,執行複製操作:
cd /etc/apt/
sudo
cp sources.list sources.list.bak
通過管理員許可權,使用 vim 進行修改:
sudo vim sources.list
將檔案中所有 url 位址,修改為
即可。
使用管理員許可權,執行命令:
sudo
apt-get update
sudo
apt-get upgrade
p.s.阿里雲:命令
apt-get update
是更新軟體列表命令
apt-get upgrade
是更新軟體
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
中科大:
deb bionic main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb-src bionic-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
清華:
deb bionic main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb-src bionic-proposed main restricted universe multiverse
ubuntu18.04下更改apt源為阿里雲源ubuntu 18.04換國內源 中科大源 阿里源 163源 清華源
ubuntu sudo update與upgrade的作用及區別
樹莓派apt更換阿里源
1.備份以前的源sudo cp etc apt sources.list etc apt sources.list.backup 2.輸入指令nano etc apt sources.list 3.把sources.list檔案裡的內容刪除或者用 注釋 4.新增下列內容 deb buster mai...
ubuntu更換阿里源
ctrl v 進入可視塊模式,按ctrl j或者k選擇到全部內容,再按大寫i 插入 插入deb trusty main restricted universe multiverse deb trusty security main restricted universe multiverse deb...
Ubuntu更換阿里源
還用說嗎,官方伺服器在海外,速度太慢了。如果是以普通使用者狀態進入系統的,推薦先更改原始檔的獨寫許可權,這樣子方便後續維護操作。sudo chmod 777 etc apt sources.list可以利用vim等編輯器進入sources.list之後禁用預設的源,直接在預設源之前加入 即可。然後在...