更換源步驟如下:
備份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
命令列開啟sources.list檔案
sudo gedit /etc/apt/sources.list
修改sources,list檔案【本例更改為阿里映象源】
阿里映象源
deb bionic main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb-src bionic-proposed main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
更新並公升級
sudo apt-get update && sudo apt-get upgrade
【注意!注意!注意】更新時一定要把linux的網路連線檢查是否已經連線上網路,不然會出錯,我之前試一直不成功,困了好久,才發現是虛擬機器的網路沒有連線。。。
更新好後就可以用命令列進行安裝軟體或者外掛程式了
最後再分享幾個國內比較好的映象源:
中科大映象源
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-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
163映象源
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
ubutun 更換網路源 Ubuntu 更換源
1.切換到root使用者 su root 備份原始檔 目錄 etc apt cd etc apt cp sources.list sources.list.bk 3.更換源 阿里源 清華源 sources.list 清空源 vim sources.list 選擇乙個源,複製進去 apt update...
ubuntu更換軟體源
1 開啟軟體源配置檔案 etc apt sources.list sudo gedit etc apt sources.list 2 將檔案裡面的內容替換 deb vivid main restricted universe multiverse deb vivid security main re...
ubuntu更換軟體源
ubuntu預設軟體源的伺服器位於海外,安裝或更新軟體時可能會遇到 網路不可達 無法定位軟體包 等問題,此時需要將軟體源更換為國內的映象站點。以ubuntu 18.04 lts為例說明更換軟體源的方法。備份原始的軟體源配置檔案 sudo cp etc apt sources.list etc apt...