给自家的Ubuntu下载软件速度有点慢,毕竟是从国外下载软件,就想更换到国内比较好的更新源(就是这些软件所在的服务器),一般直接百度Ubuntu更新源就能出来一大堆,这时候最好是找和自己Ubuntu版本一致的更新源,我的Ubuntu版本是16.04,下面是我找到的一个比较好的更新源

    中科大源选择器地址:

    https://mirrors.ustc.edu.cn/repogen/

    东北大学

    1. deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties
    2. deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted
    3. deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe
    4. deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted
    5. deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe
    6. deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
    7. deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
    8. deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
    9. deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
    10. deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    11. deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    12. deb http://archive.canonical.com/ubuntu xenial partner
    13. deb-src http://archive.canonical.com/ubuntu xenial partner
    14. deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted
    15. deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe
    16. deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
    17. deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse

    清华大学

    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

    阿里云

    1. # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
    2. deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
    3. deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
    4. deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe
    5. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
    6. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe
    7. deb http://mirrors.aliyun.com/ubuntu/ xenial universe
    8. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
    9. deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
    10. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
    11. deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    12. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    13. deb http://archive.canonical.com/ubuntu xenial partner
    14. deb-src http://archive.canonical.com/ubuntu xenial partner
    15. deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
    16. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe
    17. deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
    18. deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

    下面是更换步骤:

    1、备份原来的更新源:

    1. cp /etc/apt/sources.list /etc/apt/sources.list.backup

    2、删除原来更新源:

    1. rm -f /etc/apt/sources.list

    3、编辑新的更新源:

    1. vim /etc/apt/sources.list
    2. 选择上面其中的一个源写入改文件

    4、让更新源生效

    1. sudo apt-get update

    5、安装软件

    1. sudo apt-get install 软件名称、
    2. 例如:
    3. sudo apt-get install vim 安装vim