Which NVIDIA driver on newly upgraded Lenovo Laptop

Ok, thanks. This sounds like the outline of a plan. I’d like to flesh it out a bit before I do it. If it all fails I have no choice but to reinstall from factory settings via live USB

Is this right?

  1. rm -f each file identified by for command except the one or two above.
  2. reboot. What mode will it come up in? Will it be no graphics, or will it just not use the graphics card? There are limited graphics capabilities on board the Intel CPU.
  3. In each case, what would be the commands I should issue from a command line to install what needs to be installed?

Yes it is, but you can easily delete it from synaptic.

OP should try that first before manually deleting anything.

I would suggest trying to delete it from synaptic first. if it doesn’t work do it manually, a lot safer if synaptic works.

Geez … synaptic is a FRONTEND, dpkg is authoritative here …

if dpkg -S /path/to/file tells you the file does not come from any deb it does not lie … synaptic wont change this

dpkg tells you it doesn’t come from a deb it knows, not that it doesn’t come from any deb, there is a difference from my understanding, If you download a random deb not from known source or install one with checkinstall dpkg would say the same thing, but it can still remove it nonetheless

That is my understanding, I could be wrong though. But it doesn’t hurt to try, takes a few seconds while we have been here for days already.

Right, that plan sounds correct … (not sure you need -f but you will need sudo …)

the system will come up with a black screen with login prompt and you should be able to log in with your credentials …

once you are logged in run ubuntu-drivers list and see if it suggests anything now, if so, pick the suggested one … else I think there were already suggestions above in this thread how to use ubuntu-drivers install to install the right version …

Pretty please read up about how dpkg works …

Instead of arguing with me why not just let OP try? It won’t hurt.

If it is not a deb and it is not from .run file what is it? where does it come from? Simple questions.

Edited: from OP’s report it is actually working, just that apt doesn’t have info about it re version and origin.

How do you know it doesn’t come from a .run file ?

We know for sure it does not come from a .deb file …
ANY deb you install ever is known by the dpkg database unless you extracted it manually (using the ar command) and copied the contents in place … as soon as you do dpkg -i or apt install info about this is in the database and it does not matter if you upgraded to a new release or whatnot, that info will not go away until you remove the deb with dpkg or apt (which in turn removes its files) …

When you use synaptic it queries exactly that database for info …

Now you might claim next that someone did dpkg -i and then edited the database by hand to remove all traces and that would in fact be possible … but rather unlikely on a freshly booted factory installed laptop that only got upgraded to the next release since it was unboxed …

If nothing else comes of this I enjoyed the show:
I’m curious now to see this though:

dpkg --list | grep linux-image*

There is a lot of bikeshedding and a lot of arguing going on in this thread. Let’s put a stop to that, please.

1 Like

OP said adamantly he never downloaded or installed from a .run file. I believe him since it takes a bit of work and effort to install from the .run file and it is not possible that he did it by accident without remembering.

I bet it is a .deb from Lenovo’s 22.04 repo and left orphaned when he upgraded to 24.04 where the repo doesn’t support.

$ dpkg --list | grep linux-image*
ii  linux-image-6.5.0-1022-oem                    6.5.0-1022.23                            amd64        Signed kernel image oem
ii  linux-image-6.8.0-52-generic                  6.8.0-52.53                              amd64        Signed kernel image generic
ii  linux-image-generic                           6.8.0-52.53                              amd64        Generic Linux kernel image
ii  linux-image-generic-hwe-22.04                 6.8.0-52.53~22.04.1                      amd64        Generic Linux kernel image

What does this tell us?

Well, explain how that would technically work while I’m out doing my groceries, I’ll happily read your explanation :slight_smile:

A deb that is still installed will have a database entry no matter if the archive it came from still exists, was a different release or has been orphaned or became unsupported … dpkg only cares for local files, not for archives or where the packages originally came from :slight_smile:

I think I found a clue, I need to do some thought and research first.

1 Like

I did, adamantly, say that I never downloaded or installed any graphics drivers from a run file. However, a possibility was raised that Lenovo might have done so.

Please now show this:

nvidia-smi

There is only one way to find out. Just let OP try it.

I am sure you know more about the intricacies of dpkg than I do. I only ask one question. If it is not a .deb and not from .run file then what is it? How does it get there? If there is a third possibility I would love to know.

$ nvidia-smi
Fri Jan 31 12:16:16 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA RTX 3500 Ada Gene...    Off | 00000000:01:00.0 Off |                  Off |
| N/A   32C    P0              N/A / 115W |      8MiB / 12282MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3124      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

It’s not a .run binary, but packaged in the kernel at install time.
My reasoning here is this:

/usr/lib/modprobe.d/nvidia-kms.conf
/usr/lib/modprobe.d/nvidia-runtimepm.conf
/usr/lib/modprobe.d/nvidia-graphics-drivers.conf
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/nvidia-peermem.ko
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/nvidia.ko
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/nvidia-modeset.ko
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-modeset.o
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-uvm.ko.sig
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-peermem.ko.sig
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-drm.mod
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-drm.o
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia.ko.sig
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-peermem.o
/usr/lib/modules/6.5.0-1022-oem/kernel/nvidia-535/bits/nvidia-uvm.mod
1 Like