美文网首页
Ubuntu 16.04更换apt源,亲测可用

Ubuntu 16.04更换apt源,亲测可用

作者: 腿长袖子短 | 来源:发表于2019-03-11 17:43 被阅读0次

    1. 打开这个文件

    vim /etc/apt/sources.list

    2.切换为下边的阿里云的源

    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
    

    3.执行更新

    apt-get update

    相关文章

      网友评论

          本文标题:Ubuntu 16.04更换apt源,亲测可用

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