Upgrading from 12.04.3 LTS to 14.04.1 LTS failure
You have to reinstall the update manager. First, remove/purge it:
sudo apt-get purge update-manager-core update-notifier-common
Then have a look at the console output. If it tells you, that some directories could not be removed, delete them manually. In my case:
rm -rf /var/lib/update-manager
rm -rf /var/lib/update-notifier
If you are on 13.04 or later, you should also do this to clear cached update messages:
sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available
Then update your sources:
sudo apt-get update
Reinstall the update manager:
sudo apt-get install update-manager-core update-notifier-common -y
Only if you are currently on an LTS and want to upgrade to latest LTS, make sure that in /etc/update-manager/release-upgrades
you have set:
Prompt=lts
Otherwise (upgrading any version to a newer version) set:
Prompt=normal
Now dist-upgrade should work:
sudo apt-get dist-upgrade
Noel Forte
Lover of technology and learning new things. I'm always excited to see what people will come up with next, and I'm the sort of person who loves to be at the forefront of the technological revolution. I enjoy designing logos, websites, as well as taking photos.
Updated on September 18, 2022Comments
-
Noel Forte over 1 year
This has probably been asked millions of times already, but I'm struggling to update my Ubuntu system from LTS to LTS, now that the upgrade to 14.04.1 is out. My system keeps notifying me to upgrade to the latest release, claiming that
Your current Hardware Enablement Stack (HWE) is going out of support on 2014-08-07. After this date security updates for critical parts (kernel and graphics stack) of your system will no longer be available.`
However, when I run
sudo do-release-upgrade
, Ubuntu says I have no updates available. In addition, changing theprompt
parameter in/etc/update-manager/release-upgrades
toprompt=normal
instead ofprompt=lts
throws the following error:Checking for a new Ubuntu release 404 Not Found [IP: 91.189.91.14 80] Err Upgrade tool 404 Not Found [IP: 91.189.91.14 80] Fetched 0 B in 0s (0 B/s) WARNING:root:file 'quantal.tar.gz.gpg' missing Failed to fetch Fetching the upgrade failed. There may be a network problem.
This seems weird to me as Quantal isn't even the current release, so I don't know why the system would be looking for it.
People have suggested appending the
-d
flag to thedo-release-upgrade
command, but the documentation says that this will install the development version of 14.04 which I don't want.Any help would be appreciated to get me around this roadblock.
-
muru almost 10 yearsAre there any
quantal
related lines in your/etc/apt/sources.list
? -
Noel Forte almost 10 yearsI'll have to check later. Good suggestion.
-
Noel Forte almost 10 yearsNo, there aren't any quantal lines in my system...thanks though!
-
tudor -Reinstate Monica- almost 10 yearsTo clarify, -d installs the current version, no matter what that is. It's not the development version, but is less tested. It's for this reason that do-release-upgrade on LTS versions won't upgrade until .1 is released.
-
Noel Forte almost 10 yearsBut .1 has been released. It was on the 24th.
-
Sam S almost 10 yearsI tried with -d flag it won't install the current version either, it will still try to install quantal...
-
-
Daira Hopwood over 9 yearsNote that removing update-manager is liable to also remove network-manager and hose networking (preventing the subsequent steps from working, unless you are able to access the network another way). You have been warned.
-
Piotr Kula almost 9 yearsIt turned out that I changed my sources.list and added stuff and basically newbed it out a few years ago. I followed this guide, twice. With current sources then checked that I had quantal, got the quantal sources, redid this whole thing and it has now done its business. Thanks! Then the upgrade failed, basically, i left 3rd party sources in the list. I just cleared it down to the original sources for the dist and, now finally... it works. Really great answer!!!!! +beers
-
Aryeh Beitz about 6 yearsbravo!!! excellent solution that worked well when others failed