16.04更换镜像源

  1. # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  2. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
  3. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
  4. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
  5. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
  6. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
  7. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
  8. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
  9. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
  10. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
  11. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

https://blog.csdn.net/u012481692/article/details/78740406—修改包的源,改成清华
用sudo vim /etc/apt/sources.list可以保证对sources.list的文件的修改

18.04更换镜像源

https://blog.csdn.net/shanpenghui/article/details/80433555
先备份原来的镜像源,然后修改