美文网首页
Ubuntu更换阿里源

Ubuntu更换阿里源

作者: 烟雨_任平生 | 来源:发表于2017-06-25 19:49 被阅读0次

    1. 使用 lsb_release -a 查询系统版本信息

    clipboard.png

    重点关注 Codename 字段

    2. 使用 root 用户修改 /etc/apt/sources.list
    建议先进行备份:cp /etc/apt/sources.list /etc/apt/sources.list.bak
    清空 /etc/apt/sources.list 原先的内容,修改为如下内容:

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

    注:将其中的 yakkety 修改为你系统的Codename

    3. 使用 apt-get install update, apt-get install upgrade 更新软件源

    相关文章

      网友评论

          本文标题:Ubuntu更换阿里源

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