--------------------ubuntu
用途:
設置軟件源,用於快速安裝軟件。vim
--------------------測試
圖形化界面
一、桌面右上角,點擊設置,選擇「system-settings」
二、選擇download&Updates
三、在Ubuntu選項卡中,在download from中選擇other,找到china中的aliyun。選擇以後點肯定便可。命令行
--------------------rest
命令行頁面
一、編輯源參數
cd /etc/apt/ && sudo cp sources.list sources.list.bak資源
sudo vim sources.listget
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合做夥伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main源碼
二、更新資源
sudo apt-get updateit
補充:
一、若是按照某軟件過程當中,,出現一直報「0%正在等待報頭」的錯誤。
1)選擇國內源,好比阿里源
2)要把原來的源信息刪除,從新安裝。
cd /var/cache/apt && sudo rm -rf archivessed