ubuntu修改源

#備份當前源

cd /etc/apt/

sudo cp sources.list sources.list.bak


#修改爲ali的源

/etc/apt$ cat sources.list

deb http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse


#更新

sudo apt-get update


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章