Sometimes this happens when a kernel is released and all the dependencies aren't released or available yet. On packages.ubuntu.com the unmet dependencies for linux-image-5.11.0-38-generic
(or whatever the specific kernel version is) will show up as suggested packages and will say "not available".
If you try to do apt-cache show <packagename>
for one of the dependencies that are listed as "not available" yet, it will complain that the package is strictly a virtual package or must be provided by some other package. This of course, is not entirely true as the package is simply not available yet but apt assumes otherwise.
So you have at least two possible options.
You can probably force the install using sudo apt install --no-install-recommends linux-image-5.11.0-38-generic
. But this will leave you without the modules, tools, and header packages which may cause issues.
Simply wait a few hours or maybe a full day and the problem will go away on its own when the dependencies are released. A simple sudo apt update
and sudo apt full-upgrade
will install all available packages.
I recently had the same problem with a subsequent hwe kernel update on 20.04. Apt said there were 4 updates available but when I ran sudo apt dist-upgrade
or full-upgrade
it would say 0 packages installed.
Checking the output of apt list --upgradable
revealed hwe kernel updates but manually installing linux-image-generic-hwe-20.04
and the other packages gave the same errors shown in the question but different versions, of course.