美文网首页
修改Ubuntu的aptget源为阿里源的方法

修改Ubuntu的aptget源为阿里源的方法

作者: wlianfu | 来源:发表于2017-09-04 22:41 被阅读123次

    1、复制原文件备份
    sudo cp /etc/apt/source.list /etc/apt/source.list.bak

    2、编辑源列表文件

    sudo vim /etc/apt/source.list

    3、将原来的列表删除,添加如下内容

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

    4、运行sudo apt-get update

    5、运行sudo apt-get upgrade

    转载自: http://blog.csdn.net/u011148119/article/details/50338355

    相关文章

      网友评论

          本文标题:修改Ubuntu的aptget源为阿里源的方法

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