为Liunx-Ubuntu换源

作者: 违规昵称不予展示 | 来源:发表于2019-03-08 13:00 被阅读0次

    本文转载自:win10创建Ubuntu16.04子系统,安装常用软件以及图形界面(包括win10远程桌面连接Ubuntu)
    作者:Jack LDZ


    1. 备份原来的数据源配置文件

    cp /etc/apt/sources.list /etc/apt/sources.list_backup
    

    2. 修改数据源配置文件

    vi /etc/apt/sources.list
    

    3. 替换为中科大的源

    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    

    4. 更新配置

    apt-get update
    

    相关文章

      网友评论

        本文标题:为Liunx-Ubuntu换源

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