Kernels galore and no NVIDIA driver in sight
Keith
keithw at caramail.com
Sat Dec 21 21:26:51 UTC 2024
On 12/21/24 12:14 PM, Little Girl wrote:
> Hey there,
[snipped]
>
>> $ sudo apt -s purge ~c
>
> Ouch. That gave output of 363 lines that I've attached to this
> message as a text file.
Oof, that's a bit unexpected unless you've never run autoremove with the
"--purge" option before.
>
>> You can also run the following command but I would check apt's sim
>> output first to make sure nothing is removed unintentionally.
>>
>> $ sudo apt -s autopurge
>
> I'll wait to do that until I've heard back from you on whether the
> attached output looks good to remove or not.
>
[snipped]
>> $ lsmod |grep -i nvidia
>
> The output from that one is:
>
> nvidia_uvm 1511424 0
> nvidia_drm 77824 4
> nvidia_modeset 1306624 14 nvidia_drm
> nvidia 56741888 913 nvidia_uvm,nvidia_modeset
> drm_kms_helper 311296 1 nvidia_drm
> drm 622592 8 drm_kms_helper,nvidia,nvidia_drm
>
>> $ modinfo nvidia
>
> Some of the output from that one seems like it would be better not to
> share in public. I'm assuming this is the part you'd be interested in:
[snipped]
That's fine. I just wanted to confirm the nvidia module was the 535
version loaded with the 5.15.0-130-generic kernel. So the your graphic
driver is good with the current kernel.
>
> Thank you for all of this help and information. Would there be any
> harm in my doing the sudo apt autoremove command that I usually run
> after getting a new kernel to remove the oldest one? My goal is just
> not to make my NVIDIA card unhappy.
>
I don't believe that you'll harm anything the way it looks now, but
autoremove doesn't remove config files unless you add the "--purge"
option (autopurge is just a shortcut for that), so you'll have a bunch
entries with "rc" still left in your "dpkg -l" output.
After you run "apt autoremove (or autopurge)" I would still run
"apt purge ~c" afterwards to remove any residual config files.
--
Keith
More information about the ubuntu-users
mailing list