美文网首页
【linux】如何更换 apt 源

【linux】如何更换 apt 源

作者: IVAN_ea7c | 来源:发表于2019-01-12 13:38 被阅读0次

    1,备份原来的源

    cd /etc/apt/

    sudo cp sources.list sources.list.copy

    2,以中科大的源为例

    将 sources.list 中的所有内容更换为

    deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe

    deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe

    deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe

    deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe

    deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe

    deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe

    deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe

    deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe

    deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe

    deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe

    ---------------------

    作者:小黑胖子王峰

    来源:CSDN

    原文:https://blog.csdn.net/milandehuhuan/article/details/81534997

    版权声明:本文为博主原创文章,转载请附上博文链接!

    相关文章

      网友评论

          本文标题:【linux】如何更换 apt 源

          本文链接:https://www.haomeiwen.com/subject/sxxcdqtx.html