美文网首页
更换ubuntu apt-get 源

更换ubuntu apt-get 源

作者: tdeblog | 来源:发表于2016-07-18 11:40 被阅读0次
    1. 备份默认的apt源
    $ cd /etc/apt
    $ sudo cp sources.list sources.list.backup
    
    1. 编辑
    $ sudo gedit sources.list
    
    deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
    

    3)更新

    $ sudo apt-get update
    

    相关文章

      网友评论

          本文标题:更换ubuntu apt-get 源

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