美文网首页
【apt】配置源

【apt】配置源

作者: 冯延龙 | 来源:发表于2019-08-16 17:39 被阅读0次

    查看系统版本

    $ lsb_release -c
    Codename:       bionic
    

    替换/etc/apt/sources.list文件中的内容如下(bionic是版本号)

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

    更新软件列表

    sudo apt update
    

    相关文章

      网友评论

          本文标题:【apt】配置源

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