Failed upgrate Nvidia driver. [SOLVED]

Started by Jotlemat, 2024/01/03, 18:01:58

Previous topic - Next topic

dibl

Here are my two desktop systems with Nvidia graphics -- not the newest hardware, for sure. They are both fully updated and working well:

Host: Hibiscus Kernel: 6.6.9-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.10 Distro: siduction 22.1.2 Masters_of_War -
    kde - (202303151559)
CPU:
  Info: quad core model: Intel Core i7-4770 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 1117 min/max: 800/3900 cores: 1: 800 2: 3188 3: 800
    4: 824 5: 800 6: 800 7: 927 8: 800
Graphics:
  Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] driver: nvidia v: 525.147.05
  Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    resolution: 1366x768~60Hz
  API: EGL v: 1.5 drivers: nvidia platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 vendor: nvidia v: 525.147.05 renderer: NVIDIA
    GeForce GTX 750 Ti/PCIe/SSE2


  Host: dibl-MOW Kernel: 6.6.9-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.10 Distro: siduction 22.1.2 Masters_of_War -
    kde - (202303151559)
CPU:
  Info: quad core model: Intel Core i7-7740X bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 1262 min/max: 800/4500 cores: 1: 800 2: 800 3: 800
    4: 4500 5: 800 6: 800 7: 800 8: 800
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 525.147.05
  Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    resolution: 1: 1920x1200~60Hz 2: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: nvidia platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 vendor: nvidia v: 525.147.05 renderer: NVIDIA
    GeForce GTX 1060 6GB/PCIe/SSE2

   
   
You wrote that you "tried to update the nvidia driver ...". I am not sure what that means -- did you have a previous nvidia driver installed and working?

For my systems, there is nothing special about updating the nvidia driver, except when sometimes a new linux kernel is not backward compatible to the current driver in unstable, then you have to do as @towo says and go to the experimental repo for a newer version. But that is not the case for the current 525.147.05-4 driver -- at least it is not a problem on my hardware, as you see above.

Here is the list of the packages that you need:

don@dibl-MOW:~$ apt depends nvidia-driver
nvidia-driver
  PreDepends: nvidia-installer-cleanup
  PreDepends: nvidia-legacy-check (>= 495)
  Depends: nvidia-driver-libs (= 525.147.05-4)
  Depends: nvidia-driver-bin (= 525.147.05-4)
  Depends: xserver-xorg-video-nvidia (= 525.147.05-4)
  Depends: nvidia-vdpau-driver (= 525.147.05-4)
  Depends: nvidia-alternative (= 525.147.05-4)
|Depends: nvidia-kernel-dkms (= 525.147.05-4)
|Depends: <nvidia-kernel-525.147.05>
    nvidia-kernel-dkms
|Depends: <nvidia-open-kernel-525.147.05>
    nvidia-open-kernel-dkms
  Depends: <nvidia-open-kernel-525.147.05>
    nvidia-open-kernel-dkms
  Depends: nvidia-support
  Recommends: nvidia-settings (>= 525)
  Recommends: libnvidia-cfg1 (= 525.147.05-4)
  Recommends: nvidia-persistenced
|Suggests: nvidia-kernel-dkms (>= 525.147.05)
|Suggests: nvidia-kernel-source (>= 525.147.05)
|Suggests: nvidia-open-kernel-source (>= 525.147.05)
  Suggests: nvidia-open-kernel-source (>= 525.147.05)

 
  I think maybe you need to remove all nvidia related packages, then try again with nvidia-driver.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

towo

Kernel 6.4.4:
linux-6.4.4.tar.xz                                 19-Jul-2023

Nvidia 525.105.17
Release Date: 2023.3.30

You see the problem?
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Jotlemat

Removed nvidia driver.

apt-get purge nvidia.

Installed it again.

apt-get install nvidia-driver

The situation has not changed.

[attachment id=0 msg=73257]

[attachment id=1 msg=73257]

dibl

@towo has shown that you are running a kernel (6.4.4) that is too old for the new nvidia driver version.

Do you have the siduction linux-image and linux-headers packages installed?

# apt update && sudo apt install linux-image-siduction-amd64 linux-headers-siduction-amd64

Next

# apt update && apt full-upgrade

This will bring in the latest released siduction kernel.  After you have the the new kernel, then the lastest nvidia driver should install correctly.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

Jotlemat

I installed the old kernel and driver because @towo said that 6.6 kernels and the new driver do not work together.
At the beginning of the update and now I have kernel 6.6.9 and a new driver.
The errors are the same all the time.

Jotlemat

Yesterday I did:

apt-get update && apt-get upgrade

But mistakes remained.

This morning I reinstalled the new driver (mistakes remained.).
Now I did it again:

apt-get update && apt-get upgrade

Everything worked.
Kernels 6.6.9 and 6.4.4 work with the new driver.


Thank you all very much.

dibl

Cool.  (You need to use apt full-upgrade with sid, not upgrade, or your system will not receive new Debian packages that are released into sid, and eventually it will break.)

Now for the benefit of others, please open your original post for editing, and add "SOLVED" to the beginning of the title, and thank you.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.