KDE NEON 24.04 upgrade failed - dependency issue

Unfortunately, my KDE Neon 24.04 LTS installation failed. The installation started but did not finish successfully. Now I can’t handle the conflict of dependencies. Can someone help me?

sudo pkcon update [sudo] password for mad: Getting updates [=========================] Finished (0%) Command failed: The following packages have unmet dependencies: udev: Depends: libudev1 (= 249.11-0ubuntu3.12) but 255.4-1ubuntu8.4 is installed libglib2.0-bin: Depends: libglib2.0-0 (= 2.72.4- 0ubuntu2.3) xsane: Depends: libgimp2.0 (>= 2.4.0) plasma-pa: Depends: libcanberra0t64 (>= 0.16) but it is not installed libglib2.0-0t64: Breaks: libglib2.0-0 (< 2.80.0-6ubuntu3~)

sudo apt --fix-broken install

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies…Starting pkgProblemResolver with broken count: 3
Starting 2 pkgProblemResolver with broken count: 3
Investigating (0) libdw1:amd64 < 0.186-1build1 @ii K Ib >
(…)
Done
failed.
The following packages have unmet dependencies:
libglib2.0-0t64 : Breaks: libglib2.0-0 (< 2.80.0-6ubuntu3~)
libglib2.0-bin : Depends: libglib2.0-0 (= 2.72.4-0ubuntu2.3)
plasma-pa : Depends: libcanberra0t64 (>= 0.16) but it is not installed
udev : Depends: libudev1 (= 249.11-0ubuntu3.12) but 255.4-1ubuntu8.4 is installed
xsane : Depends: libgimp2.0 (>= 2.4.0)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Do you know what step the install failed? There should be two log files in /var/log/dist-upgrade that may help main.log and apt.log

From the message it looks like the some of the software sources are set for the old release (jammy) and some are for the new release (noble).

Look at /etc/apt/sources.list and any file in /etc/apt/sources.list.d/ that ends with .list. They need to all be the same, if it didn’t upgrade it should all show jammy.

Thanks for your answer.

I don’t see anything interesting in main.log.

The neon.list file in the /etc/apt/sources.list.d/ directory had the following content:
deb Index of /user noble main
deb-src Index of /user noble main

I gave it the following content:
deb Index of /user jammy main
deb-src Index of /user jammy main

I issued the command sudo apt-get update. However, I still can’t overcome the dependency problems. The command sudo apt --fix-broken install gives the same effect as in the first post.

In apt.log:
apt.log

In main.log:
main.log