linux修改apt-get 源
1. cd /etc/apt/
2. cp source.list source.list.bak //备份当前的源文件
3. vi source.list //root用户修改
4. 清空或者注释掉之前的源
5. 粘贴以下内容
deb http://ports.ubuntu.com/ bionic main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic-security main restricted universe multiverse deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse deb-src http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse # deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable # deb-src [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic test deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
6. apt-get update
7. apt-get upgrade