do-release-upgrade: command not found

| Apr 21, 2022 min read

If you encounter the error do-release-upgrade: command not found while attempting to upgrade from Ubuntu 20.04 to Ubuntu 22.04, you can use the following command to resolve the issue:

sudo apt install sudo do-release-upgrade

This will install the necessary package to enable you to perform the upgrade. Once the package is installed, you can use the following command to upgrade to Ubuntu 22.04:

sudo do-release-upgrade -d