ubuntu 16.04 apt源使用阿里云镜像

备份原来的源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bakcup


编辑原来的文件

sudo vim /etc/apt/sources.list
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-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports 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-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse



普及


163阿里等源使用方法参照如上。但有些源在帮助文档上更新有些不及时,但镜像站中已经增加了相关的软件。比如当前(2016年5月16日),163的镜像站中已经增加了xenial(16.04)的源,但是帮助文档提供的信息说,支持到willy(15.04),这时,就需要读文档的人聪明一点了。


一般只要把源所对应的版本进行修改,就可以得到不同版本的源

系统版本号名称
Ubuntu16.04xenial
Ubuntu15.10willy
Ubuntu14.04trusty
Ubuntu12.04precise

main,restricted,universe,multiverse区别(软件的自由度)

名称自由度
main完全的自由软件
restricted不完全的自由软件
universeubuntu官方不提供支持与补丁,全靠社区支持
muitiverse非自由软件,完全不提供支持和补丁

一个源中,以下目录的作用(纯个人猜测)

名称作用
distsmain源存放地
poolssecurity、backports等源的存放地
project官方源的一个认证


回帖
  • 消灭零回复

微信二维码

微信二维码

微信扫码添加微信好友