美文网首页
ubuntu 替换源

ubuntu 替换源

作者: hyperRect | 来源:发表于2017-10-30 15:26 被阅读0次

    1、复制原文件备份

    sudo cp /etc/apt/sources.list /etc/apt/source.list.bak
    

    2、编辑源列表文件

    sudo vim /etc/apt/sources.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
    
    sudo apt-get update
    
    sudo apt-get upgrade
    

    相关文章

      网友评论

          本文标题:ubuntu 替换源

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