1、開啟軟體源配置檔案/etc/apt/sources.list
sudo gedit /etc/apt/sources.list
2、將檔案裡面的內容替換
deb vivid main restricted universe multiverse
deb vivid-security main restricted universe multiverse
deb vivid-updates main restricted universe multiverse
deb vivid-proposed main restricted universe multiverse
deb vivid-backports main restricted universe multiverse
deb-src vivid main restricted universe multiverse
deb-src vivid-security main restricted universe multiverse
deb-src vivid-updates main restricted universe multiverse
deb-src vivid-proposed main restricted universe multiverse
deb-src vivid-backports main restricted universe multiverse
上面的內容表示使用阿里的軟體源,同時也有一些163的軟體源也挺常用,在此貼上如下:
deb precise main universe restricted multiverse
deb-src precise main universe restricted multiverse
deb precise-security universe main multiverse restricted
deb-src precise-security universe main multiverse restricted
deb precise-updates universe main multiverse restricted
deb precise-proposed universe main multiverse restricted
deb-src precise-proposed universe main multiverse restricted
deb precise-backports universe main multiverse restricted
deb-src precise-backports universe main multiverse restricted
deb-src precise-updates universe main multiverse restricted
3、執行更新
sudo apt-get update
ubuntu更換軟體源
ubuntu預設軟體源的伺服器位於海外,安裝或更新軟體時可能會遇到 網路不可達 無法定位軟體包 等問題,此時需要將軟體源更換為國內的映象站點。以ubuntu 18.04 lts為例說明更換軟體源的方法。備份原始的軟體源配置檔案 sudo cp etc apt sources.list etc apt...
Ubuntu更換軟體源
ubuntu更換軟體源 備份原始檔案 原始檔案最好不要隨意刪除,做好備份 cp拷貝另存 sudo cp etc apt sources.list etc apt sources.list.bcakup開啟source.list檔案,刪除原始內容。sudo gedit etc apt sources....
Ubuntu 更新 更換軟體源
我們裝好linux系統後的第一件事情要幹嘛?當然是選擇更新下軟體源啊!剛裝好的linux系統中,sources.list中的源一般都是國外的 由於種種原因 剛剛接觸計算機的小夥伴們可以自行搜尋下原因 這些 往往速度很慢或者有時候根本上不去,乙個幾十兆的東西下了一小時沒下好。所以為了之後使用方便,我們...