美文网首页
Ubuntu更换国内源

Ubuntu更换国内源

作者: 七八个星天 | 来源:发表于2018-09-07 09:22 被阅读0次

    1.备份原来的源

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

    2.编辑配置文件,添加新的源

    使用gedit打开文档,将下边的阿里源复制进去,然后点击保存关闭。

    sudo gedit /etc/apt/sources.list

    然后更新源

    sudo apt-get update

    阿里源

    deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

    相关文章

      网友评论

          本文标题:Ubuntu更换国内源

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