Problem upgrading from 22.04 to 24.04

Since 24.04.1 is just out I thought I’d try upgrading my 22.04 installation. Running do-release-upgrade is consistently failing with a

An unresolvable problem occurred while calculating the upgrade.

message, and checking /var/log/dist-upgrade/apt.log, there’s

Broken ubuntu-budgie-desktop-minimal:amd64 Depends on pipewire-alsa:amd64 < none
| 1.0.5-1ubuntu1 @un umH >

with a lot of messages that seem to be some sort of back and forth between pulseaudio and pipewire-alsa.

(This upgrade attempt reminded me about needing to force upgrades with

apt -o APT::Get::Always-Include-Phased-Updates=true upgrade

before do-release-upgrade would do anything.)

1 Like
1 Like

So I guess this means we are stuck on 22.04 until this gets fixed (maybe never) ? Looks like it’s time to hop to a different distro (that works)

The issue impacts upgrades. There are no related issues with new installs.

Will it ever be fixed ? Or do I have to really start from scratch ?
if that is the case how can save the services/applications saved, currently the /home folder is on a different physical drive so will be unaffected by this change

try the following

get into tty using CTRL + ALT + F3

login with username and password

Then:

sudo apt-get update && sudo apt-get dist-upgrade

That should install missing resources and finish the upgrade

Finally clean up and reboot via:

sudo apt-get clean && sudo apt-get autoremove && sudo reboot

I now get this error

2024-10-12 07:55:53,732 WARNING Can't mark 'ubuntu-budgie-desktop' for upgrade (E:Unable to correct problems, you have held broken packages.)                                                                                                                                                                                  
2024-10-12 07:55:54,008 ERROR Dist-upgrade failed: 'Broken packages after upgrade: ubuntu-budgie-desktop' 

Hi @JimTR!

Have you already tried to do this?

sudo dpkg --configure -a

See this page (among others) for other ways to fix the problem:

no difference using every method described in the link… looks like I’m stuck with 22.04

Too bad. In any case, this is not the best method for upgrading Ubuntu.

Check that ‘update-manager-core’ is installed:

dpkg -l | grep update-manager-core

If not, install it:

sudo apt update && sudo apt install update-manager-core

Then:

sudo apt upgrade && sudo apt autoremove --purge

Finally:

sudo do-release-upgrade

no difference budgie-desktop is still broken on the upgrade

Sorry, @JimTR. :no_mouth:

Can you just do a simple :

sudo apt update && sudo apt upgrade

If you can, and if these broken packages don’t prevent your system from working properly, then you can go ahead with UB 22.04 until 2027. You’ll avoid some of the problems associated with UB 24.04.

Otherwise, the only thing I can think of is a fresh install — it’s a good opportunity to do some tidying up or resizing of the partition if it’s a bit cramped.

If I follow the route of a fresh install how would I find out what programs I have added over the last 6 years this has been 18.04 → 20.04 → 22.04 upgrades, over the last six years I have got the machine at a sweet spot, but there maybe some system programs I have installed over the years, which do serve a purpose, that I have forgotten about

You are joking, aren’t you ?

Go through the launchers in the main menu and complete this investigation with the list of installed files. This should jog your memory:

dpkg -l > 22.04-installed-packages.txt && gedit 22.04-installed-packages.txt

However, there is another risk: some of these applications may no longer be found in the Ubuntu 24.04 repositories or in the PPAs.

Ok - lets step back slightly.

I’ve just done a jammy fresh install and upgraded to 24.04.1 - no issues here.

So your issue is linked to something you have installed. A fix cannot be prepared until we understand what is causing your issue.

So lets start with getting some more information please.

First get the list of packages you have installed via the command @jlb has requested.

Next lets see what you have installed from

cat /etc/apt/sources.list

and

ls /etc/apt/sources.list.d/*
1 Like

here is sources.list

# deb cdrom:[Ubuntu-Budgie 22.04 LTS _Jammy Jellyfish_ - Alpha amd64 (20220321)]/ jammy main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy universe
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

ls /etc/apt/sources.list.d/*

/etc/apt/sources.list.d/archive_uri-https_deb_tableplus_com_debian_22-jammy.list
/etc/apt/sources.list.d/archive_uri-https_deb_tableplus_com_debian_22-jammy.list.distUpgrade
/etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list
/etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list.distUpgrade
/etc/apt/sources.list.d/fingerprint-ubuntu-fingerprint-gui-jammy.list
/etc/apt/sources.list.d/fingerprint-ubuntu-fingerprint-gui-jammy.list.distUpgrade
/etc/apt/sources.list.d/focal-dell.list
/etc/apt/sources.list.d/focal-dell.list.distUpgrade
/etc/apt/sources.list.d/google-chrome.list
/etc/apt/sources.list.d/google-chrome.list.distUpgrade
/etc/apt/sources.list.d/google-chrome.list.save
/etc/apt/sources.list.d/nodesource.list
/etc/apt/sources.list.d/nodesource.list.distUpgrade
/etc/apt/sources.list.d/oem-somerville-melisa-meta.list
/etc/apt/sources.list.d/oem-somerville-melisa-meta.list.distUpgrade
/etc/apt/sources.list.d/teejee2008-ubuntu-ppa-jammy.list
/etc/apt/sources.list.d/teejee2008-ubuntu-ppa-jammy.list.distUpgrade
/etc/apt/sources.list.d/tomtomtom-ubuntu-woeusb-jammy.list
/etc/apt/sources.list.d/tomtomtom-ubuntu-woeusb-jammy.list.distUpgrade
/etc/apt/sources.list.d/ubuntubudgie-ubuntu-backports-jammy.list
/etc/apt/sources.list.d/ubuntubudgie-ubuntu-backports-jammy.list.distUpgrade
/etc/apt/sources.list.d/ubuntu-esm-apps.list
/etc/apt/sources.list.d/ubuntu-esm-apps.list.distUpgrade
/etc/apt/sources.list.d/ubuntu-esm-infra.list
/etc/apt/sources.list.d/ubuntu-esm-infra.list.distUpgrade
/etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-geany-jammy.list
/etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-geany-jammy.list.distUpgrade
/etc/apt/sources.list.d/virtualmin.list
/etc/apt/sources.list.d/virtualmin.list.distUpgrade
/etc/apt/sources.list.d/webmin.list
/etc/apt/sources.list.d/webmin.list.distUpgrade

… and the contents of the packages.txt file?

Output is attached
22.04-installed-packages.txt (522.6 KB)

no I have dementia thanks

Sorry, I apologise. It was French humour, bad but not malicious.

Besides, you never know. On the forums, you meet so many people who just want to have ready-made solutions to make their lives easier, without putting in the slightest bit of personal effort these days. :no_mouth: