美文网首页Linux
Linux: Ubuntu系统下载源管理

Linux: Ubuntu系统下载源管理

作者: LET149 | 来源:发表于2023-05-15 10:42 被阅读0次

    1. 查看下载源

    sudo cat /etc/apt/sources.list

    2. 更换下载源

    在以上文件的最后面添加新的源(在以下的源中选择任意一个填入)

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

    3. 更新系统源列表

    sudo apt update

    只有在更新源列表以后,新的源才可以被使用

    相关文章

      网友评论

        本文标题:Linux: Ubuntu系统下载源管理

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