美文网首页
Ubuntu 更改 apt-get 源

Ubuntu 更改 apt-get 源

作者: Karl_ | 来源:发表于2017-08-22 16:12 被阅读0次

    Ubuntu 更改 apt-get 源  (转一叶云)

    1 年前

    1. 首先备份系统apt-get源文件,以备将来换回来

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

    2. 修改内容

    #vim sources.list

    清空并加入以下内容:

    deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse

    这是国内的163镜像站点,速度非常快。运行sudo apt-get update命令,尝试可用。

    相关文章

      网友评论

          本文标题:Ubuntu 更改 apt-get 源

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