美文网首页
ubuntu18.04 升级到 20.4

ubuntu18.04 升级到 20.4

作者: 流浪的企鹅 | 来源:发表于2020-05-18 16:50 被阅读0次

    1. 首先更新系统到最新的18.04版本。

    sudo apt update 
    sudo apt full-upgrade
    sudo apt autoremove
    sudo apt install update-manager-core
    sudo reboot
    

    2.重启后,执行升级。

    sudo do-release-upgrade -m desktop
    

    3.设置阿里的ubuntu更新源

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
    sudo cat >/etc/apt/sources.list <<EOF
    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    EOF
    sudo apt update
    sudo apt upgrade
    

    相关文章

      网友评论

          本文标题:ubuntu18.04 升级到 20.4

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