1. /etc/apt/sources.list文件
这个文件中存放一些下载源地址,执行apt-get install packagename时,就会到对应地址get;
#add aliyun in 2018-2-26
deb http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
第一部分:deb档案为二进制deb包,deb-src软件源码也下载,不需要可以注释,提高下载速度;
第二部分:仓库地址 (Repository URL) ,可以ping测试下速度
第三部分:ubuntu发行版本代号,不同发行版支持的软件包可能有差别
查看版本代号
$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
第四部分:软件包分类
2.