在虚拟机中如何从Ubuntu 16.04 LTS升级到20.04 (

分享于 

1分钟阅读

ubuntu

  繁體



sudo apt update && sudo apt dist-upgrade


sudo do-release-upgrade




没有直接升级路径。

  • 支持的方法是将从16.04升级到18.04,然后再从18.04升级到20.04,

    • 开始之前备份或VM快照。
    • 
      sudo apt update
      
      
      sudo apt upgrade // Prepare the 16.04 system for release-upgrade
      
      
      do-release-upgrade // 16.04 to 18.04. The system will prompt you for a password
      
      
      
      sudo apt update
      
      
      sudo apt upgrade // Check for errors. Stop if there are errors.
      
      
      do-release-upgrade -d // The -d is required until August 13, 2020 when 20.04.1
      
      
       // is released. After that, DON'T use -d.
      
      
      
      

  • mac  Ubuntu  MACH  Virtual  虚拟机  lts