ubuntu安裝更換阿里雲鏡像源

一、查看系統的版本號(查看系統版本號爲了瞭解自己使用的系統,並不是換源的必要步奏)
uname -a
二、安裝阿里的鏡像雲(第二步並不是必須的,如果你的系統使用apt可以正常安裝軟件且速度還可以,可以跳過這步)
1、備份原來的配置:cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、在sources.list頭部添加或整個替換爲以下內容:
deb http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
你也可以到阿里雲鏡像查看其幫助文檔,獲取最新的源更新情況:
http://mirrors.aliyun.com/help/ubuntu
3、更新源:apt-get update

更新軟件列表,就使用阿里雲提供的快速源了。同樣的方法,也可以替換爲網易源
清華大學源等。

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