命令行复制不了一大串列表,最后一行搞定。
以ubuntu apt-get 为例
先备份cp /etc/apt/source.list /etc/apt/source.list.bak
sudo wget -O /etc/apt/source.list http://mirrors.aliyun.com/repo/ubuntu1404-lts.list
sudo apt-get update
搞定
yum类似参考如下
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo