Fatal error: The following packages have unmet dependencies

Hi
I tried to install NordVPN and notice that KDE-Discover was gone…
I tried updating and don’t like what i see:

**orvar@orvar-laptop-kde-neon:~$** sudo apt-get update 
[sudo] password for orvar: 
Get:1 file:/var/lib/preinstalled-pool jammy InRelease
Ign:1 file:/var/lib/preinstalled-pool jammy InRelease
Get:2 file:/var/lib/preinstalled-pool jammy Release [3.949 B]
Get:2 file:/var/lib/preinstalled-pool jammy Release [3.949 B]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                                                                                         
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                                                            
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]                                                                                                                                           
Hit:7 https://download.vscodium.com/debs vscodium InRelease                                                                                                                                                       
Hit:8 https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease                                                                                                                                 
Hit:9 https://deb.nodesource.com/node_20.x nodistro InRelease                                                                                             
Hit:10 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease                                                                            
Get:11 http://archive.neon.kde.org/user jammy InRelease [189 kB]                                                                    
Hit:12 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease                     
Fetched 418 kB in 1s (289 kB/s)
Reading package lists... Done
W: file:/var/lib/preinstalled-pool/dists/jammy/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

**orvar@orvar-laptop-kde-neon:~$** sudo apt-get upgrade 
On KDE neon you should use `pkcon update` to install updates.
If you absolutely must use apt you do have to use dist-upgrade or full-upgrade in place of the upgrade command.
  https://neon.kde.org/faq#command-to-update
Abort.

**orvar@orvar-laptop-kde-neon:~$** pkcon update
Getting updates                         [=========================]         
Finished                                [=========================]         
Installing packages                     [=========================]         
Testing changes                         [=========================]         
Finished                                [=========================]         
Fatal error: The following packages have unmet dependencies:
  plasma-dataengines-addons: Depends: kross but it is not going to be installed

**orvar@orvar-laptop-kde-neon:~$** pkcon refresh
Refreshing cache                        [=========================]         
Loading cache                           [=========================]         
Downloading update information          [=========================]         
Running                                 [=========================]         
Finished                                [=========================]         
 Disabled                             file:/var/lib/preinstalled-pool jammy InRelease
 Enabled                              file:/var/lib/preinstalled-pool jammy Release
 Enabled                              file:/var/lib/preinstalled-pool jammy Release
 Enabled                              file:/var/lib/preinstalled-pool jammy Release.gpg
 Enabled                              https://deb.nodesource.com/node_20.x nodistro InRelease
 Enabled                              https://deb.nodesource.com/node_20.x nodistro InRelease
 Enabled                              https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
 Enabled                              http://security.ubuntu.com/ubuntu jammy-security InRelease
 Enabled                              https://download.vscodium.com/debs vscodium InRelease
 Enabled                              https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
 Enabled                              http://archive.ubuntu.com/ubuntu jammy InRelease
 Enabled                              https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease
 Enabled                              http://security.ubuntu.com/ubuntu jammy-security InRelease
 Enabled                              http://archive.ubuntu.com/ubuntu jammy-updates InRelease
 Enabled                              https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
 Enabled                              https://download.vscodium.com/debs vscodium InRelease
 Enabled                              http://archive.ubuntu.com/ubuntu jammy InRelease
 Enabled                              https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease
 Enabled                              http://archive.ubuntu.com/ubuntu jammy-updates InRelease
 Enabled                              http://archive.neon.kde.org/user jammy InRelease
 Enabled                              https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
 Enabled                              http://archive.neon.kde.org/user jammy InRelease
orvar@orvar-laptop-kde-neon:~$ pkcon update
Getting updates                         [=========================]         
Finished                                [=========================]         
Installing packages                     [=========================]         
Testing changes                         [=========================]         
Finished                                [=========================]         
Fatal error: The following packages have unmet dependencies:
  plasma-dataengines-addons: Depends: kross but it is not going to be installed


Can this cause some issues?
Hit:12 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease

Thanks folks.

You are a little behind on updates :slight_smile:
Screenshot_20240113_164608

This might be part of the issue, but pkcon doesn’t show the full output when it is running apt, so run sudo apt update and sudo apt full-upgrade to see all the output.

What happens if you try to install kross?

You mean that Plasma Discover is no longer installed?
That indicates something more serious.

Try installing the meta-package neon-desktop, which should attempt to install all the components of a stock neon.

sudo apt install neon-desktop

Not likely, as Nord iirc doesn’t have any dependencies that would mess with Plasma items. It may more likely be from being ~3 months out of date, though I do doubt this is the reason.

image
Thank you for the help.
I did a full-upgrade and I’m up to date now :slight_smile: and the errors are gone.

I find this little confusing:

pkcon refresh
pkcon update
apt full-upgrade  // I forgot about this one ¯\_(ツ)_/¯
// vs.
apt update
apt upgrade 
apt full-upgrade

Should i do a sudo apt-get install plasma-discover to get Discover back?

orvar@orvar-laptop-kde-neon:~$ sudo apt-get install plasma-discover
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  apt-config-icons-hidpi apt-config-icons-large apt-config-icons-large-hidpi flatpak kde-config-updates libappstream-glib8 libmarkdown2 libqt5webview5 libsnapd-qt1 p11-kit p11-kit-modules
  plasma-discover-backend-flatpak plasma-discover-backend-snap plasma-discover-common xdg-dbus-proxy
Suggested packages:
  malcontent-gui
The following NEW packages will be installed:
  apt-config-icons-hidpi apt-config-icons-large apt-config-icons-large-hidpi flatpak kde-config-updates libappstream-glib8 libmarkdown2 libqt5webview5 libsnapd-qt1 p11-kit p11-kit-modules plasma-discover
  plasma-discover-backend-flatpak plasma-discover-backend-snap plasma-discover-common xdg-dbus-proxy
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.885 kB/3.111 kB of archives.
After this operation, 13,9 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Do you think that it’s as simple as that?
and again thank you.

Yes, that all looks correct.

Pkcon is the cli interface to Packagekit - the thing that Plasma Discover and Gnome-Software use to manage apps across different distros and their different packaging. For neon and other ubuntu/Debian based systems, it hooks into apt to do the work.
So:
pkcon refresh = apt update
and
pkcon update = apt full-upgrade

The confusing part, and the thing that prompted neon to favor pkcon are the slight but vital differences between apt upgrade and full-upgrade.

Normally, a stock Ubuntu (and Debian) install works fine using just upgrade, since updates don’t usually involve major upgrades or significant changes.

However, since neon has a steady stream of updates and upgrades, there will also be some potential things that need to be removed, to be replaced by a different thing. Using plain upgrade doesn’t allow this, and thus not all updates will be installed on a system like neon with very major upgrades happening regularly. Using full-upgrade does. Breakages from partial updates were seen fairly regularly to users when neon was new, from people using apt incorrectly for the situation. So they patched the apt upgrade command to give the warning you saw.

It seems that Packagekit’s apt plugins use the full-upgrade path, which is perfectly fine and safe on ‘normal’ systems as well as the fast-moving ones.

So, for the command line: use pkcon refresh and pkcon update
or
sudo apt update and sudo apt full-upgrade

Using apt gives full error messaging, so it is preferable if there are problems that need troubleshooting.