Ubuntu Tip: Cannot Upgrade with do-release-upgrade
Problem:
When I type sudo do-release-upgrade
there is error like this.
Checking for a new Ubuntu release
In /etc/update-manager/release-upgrades Prompt
is set to never so upgrading is not possible.
Solution:
The message you're seeing indicates that your system's configuration is preventing the release upgrade due to the setting in the /etc/update-manager/release-upgrades
file. Here’s how to resolve this issue:
- Open the configuration file: You need to edit the
release-upgrades
configuration file. You can use a text editor likenano
orvim
. For example, usingnano
:
sudo nano /etc/update-manager/release-upgrades
- Change the Prompt setting: Look for the line that starts with
Prompt=
. It may look like this:
Prompt=never
Change never
to either lts
(if you only want to upgrade to the next Long Term Support version) or normal
(to upgrade to any new release).
- Save the changes
- Run the upgrade command again:
sudo do-release-upgrade
This should allow you to check for and proceed with the Ubuntu release upgrade. Easy right?
Hope it helps.