This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Upgrade failed, now pretending there are no upgrades

Tags: None
(comma "," separated)
kyrawertho
Registered Member
Posts
6
Karma
0
Today, I got the option to upgrade to the new 20.04 version. The installer got to 99% and it said there was some error (it didn't say what) and that it would roll back the upgrade. Instead, the installer just froze and nothing happened.

My KDE version is still 5.19.4 but it pretends there are no updates to be found:

I ran
Code: Select all
sudo dpkg-reconfigure -a
which only configured phpmyadmin.

sudo do-release-upgrade says:
Code: Select all
Checking for a new Ubuntu release
No new release found.


sudo pkcon update && sudo pkcon refresh: No packages require updating to newer versions.
sudo apt update && sudo apt dist-upgrade: also nothing

Also, my sound no longer works (there is only Dummy output).

Is there any way to retry the upgrade?
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
First try
Code: Select all
sudo apt install -f

Then, it should be
Code: Select all
sudo dpkg --configure -a
(a space and two dashes after 'dpkg', and 'configure' instead of 'reconfigure')

Plasma is 5.19.4 no matter if you are on the 18.04 base or the 20.04.
I will guess you were upgraded to 20.04
Code: Select all
lsb_release -a

will show the info.


A common cause for broken sound on *buntu 20.04 upgrades is caused by Timidity, if that is installed. Remove it if you have it. Else use standard Ubuntu troubleshooting techniques if running the apt and dpkg commands do not remedy things.

Last edited by claydoh on Tue Aug 11, 2020 4:58 pm, edited 1 time in total.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
kyrawertho
Registered Member
Posts
6
Karma
0
Thanks. apt install -f and dpkg don't do anything, so it looks like all updates are ready.

Maybe I am just confused, because lsb_release does show 20.04 even though the About shows 5.19.4.

I somehow got the sound to work again, but I am not sure yet whether this is a temporary fix or not :)

Is there any way to find out what went wrong in the installation? Do I need to fix anything?
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
kyrawertho wrote:Thanks. apt install -f and dpkg don't do anything, so it looks like all updates are ready.

Maybe I am just confused, because lsb_release does show 20.04 even though the About shows 5.19.4.

I somehow got the sound to work again, but I am not sure yet whether this is a temporary fix or not :)

Is there any way to find out what went wrong in the installation? Do I need to fix anything?



5.19.4 is the current Plasma version
20.04 is the Ubuntu version being used as the base.
The two numbers are not related, and both are correct.

Losing sound seems to be a somewhat common issue with recent Ubuntu upgrades, there seems to be no single solution, and may not be related to the upgrade issue you had.

There will be logs of the upgrade, which are found in /var/log/dist-upgrade/ maybe there are clues in there, perhaps?


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
kyrawertho
Registered Member
Posts
6
Karma
0
All right, problem solved :) - I was just looking at the wrong version number and the upgrade was done completely.

The logs show this:

Code: Select all
2020-08-11 12:35:43,389 ERROR got an error from dpkg for pkg: 'phpmyadmin': 'subproces van pakket phpmyadmin werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug'
2020-08-11 12:35:43,396 ERROR got an error from dpkg for pkg: 'phpmyadmin': 'subproces van pakket phpmyadmin werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug'
2020-08-11 12:37:39,069 ERROR Exception during pm.DoInstall()
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-wptt442j/DistUpgrade/DistUpgradeView.py", line 220, in run
    res = pm.do_install(self.writefd)
apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1)
2020-08-11 12:37:39,082 ERROR SystemError from cache.commit(): installArchives() failed
2020-08-11 12:37:39,082 ERROR found exception: 'E:Sub-process /usr/bin/dpkg returned an error code (1)'


So I suppose only phpmyadmin had issues, which was fixed already. I also had to uninstall mysql.

Sound seems to work by adding "options snd-hda-intel dmic_detect=0" to /etc/modprobe.d/alsa-base.conf and "pulseaudio -k && sudo alsa force-reload".

Thanks


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell