source.list

格式

  • deb:二进制包仓库
  • deb-src:二进制包的源码库
  • URI:库所在的地址,可以是网络地址,也可以是本地的镜像地址
  • codename:ubuntu版本的代号,可以用lsb_release -sc来查看当前系统的代号
  • components:软件的性质(free或non-free等)
deb http://mirrors.aliyun.com/ubuntu bionic main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-updates main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-backports main multiverse restricted universe

修改source.list之后要执行指令apt-get update