2

I'm getting an error in upgrading my ubuntu from 14.04 to newer versions, I probably deleted something while clearing up the space for new installation, hence i'm getting the following error:

sudo do-release-upgrade
sudo: unable to execute /usr/bin/do-release-upgrade: No such file or directory

Can someone tell me how to resolve this and continue with upgrade instructions?

Sanyam Jain
  • 21
  • 1
  • 2
  • 1
    That command is provided by the package `ubuntu-release-upgrader-core`. Do you have that package installed? – user535733 Feb 21 '21 at 21:57

1 Answers1

3

Upgrading from 14.04 may yield some unresolvable errors as it left general support almost two years ago. That said, you may be able to upgrade by installing the update-manager-core package … assuming it's still available. Here's how:

  1. Back up your system
  2. Update apt:
    sudo apt update
    
  3. Install the update-manager-core package:
    sudo apt install update-manager-core
    
  4. Upgrade the OS to 16.04, which loses general support in six weeks:
    sudo do-release-upgrade
    

A faster, less error-riddled way would be to reinstall the OS from scratch. A lot has changed since 14.04, so starting with a fresh 20.04 (or newer) installation would save a lot of time, bandwidth, and hassle. Just be sure to make a decent backup of your important files beforehand.