1.切換到root使用者
# su root
備份原始檔 目錄:/etc/apt
# cd /etc/apt/
# cp sources.list sources.list.bk
3.更換源 阿里源 清華源
# >sources.list # 清空源
# vim sources.list # 選擇乙個源,複製進去
# apt update # 更新源,需要等幾分鐘
# exit # 更新完之後,退出root使用者
阿里源:
deb xenial main restricted universe multiverse
deb xenial-security main restricted universe multiverse
deb xenial-updates main restricted universe multiverse
deb xenial-proposed main restricted universe multiverse
deb xenial-backports main restricted universe multiverse
deb-src xenial main restricted universe multiverse
deb-src xenial-security main restricted universe multiverse
deb-src xenial-updates main restricted universe multiverse
deb-src xenial-proposed main restricted universe multiverse
deb-src xenial-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
CentOS更換網易源
root localhost cd etc yum.repos.d root localhost wget root localhost mv centos base.repo centos base.repo.bak root localhost mv centos6 base 163.repo ...
ubuntu更換軟體源
1 開啟軟體源配置檔案 etc apt sources.list sudo gedit etc apt sources.list 2 將檔案裡面的內容替換 deb vivid main restricted universe multiverse deb vivid security main re...
更換centos映象源
國內主要開源的開源映象站點網易和阿里雲,可以更改為這兩個之一,在此使用網易的映象演示 1.首先備份系統自帶yum源配置檔案 我的源hanwate cdrom.repo.backup 根據實際情況修改 mv etc yum.repos.d hanwate cdrom.repo etc yum.repo...