Cannot install proprietary NVIDIA driver

Bug #1878946 reported by junkie
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-440 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) Distro: Kubuntu 20.04

2) Package version: nvidia-driver-440 version "440.82+really.440.64-0ubuntu6"

I have started the driver management from system settings, selected "Using NVIDIA driver metapackage from nvidia-driver-440 (proprietary, tested).

3) What I expected to happen: The proprietary driver should be installed. OpenCL should work (e.g. for darktable).

4) What happened instead: An error window pops up. Title: "Error wh... changes", content: "pk-client-error-quark: Error while installing package: >>neues libnidia-gl-440 (313)".
The additional drivers selector still shows "Using X.ORg X server - Nouveau display driver from xserver-xorg-nouveau (open source)", although this package is NOT installed.
Checking with muon, it shows that some nvidia 440 related packages have been installed, but nvidia-driver-440 is shown with status 'corrupt' ('Defekt' in German). The packages libnvidia-ifr1-440 and libnvidia-ifr1-440 are also shown with status 'corrupt'.
Discover offers 'libnvidia-gl-440 version 440.82+really.440.64-0ubuntu6', but that cannot be installed.

Trying to clear up the situation on the commandline results in:
"sudo apt install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Abhängigkeiten werden korrigiert ... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libnvidia-gl-440 libnvidia-gl-440:i386
Die folgenden NEUEN Pakete werden installiert:
  libnvidia-gl-440 libnvidia-gl-440:i386
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
63 nicht vollständig installiert oder entfernt.
Es müssen noch 0 B von 79,6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 281 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n]
(Lese Datenbank ... 276127 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libnvidia-gl-440_440.82+really.440.64-0ubuntu6_i386.deb ...
Umleitung von /usr/lib/i386-linux-gnu/libGL.so.1 zu /usr/lib/i386-linux-gnu/libGL.so.1.distrib durch nvidia-340
dpkg-divert: Fehler: Keine Übereinstimmung mit Paket
  beim Entfernen von »Umleitung von /usr/lib/i386-linux-gnu/libGL.so.1 durch libnvidia-gl-440«
  »Umleitung von /usr/lib/i386-linux-gnu/libGL.so.1 zu /usr/lib/i386-linux-gnu/libGL.so.1.distrib durch nvidia-340« gefunden
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libnvidia-gl-440_440.82+really.440.64-0ubuntu6_i386.deb (--unpack):
 »neues libnvidia-gl-440:i386-Skript des Paketes pre-installation«-Unterprozess gab den Fehlerwert 2 zurück
Vorbereitung zum Entpacken von .../libnvidia-gl-440_440.82+really.440.64-0ubuntu6_amd64.deb ...
Umleitung von /usr/lib/x86_64-linux-gnu/libGL.so.1 zu /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib durch nvidia-340
dpkg-divert: Fehler: Keine Übereinstimmung mit Paket
  beim Entfernen von »Umleitung von /usr/lib/x86_64-linux-gnu/libGL.so.1 durch libnvidia-gl-440«
  »Umleitung von /usr/lib/x86_64-linux-gnu/libGL.so.1 zu /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib durch nvidia-340« gefunden
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libnvidia-gl-440_440.82+really.440.64-0ubuntu6_amd64.deb (--unpack):
 »neues libnvidia-gl-440:amd64-Skript des Paketes pre-installation«-Unterprozess gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/libnvidia-gl-440_440.82+really.440.64-0ubuntu6_i386.deb
 /var/cache/apt/archives/libnvidia-gl-440_440.82+really.440.64-0ubuntu6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)"

[Sorry for this being partially in German]

darktable shows OpenCL as being unavailable, even if the nvidia kernel modules (nvidia, nvidia_uvm, nvidia_modeset, nvidia_drm modeset=1) have been loaded.

junkie (syiad)
description: updated
junkie (syiad)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: New → Confirmed
Revision history for this message
Vedran Rafaelic (croraf) wrote :

Did you manage to solve this. I have the same issue now.

Before it was working on my 5.4 kernel (Ubuntu 20.04), but then I installed the 5.8 kernel to test something, and purged nvidia.

Now when I return to 5.4 kernel and want to switch to the same nvidia that was working ("Using nvidia driver metapackage from nvidia-driver-440 (proprietary, tested)") I get the error as in the attachment.

Revision history for this message
junkie (syiad) wrote :

No, still no solution. I tried again a few days ago, assuming it might have been fixed with Kubuntu 20.04.1, but to no avail. There were the same errors regarding the link from /usr/lib/x86_64-linux-gnu/libGL.so.1 as before.
Maybe this will be solved with Kubuntu 20.10.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I did manage to install these nvidia drivers now.

Ubuntu 20.04.
kernel 5.4.0-42-generic (the default one)

I think the only thing I did in the meantime is that I replaced the /lib/firmware/intel/sof/sof-cfl.ri with the one attached on this comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1892714/comments/46

But maybe nvidia did the update of the driver in the meantime. Anyways it is working on my system (which is not the same as yours)

Revision history for this message
junkie (syiad) wrote :

Now I've also had success installing the new nvidia driver (450).

After the failed install, I tried 'sudo apt -f install'. This also failed with error messages, pointing to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib and x86_64-linux-gnu/libGL.so.1.distrib, respectively, being modified by nvidia-340.

Well, nvidia-340 wasn't installed. I installed it and removed it again straight away. After that, it was possible to successfully install the nvidia-driver-450 through the additional drivers tool.

Revision history for this message
Ivan (packetracer) wrote :

I managed to re-install it by installing a different previous version from the driver, after that executing sudo apt auto-remove to delete previously installed nvidia packages, then re-installing the latest driver version.

It seems that once you install a version of the driver, you cannot reinstall it if you don't remove the package first.

Revision history for this message
Zero (zerofossilfuel) wrote (last edit ):

This bug is not limited to just Kubuntu. I am chiming in as a Xubuntu 20.04.2 user. The driver I attempt to install from Driver Manager is 340.108. The results are identical to what is being reported here. And this bug affects ALL of my machines running v20.04. My Asus laptop with hybrid Nvidia GT218, my desktop with PNY GeForce 210, my i7 desktop with GT750, and others. So please count this as three reports, not just one.

The only common denominator is v20.04 of the Ubuntu base OS. And FWIW, I am not a fan of Mint but it does not suffer from this bug.

Revision history for this message
Giancarlo (giancast-i) wrote :

I am just having the same problem with U20.04. Just installed fresh today Jan 9, 2022. My computer is freezing only when I open Libreoffice Calc with fullscreen 2560x1440 (lower res works fine), so I wanted to try a new install with nothing in it, just as-is from the download. In this new install my kernel is 5.11-0-44 generic. My other install of 20.04 the kernel is 5.4 (I tried to do an update to 5.11 since I read that it fixes a really nasty bug but it would not upgrade.) I would not downgrade kernel 5.11 since this is happening to me with the kernel that came with the original U20.04, my freeze may be a different issue.
In today's install when I go to SW & Updates -- Additional Drivers and click on the Using Nvidia driver, after a few minutes I get a window with Error while applying changes and "pk-client-error-quark: Error while installing package: installed nvidia-340 package post-installation script subprocess returned error exit status 10 (313)"

Revision history for this message
Paddy Launch (p-l) wrote :

I have the same problem and need it because the bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1884726 freeze my PC very often. I would be happy to get this fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.