How To Upgrade Ubuntu To 21.04

The new Ubuntu 21.04 is expected to be released on 22 April 2020. However, there is no need to wait until then. If you feel adventurous and impatient you can upgrade to Ubuntu 21.04 today. All you need is to have fully upgraded and updated Ubuntu 21.10 Groovy Gorilla at your disposal.

In this How To Upgrade Ubuntu To 21.04 Hirsute Hippo tutorial you will learn:

  • How to fully update and upgrade your current Ubuntu system.
  • How to configure the release upgrader.
  • How to upgrade your Ubuntu system.

How To Upgrade Ubuntu To 21.04

How To Upgrade Ubuntu To 21.04

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Fully upgraded and updated Ubuntu 21.10 Groovy Gorilla
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How To Upgrade Ubuntu To Ubuntu To 21.04 Hirsute Hippo step by step instructions



  1. Fully update and upgrade your current Ubuntu 20.04 Linux system.Execute the below commands:
    $ sudo apt update 
    $ sudo apt upgrade
    $ sudo apt dist-upgrade
    
    UPGRADE REQUIREMENT – PLEASE READ
    Please be aware that you will only be able to perform the Ubuntu upgrade to 21.04 only from Ubuntu 20.10 version. If you wish to upgrade from Ubuntu 19.10 or 20.04 you first need to upgrade the system to Ubuntu 20.10 before you proceed with Ubuntu 21.04 upgrade procedure.
  2. Remove all no longer required packages:
    $ sudo apt autoremove
    
  3. Configure the release upgrader.
    Open and edit the /etc/update-manager/release-upgrades file and ensure that the Prompt variable is set to normal.

    # Default behavior for the release upgrader.
    
    [DEFAULT]
    # Default prompting and upgrade behavior, valid options:
    #
    #  never  - Never check for, or allow upgrading to, a new release.
    #  normal - Check to see if a new release is available.  If more than one new
    #           release is found, the release upgrader will attempt to upgrade to
    #           the supported release that immediately succeeds the
    #           currently-running release.
    #  lts    - Check to see if a new LTS release is available.  The upgrader
    #           will attempt to upgrade to the first LTS release available after
    #           the currently-running one.  Note that if this option is used and
    #           the currently-running release is not itself an LTS release the
    #           upgrader will assume prompt was meant to be normal.
    Prompt=normal
    

    Save the file.

    Configure the Upgrade Manager to allow upgrade to non-lts release

    Configure the Upgrade Manager to allow upgrade to non-lts release.
  4. Begin the Ubuntu 20.10 upgrade process by executing the following command:
    $ sudo do-release-upgrade
    
    UPGRADING TO UBUNTU 21.04 PRIOR TO ITS RELEASE DATE ( 22.4.2021 )
    In case you are upgrading to Ubuntu 21.04 prior to its release date you need to use -d switch as in $ sudo do-release-upgrade -d in order to trigger the upgrade process.
    Upgrading to Ubuntu 21.04

    Upgrading to Ubuntu 21.04. If upgrading to Ubuntu 21.04 after its release date, the -d switch can be ommited.
    Upgrading to 21.04 Hirsute Hippo

    Upgrading to 21.04 Hirsute Hippo. Type Y to continue.
    update-passwd

    Hit Yes when asked to change the irc directory.


  5. Remove obsolete packages
    Remove obsolete packages

    Remove obsolete or no longer needed packages by the upgraded Ubuntu 21.04 system
  6. Reboot your Ubuntu system. When the Ubuntu upgrade does finish, reboot the system.
    after upgrade system reboot

    Press y to reboot your system.

    Once the system comes up, you’ll be running Ubuntu 21.04 Hirsute Hippo Linux system !

    Completed upgrade from Ubuntu 20.10 to Ubuntu 21.04 is now finished

    Completed upgrade from Ubuntu 20.10 to Ubuntu 21.04 is now finished

Enjoy !!!