Kernels galore and no NVIDIA driver in sight
Little Girl
littlergirl at gmail.com
Fri Dec 20 14:19:05 UTC 2024
Hey there,
I'm using Kubuntu 22.04 LTS and have gotten three new kernels in the
past couple of days (!) and would like to sudo apt autoremove the
oldest one, but am concerned about what that may do to my NVIDIA
driver, which hasn't received an update despite all of these new
kernels. Since the two are intertwined, I'm not sure what will happen
if I get rid of the only kernel "known" to my NVIDIA driver or, worse
yet, if there even is one on my system any more.
I thought I'd add that when I installed the OS, I opted in to let
Ubuntu and NVIDIA manage my NVIDIA driver, so the drivers are built
for the kernels automatically whenever there are NVIDIA updates and
I'm under the impression that I'm supposed to keep my hands off of
the drivers as a result of that.
####################
After the latest update in which I got the third of the recent
kernels, I did this command to check which kernel I'm using:
uname -r
That gave this output:
5.15.0-130-generic
####################
I did this command to see which kernels are currently installed:
apt list --installed | grep "linux-image"
That gave this output:
WARNING: apt does not have a stable CLI interface. Use with caution
in scripts.
linux-image-5.15.0-127-generic/jammy-updates,jammy-security,now
5.15.0-127.137 amd64 [installed,auto-removable]
linux-image-5.15.0-128-generic/jammy-updates,now 5.15.0-128.138 amd64
[installed,automatic]
linux-image-5.15.0-130-generic/jammy-updates,now 5.15.0-130.140 amd64
[installed,automatic] linux-image-generic/jammy-updates,now
5.15.0.130.128 amd64 [installed,automatic]
####################
I did this command (courtesy of Google) to see which NVIDIA modules
are installed:
dpkg -l | grep -i nvidia
That gave me 118 lines of output (!!!), so I'm attaching it to this
message as a text file instead of pasting it here. Can any of that be
cleaned out? It seems excessive.
####################
I ran this command (courtesy of Google) to display which kernel my
NVIDIA driver is currently using:
modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko |
grep version
That gave this output:
modinfo: ERROR: Module
/usr/lib/modules/5.15.0-130-generic/kernel/drivers/video/nvidia.ko
not found.
####################
The ERROR word is never a good sign. I'm assuming it means that I'm
not currently using the NVIDIA driver because it's floating out at
sea and hasn't been given a boat. Oddly enough, everything looks
fine, though.
There are, at the time of this writing, no new updates whatsoever, so
I'm hanging onto all of the kernels and keeping my hands off in high
hopes that the NVIDIA team will produce something soon so that I can
do my usual removal of the oldest, dustiest kernel.
Is there anything else I should be doing and/or can I clean up some of
that huge mess from the attached file?
--
Little Girl
There is no spoon.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output_of_dpkg_command.txt
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20241220/b13079a7/attachment.txt>
More information about the ubuntu-users
mailing list