阿里云Ubuntu和CentOS软件源地址

CentOS:
镜像文件本地路径
/etc/yum.repos.d/CentOS-Base.repo
阿里云Centos镜像
http://mirrors.aliyun.com/repo/Centos-7.repo(可直接下载替换)
对应不同的CentOS版本需要修改对应的版本号
然后更新镜像 yum makecache

Ubuntu:
镜像文件本地路径
mirro file:/etc/apt/sources.list /etc/apt/sources.list
阿里云镜像列表

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse

(需要复制上述列表内容到本地文件)
对应不同的版本,需要修改对应的版本代号:

14.10- utopic
14.04- trusty
12.04- precise
10.04- lucid

另附 上交大 源列表(教育网千兆):

deb http://ftp.sjtu.edu.cn/ubuntu/ vivid main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe

International:

Aliyun Centos mirro:
local file path:
/etc/yum.repos.d/CentOS-Base.repo
File:
http://mirrors.aliyun.com/repo/Centos-7.repo
(chenge version code if use other version)

Aliyun Ubuntu mirro list:
local file path:
/etc/apt/sources.list /etc/apt/sources.list
List:

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse

Please pay your attention:
different version of ubuntu with different code name:

14.10- utopic
14.04- trusty
12.04- precise
10.04- lucid

There is Shanghai Jiao Tong University source list(You can enjoy gigabit speed if your computer access Chinese educational network.):

deb http://ftp.sjtu.edu.cn/ubuntu/ vivid main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe

Tag: none

Leave a new comment