Ubuntu Tip: Cannot Upgrade with do-release-upgrade

Ubuntu Tip: Cannot Upgrade with do-release-upgrade
Photo by Gabriel Heinzer / Unsplash

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:

  1. Open the configuration file: You need to edit the release-upgrades configuration file. You can use a text editor like nano or vim. For example, using nano:
sudo nano /etc/update-manager/release-upgrades
  1. 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).

  1. Save the changes
  2. 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.

Support Us

Subscribe to Buka Corner

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]
Subscribe