Hi, thanks for the report and debugging effort here. This is a bit of a strange one.
The root cause described here is not quite correct - ubuntu-drivers's _get_linux_metapackage() and related functions will only consider metapackages of kernel flavors that are installed or marked as candidates for installation (see https://github.com/canonical/ubuntu- drivers- common/blob/a6da8a30f8cebad952bfa99e4b59f0e4adb417c2/UbuntuDrivers/kerneldetection.py#L128). They won't select an irrelevant uninstalled kernel from the archive just because it exists there with a higher ABI number. That could only happen if that kernel was marked for installation via some issue with the underlying dependency resolution, which is what I suspect happened in your case. The proposed patch is also a bit over-broad - we support ubuntu-drivers on the cloud hardware too, and many environments might have a generic kernel installed before the actual currently installed optimized kernel, so this could break those users since it'd select that shadowed generic kernel first. Now, that isn't to say there isn't a bug somewhere. I suspect that something did go wrong with the dependency resolution, just after the point where `ubuntu-drivers` handed it over to apt. If you have a machine that still has the erroneous AWS packages on it (or are able to reproduce that state without too much disruption), would you be able to provide the output of: `apt why linux-modules-nvidia-595-aws` `apt why linux-image-7.0.0-1004-aws` (adjust as needed if you now get a newer kernel version) This should work on Resolute, but if not you could do `sudo apt install aptitude` and then `aptitude why aptitude why linux-modules- nvidia-595-aws` (and same for the kernel). This would help me understand how the resolver selected the aws package incorrectly, since I don't have a system that is able to reproduce this. Thanks again for the report! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2152922 Title: `ubuntu-drivers install` pulls linux-image-aws instead of linux-image- generic on desktop, breaks network stack To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/2152922/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
