Upgrades to Ubuntu 24.04.1 LTS are enabled again

Last Wednesday, we temporarily suspended upgrades to Ubuntu 24.04.1 LTS due to unforeseen issues with dependencies of installed kernel headers after release upgrades. These issues were tracked in bug 2078720 and have now been resolved, and upgrades to 24.04.1 LTS have been enabled again. Read on to see if you’re affected and how you can apply a fix.

Primary issue: Unmet kernel header dependencies after upgrade to Ubuntu 24.04.1 LTS

ubuntu-release-upgrader 1:24.04.22 enabled a new algorithm to handle obsolete packages in order to significantly improve its performance.

Unfortunately, the method it uses in APT unexpectedly failed to undo removal requests and did not return an error on failure, resulting in broken packages with APT errors such as linux-headers-6.5.0-1025-gcp : Depends: linux-gcp-6.5-headers-6.5.0-1025 but it is not installable, as APT failed to undo the removal request for linux-gcp-6.5-headers-6.5.0-1025. These errors only occurred if a kernel header for the booted kernel was installed during upgrade, and were only visible post-upgrade when trying to install or upgrade packages.

This issue has been fixed in the APT 2.4.13 update in 22.04 LTS, and upgrades from interim releases have been addressed by a fallback to the previous algorithm in the ubuntu-release-upgrader 1:24.04.23 stable release update. We are adding additional checks to our automated upgrade testing to prevent similar issues in the future.

If you are affected by this issue, you can run apt install --fix-broken to remove the old kernel headers and make apt operational again.

Secondary issue: Kernel headers removed on prior upgrades

While upgrades performed with previous ubuntu-release-upgrader versions resulted in a working package management post-upgrade, we also discovered that in those cases, the kernel headers were inadvertently removed in their entirety. This has been fixed in the ubuntu-release-upgrader 1:24.04.23 release for upgrades from interim releases. As a result, if you need to boot into the old kernel, it may lack some DKMS modules, but there are no issues with the 24.04 LTS kernels or any other package updates.

14 Likes

Just want to share my upgrade experience.
I upgraded after much of reluctance today (13-Sep-2024). The upgrade went smoothly but the restart did not happen correctly. I observed that lightdm service failed to start. I went to root shell removed lightdm and reinstalled it. Then I was able to get the login screen. I also had to install gnome-control-center, nautilus, and ubuntu-desktop for the Files, Terminal and docking to work. Had to reinstall Virtualbox for Noble. Things are looking fine for now.

1 Like

I’ve gotten into a pretty bad situation. The upgrade from 22.04 to 24.04 didn’t complete successfully (might have been 24.04.1 I just did do-release-upgrade). It says there are 1169 updates that can be applied. 29 security updates. New release 24.04.1 is available.

dpkg --configure -a
yields “Processing was halted because there were too many errors.”
apt --fix-broken install
yields “Unable to correct dependencies”
do-release-upgrade
yields " There is no development version of LTS available"

I can backup everything and reinstall but it’s a lot of work. Anyone have a more elegant solution?

Folks, for assistance, please consult any of our many support venues.

This topic is the wrong place to ask for help.

3 Likes