1、複製原檔案備份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #細看位址不同的系統 位址可能有點小差別
2、編輯源列表檔案
sudo vim /etc/apt/source.list
3、將原來的列表刪除,新增如下內容
網易源:
deb precise-updates main restricted
deb-src precise-updates main restricted
deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe
deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse
deb-src precise-updates multiverse
deb precise-backports main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
阿里源的方法
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
deb
precise-updates main restricted
deb-src
precise-updates main restricted
deb
precise universe
deb-src
precise universe
deb
precise-updates universe
deb-src
precise-updates universe
deb
precise multiverse
deb-src
precise multiverse
deb
precise-updates multiverse
deb-src
precise-updates multiverse
deb
precise-backports main restricted universe multiverse
deb-src
precise-backports main restricted universe multiverse
清華源
# 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋
deb xenial main restricted universe multiverse
# deb-src xenial main main restricted universe multiverse
deb xenial-updates main restricted universe multiverse
# deb-src xenial-updates main restricted universe multiverse
deb xenial-backports main restricted universe multiverse
# deb-src xenial-backports main restricted universe multiverse
deb xenial-security main restricted universe multiverse
# deb-src xenial-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb xenial-proposed main restricted universe multiverse
# deb-src xenial-proposed main restricted universe multiverse
4、執行sudo apt-get update
5、執行sudo apt-get upgrade
ubuntu 編碼的修改
ubuntu 預設採用utf8編碼,可以方便global。但對中文支援,還不細緻,即便預設採用中文安裝,也並不會自動新增gb 等支援,致使在ubuntu下訪問部分win文字檔案時,出現亂碼。i.配置系統環境 執行 sudo vi var lib locales supported.d zh 加入以下...
ubuntu關於源的修改
ubuntu系統配置更新 源 在ubuntu系統 其他linux系統,如redhat,open suse,fedora core也差不多 裡,源 就是指系統更新用的伺服器,源位址,自然就是指更新伺服器的位址了。ubuntu 原始檔 所在位置 etc apt 資料夾,名稱 sources.list 2...
UBUNTU修改IP的方法
sudo gedit etc network inte ces,可先備份 etc network inte ces 並用下面的行來替換有關eth0的行 auto eth0 iface eth0 inet static address 192.168.0.199 gateway 192.168.0.1...