備份原始檔
sudo
cp /etc/apt/sources.list /etc/apt/sources.list.bcakup
修改原始檔
sudo
vi /etc/apt/sources.list
cat /etc/apt/sources.list
# 阿里雲源
deb bionic main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
##測試版源
deb bionic-proposed 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-backports 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-backports main restricted universe multiverse
##測試版源
deb bionic-proposed 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-backports main restricted universe multiverse
##測試版源
deb-src bionic-proposed main restricted universe multiverse
更新軟體列表,檢測出可以更新的軟體
sudo
apt-get update
在終端上執行以下命令進行軟體更新:
sudo
apt-get upgrade
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...
Ubuntu更換軟體源
ubuntu更換軟體源 備份原始檔案 原始檔案最好不要隨意刪除,做好備份 cp拷貝另存 sudo cp etc apt sources.list etc apt sources.list.bcakup開啟source.list檔案,刪除原始內容。sudo gedit etc apt sources....