If I remember correctly I used sudo apt-get dist-upgrade
, but I cancelled the process in between. I received a (Y/N)
prompt for upgrading towards the end and typed N.
After this I've been having some issues like this upon running apt-get update
The interesting thing is that I am actually running 16.04.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
But somehow apt-get looks for artful
packages instead of those for xenial
.
Get:25 http://archive.ubuntu.com/ubuntu artful-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:26 http://archive.ubuntu.com/ubuntu artful-backports/universe amd64 DEP-11 Metadata [5,088 B]
Fetched 1,592 kB in 5s (283 kB/s)
(appstreamcli:8437): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
(appstreamcli:8437): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
Edit: This is how my /etc/apt/sources.list
looks
I replaced artful with xenial everywhere and the issue seems to have been resolved.
I had the same problem after running
sudo do-release-upgrade -d
on a Ubuntu 16.04 cloned partition. The intent was to test for bugs in upgrade to18.04.1
but the system stalled with message:So I pressed Ctrl+C and it returned to command prompt.
Next I ran:
Based on comments above plus this answer: Hit Ctrl+c during do-release-upgrade. Did I break it? I used:
Now
sudo apt update
completes normally.Problems with upgrade
Now when I run
do-release-upgrade -d
and pay close attention I notice these lines in the middle:I abort the upgrade by answering N to prompt.
A quick search leads to this Question & Answer: E: Problem executing scripts APT Update::Post-Invoke-Success error during apt-get update
I can verify the same situation using:
The recommended solution in the link is to use:
Running this the meta error is now gone:
Next step will be to run
sudo do-release-upgrade -d
a third time and cross my fingers.Misleading message during upgrade
Another user had similar problem: Ubuntu upgrade from 16.04 to 18.04 is taking too long
Turns out the two line message comes out at the same time:
You think the upgrade is inhibited until you press Ctrl+C but what it really means is the upgrade doesn't start until you press Enter.
sigh