貼上內容**
1 備份原來的更新源
cp /etc/apt/sources.list /etc/apt/sources.list.backup如果提示許可權不夠就輸入下面兩行,先進入到超級使用者,再備份
sudo -s
cp /etc/apt/sources.list /etc/apt/sources.list.backup
2 修改更新源
開啟sources.list (這就是存放更新源的檔案)
sudo vim /etc/apt/sources.list
1.阿里源將下面所有內容複製,貼上並覆蓋sources.list檔案中的所有內容
#deb包
deb main restricted universe multiverse
deb xenial-security main restricted universe multiverse
deb xenial-updates main restricted universe multiverse
deb xenial-backports main restricted universe multiverse
##測試版源
deb xenial-proposed main restricted universe multiverse
#原始碼
deb-src main restricted universe multiverse
deb-src xenial-security main restricted universe multiverse
deb-src xenial-updates main restricted universe multiverse
deb-src xenial-backports main restricted universe multiverse
##測試版源
deb-src xenial-proposed main restricted universe multiverse
#canonical 合作夥伴和附加
deb partner
deb xenial main
2.清華源
進入**複製可更改系統版本:
3 讓更新源生效
sudo apt-get update
更換Ubuntu的更新源方式
step 1.進入到root許可權 sudo su step 2.備份原來的更新源 cp etc apt sources.list etc apt sources.list.backup step 3.修改更新源 sources.list存放更新源的檔案 nano etc apt sources.l...
給Ubuntu 16 04更換更新源
下面是更換步驟 1 備份原來的更新源 cp etc apt sources.list etc apt sources.list.backup 如果提示許可權不夠就輸入下面兩行,先進入到超級使用者,再備份 sudo s cp etc apt sources.list etc apt sources.l...
給Ubuntu 16 04更換更新源
下面是更換步驟 1 備份原來的更新源 cp etc apt sources.list etc apt sources.list.backup 如果提示許可權不夠就輸入下面兩行,先進入到超級使用者,再備份 sudo s cp etc apt sources.list etc apt sources.l...