步驟:cd /etc/apt //cd到此目錄
ls //檢視此目錄下的檔案
sudo cp source.list source.list.bak //備份原檔案
sudo gedit source.list //gedit開啟原始檔
替換source.list檔案中的全部內容
國內可用**(選一):
東北大學:
deb-src xenial main restricted #added by software-properties
deb xenial main restricted
deb-src xenial restricted multiverse universe #added by software-properties
deb xenial-updates main restricted
deb-src xenial-updates main restricted multiverse universe #added by software-properties
deb xenial universe
deb xenial-updates universe
deb xenial multiverse
deb xenial-updates multiverse
deb xenial-backports main restricted universe multiverse
deb-src xenial-backports main restricted universe multiverse #added by software-properties
deb xenial partner
deb-src xenial partner
deb xenial-security main restricted
deb-src xenial-security main restricted multiverse universe #added by software-properties
deb xenial-security universe
deb xenial-security multiverse
清華大學:
# deb cdrom:[ubuntu 16.04 lts xenial xerus - release amd64 (20160420.1)]/ xenial main restricted
deb xenial main restricted
deb xenial-updates main restricted
deb xenial universe
deb xenial-updates universe
deb xenial multiverse
deb xenial-updates multiverse
deb xenial-backports main restricted universe multiverse
deb xenial-security main restricted
deb xenial-security universe
deb xenial-security multiverse
阿里雲:
# deb cdrom:[ubuntu 16.04 lts xenial xerus - release amd64 (20160420.1)]/ xenial main restricted
deb-src xenial main restricted #added by software-properties
deb xenial main restricted
deb-src xenial main restricted multiverse universe #added by software-properties
deb xenial-updates main restricted
deb-src xenial-updates main restricted multiverse universe #added by software-properties
deb xenial universe
deb xenial-updates universe
deb xenial multiverse
deb xenial-updates multiverse
deb xenial-backports main restricted universe multiverse
deb-src xenial-backports main restricted universe multiverse #added by software-properties
deb xenial partner
deb-src xenial partner
deb xenial-security main restricted
deb-src xenial-security main restricted multiverse universe #added by software-properties
deb xenial-security universe
deb xenial-security multiverse
Ubuntu 16 04 修改為靜態IP
一.首先你得知道你的網絡卡叫什麼ifconfig比如我的叫enp0s3 類似的比如eth0,eth1等等 二.修改配置檔案sudo gedit etc network inte ces新增以下內容 auto enp0s3 iface enp0s3 inet static address 192.16...
Ubuntu 16 04 國內更新源
東北大學 cn ubuntu xenial security multiverse清華大學 deb cdrom ubuntu 16.04 lts xenial xerus release amd64 20160420.1 xenial main restricted deb tsinghua edu...
Ubuntu 16 04 配置國內源
修改ubuntu 16.04 源 sudo i cd etc apt cp sources.list sources.list.bak 把之前的 sources.list 檔案存個副本 sudo gedit sources.list 開啟檔案,替換成阿里雲檔案 複製下面 替換原本的內容 複製下面 替...