nvidia-auto-installer-for-fedora-linux icon indicating copy to clipboard operation
nvidia-auto-installer-for-fedora-linux copied to clipboard

xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64 is filtered out

Open aanno opened this issue 2 years ago • 10 comments

I'm on fedora 35 and as I'm facing trouble using nvidia with kernel 5.15.11 and 5.15.12 (it is working with 5.15.10). Hence I decided to give nvidia-auto-installer-for-fedora-linux a try.

$ sudo nvautoinstall driver 
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.46-1.fc35.x86_64
      nvidia-libXNVCtrl-495.29.05-1.fc34.x86_64
      nvidia-driver-libs-495.29.05-1.fc34.x86_64
      nvidia-driver-495.29.05-1.fc34.x86_64
      nvidia-kmod-common-495.29.05-1.fc34.noarch
      kmod-nvidia-latest-dkms-495.29.05-1.fc34.x86_64
      akmod-nvidia-470.74-1.fc35.x86_64
      nvidia-settings-495.29.05-1.fc34.x86_64
      nvidia-driver-libs-495.29.05-1.fc34.i686
      xorg-x11-drv-nvidia-cuda-libs-495.46-1.fc35.x86_64
[ ! ] A total of 10 driver packages were detected
[ ★ ] REINSTALLING PROPRIETARY DRIVERS...
keybase                                                                                                      56 kB/s | 3.3 kB     00:00    
Das Paket gcc-11.2.1-7.fc35.x86_64 ist bereits installiert.
Das Paket kernel-headers-5.15.4-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.10-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.11-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.12-200.fc35.x86_64 ist bereits installiert.
Das Paket akmod-nvidia-3:470.74-1.fc35.x86_64 ist bereits installiert.
Alle Übereinstimmungen wurden durch modulare Filterung nach Argumenten herausgefiltert: xorg-x11-drv-nvidia
Das Paket nvidia-driver-libs-3:495.29.05-1.fc34.x86_64 ist bereits installiert.
Das Paket nvidia-driver-libs-3:495.29.05-1.fc34.i686 ist bereits installiert.
Fehler: Es konnte kein Treffer gefunden werden.: xorg-x11-drv-nvidia
[ ✗ ] Proprietary drivers could not be installed
[ ✗ ] Leaving installer

For me, it looks like the problem being trigger by xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64 being filtered out:

$ uname -a
Linux redsnapper 5.15.10-200.fc35.x86_64 #1 SMP Fri Dec 17 14:46:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[tpasch@redsnapper ~]$ sudo dnf install akmod-nvidia
keybase                                                                                                      47 kB/s | 3.3 kB     00:00    
Das Paket akmod-nvidia-3:470.74-1.fc35.x86_64 ist bereits installiert.
Abhängigkeiten sind aufgelöst.

 Problem: package akmod-nvidia-3:495.46-1.fc35.x86_64 requires nvidia-kmod-common >= 3:495.46, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64 is filtered out by modular filtering
============================================================================================================================================
 Package                       Architecture            Version                             Repository                                  Size
============================================================================================================================================
Pakete mit nicht auflösbaren Abhängigkeiten werden übersprungen:
 akmod-nvidia                  x86_64                  3:495.46-1.fc35                     rpmfusion-nonfree-updates                   26 k

Transaktionsübersicht
============================================================================================================================================
Überspringen  1 Paket

Nichts zu tun.
Fertig.
$ nvautoinstall --version
NVAutoInstall by Akashdeep Dhar <[email protected]>, version 0.4.0

aanno avatar Jan 08 '22 14:01 aanno

Hi @aanno, here's a support article that I wrote about this issue https://ask.fedoraproject.org/t/solution-modular-filtering-issue-for-nvidia-drivers-cuda-sources-conflict/14063. Please check if this helps solving your issue.

gridhead avatar Jan 08 '22 16:01 gridhead

Well, you suggestion (see below) works and also fixes your nvidia-auto-installer-for-fedora-linux. However, plasma on X11 still not works with kernel 5.15.12 (but plasma on wayland is usable).

So, this is what I did:

# dnf module disable nvidia-driver
# dnf install --best --allowerasing  akmod-nvidia

Complete output for reference:

# dnf module disable nvidia-driver
keybase                                                                                                     8.2 kB/s | 3.3 kB     00:00    
Abhängigkeiten sind aufgelöst.
============================================================================================================================================
 Package                          Architecture                    Version                            Repository                        Size
============================================================================================================================================
Disabling modules:
 nvidia-driver                                                                                                                             

Transaktionsübersicht
============================================================================================================================================

Ist dies in Ordnung? [j/N]: j
Fertig.


# dnf install --best --allowerasing  akmod-nvidia
Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:50 am So 09 Jan 2022 12:46:51 CET.
Das Paket akmod-nvidia-3:470.74-1.fc35.x86_64 ist bereits installiert.
Abhängigkeiten sind aufgelöst.
============================================================================================================================================
 Package                                Architecture         Version                          Repository                               Size
============================================================================================================================================
Aktualisieren:
 akmod-nvidia                           x86_64               3:495.46-1.fc35                  rpmfusion-nonfree-updates                26 k
 nvidia-settings                        x86_64               3:495.46-1.fc35                  rpmfusion-nonfree-updates               1.6 M
Abhängigkeiten werden installiert:
 xorg-x11-drv-nvidia                    x86_64               3:495.46-1.fc35                  rpmfusion-nonfree-updates                21 M
 xorg-x11-drv-nvidia-libs               i686                 3:495.46-1.fc35                  rpmfusion-nonfree-updates                24 M
 xorg-x11-drv-nvidia-libs               x86_64               3:495.46-1.fc35                  rpmfusion-nonfree-updates               149 M
Abhängige Pakete werden entfernt:
 kmod-nvidia-latest-dkms                x86_64               3:495.29.05-1.fc34               @cuda-fedora34-x86_64                    48 M
 nvidia-driver                          x86_64               3:495.29.05-1.fc34               @cuda-fedora34-x86_64                    56 M
 nvidia-driver-libs                     i686                 3:495.29.05-1.fc34               @cuda-fedora34-x86_64                    77 M
 nvidia-driver-libs                     x86_64               3:495.29.05-1.fc34               @cuda-fedora34-x86_64                   334 M
 nvidia-kmod-common                     noarch               3:495.29.05-1.fc34               @cuda-fedora34-x86_64                   1.8 k

Transaktionsübersicht
============================================================================================================================================
Installieren   3 Pakete
Aktualisieren  2 Pakete
Entfernen      5 Pakete

Gesamte Downloadgröße: 195 M
Pakete werden heruntergeladen:
(1/5): xorg-x11-drv-nvidia-495.46-1.fc35.x86_64.rpm                                                         2.3 MB/s |  21 MB     00:08    
(2/5): akmod-nvidia-495.46-1.fc35.x86_64.rpm                                                                 86 kB/s |  26 kB     00:00    
(3/5): nvidia-settings-495.46-1.fc35.x86_64.rpm                                                             1.7 MB/s | 1.6 MB     00:00    
(4/5): xorg-x11-drv-nvidia-libs-495.46-1.fc35.i686.rpm                                                      2.1 MB/s |  24 MB     00:11    
(5/5): xorg-x11-drv-nvidia-libs-495.46-1.fc35.x86_64.rpm                                                    4.3 MB/s | 149 MB     00:34    
--------------------------------------------------------------------------------------------------------------------------------------------
Gesamt                                                                                                      5.5 MB/s | 195 MB     00:35     
Transaktionsüberprüfung wird ausgeführt
Transaktionsprüfung war erfolgreich.
Transaktion wird getestet
Transaktionstest war erfolgreich.
Transaktion wird ausgeführt
  Vorbereitung läuft    :                                                                                                               1/1 
  Installieren          : xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.i686                                                                1/12 
  Installieren          : xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.x86_64                                                              2/12 
  Aktualisieren         : akmod-nvidia-3:495.46-1.fc35.x86_64                                                                          3/12 
  Ausgeführtes Scriptlet: akmod-nvidia-3:495.46-1.fc35.x86_64                                                                          3/12 
  Aktualisieren         : nvidia-settings-3:495.46-1.fc35.x86_64                                                                       4/12 
  Ausgeführtes Scriptlet: xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64                                                                   5/12 
  Installieren          : xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64                                                                   5/12 
  Ausgeführtes Scriptlet: xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64                                                                   5/12 
  Aufräumen             : akmod-nvidia-3:470.74-1.fc35.x86_64                                                                          6/12 
  Aufräumen             : nvidia-settings-3:495.29.05-1.fc34.x86_64                                                                    7/12 
  Löschen               : nvidia-driver-libs-3:495.29.05-1.fc34.i686                                                                   8/12 
  Löschen               : nvidia-driver-3:495.29.05-1.fc34.x86_64                                                                      9/12 
  Ausgeführtes Scriptlet: nvidia-driver-3:495.29.05-1.fc34.x86_64                                                                      9/12 
Failed to disable unit: Unit file nvidia-hibernate.service does not exist.
Failed to disable unit: Unit file nvidia-resume.service does not exist.
Failed to disable unit: Unit file nvidia-suspend.service does not exist.

  Ausgeführtes Scriptlet: kmod-nvidia-latest-dkms-3:495.29.05-1.fc34.x86_64                                                           10/12 
  Löschen               : kmod-nvidia-latest-dkms-3:495.29.05-1.fc34.x86_64                                                           10/12 
  Ausgeführtes Scriptlet: nvidia-kmod-common-3:495.29.05-1.fc34.noarch                                                                11/12 
  Löschen               : nvidia-kmod-common-3:495.29.05-1.fc34.noarch                                                                11/12 
  Ausgeführtes Scriptlet: nvidia-kmod-common-3:495.29.05-1.fc34.noarch                                                                11/12 
  Löschen               : nvidia-driver-libs-3:495.29.05-1.fc34.x86_64                                                                12/12 
  Ausgeführtes Scriptlet: akmod-nvidia-3:495.46-1.fc35.x86_64                                                                         12/12 
  Ausgeführtes Scriptlet: nvidia-driver-libs-3:495.29.05-1.fc34.x86_64                                                                12/12 
  Überprüfung läuft     : xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64                                                                   1/12 
  Überprüfung läuft     : xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.i686                                                                2/12 
  Überprüfung läuft     : xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.x86_64                                                              3/12 
  Überprüfung läuft     : akmod-nvidia-3:495.46-1.fc35.x86_64                                                                          4/12 
  Überprüfung läuft     : akmod-nvidia-3:470.74-1.fc35.x86_64                                                                          5/12 
  Überprüfung läuft     : nvidia-settings-3:495.46-1.fc35.x86_64                                                                       6/12 
  Überprüfung läuft     : nvidia-settings-3:495.29.05-1.fc34.x86_64                                                                    7/12 
  Überprüfung läuft     : kmod-nvidia-latest-dkms-3:495.29.05-1.fc34.x86_64                                                            8/12 
  Überprüfung läuft     : nvidia-driver-3:495.29.05-1.fc34.x86_64                                                                      9/12 
  Überprüfung läuft     : nvidia-driver-libs-3:495.29.05-1.fc34.x86_64                                                                10/12 
  Überprüfung läuft     : nvidia-driver-libs-3:495.29.05-1.fc34.i686                                                                  11/12 
  Überprüfung läuft     : nvidia-kmod-common-3:495.29.05-1.fc34.noarch                                                                12/12 

Aktualisiert:
  akmod-nvidia-3:495.46-1.fc35.x86_64                                 nvidia-settings-3:495.46-1.fc35.x86_64                                
Installiert:
  xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64 xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.i686 xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.x86_64
Entfernt:
  kmod-nvidia-latest-dkms-3:495.29.05-1.fc34.x86_64 nvidia-driver-3:495.29.05-1.fc34.x86_64      nvidia-driver-libs-3:495.29.05-1.fc34.i686
  nvidia-driver-libs-3:495.29.05-1.fc34.x86_64      nvidia-kmod-common-3:495.29.05-1.fc34.noarch

Fertig.

# nvautoinstall driver
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.46-1.fc35.x86_64
      nvidia-libXNVCtrl-495.29.05-1.fc34.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.46-1.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.46-1.fc35.i686
      xorg-x11-drv-nvidia-libs-495.46-1.fc35.x86_64
      akmod-nvidia-495.46-1.fc35.x86_64
      nvidia-settings-495.46-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.46-1.fc35.x86_64
      kmod-nvidia-5.15.10-200.fc35.x86_64-495.46-1.fc35.x86_64
[ ! ] A total of 9 driver packages were detected
[ ★ ] REINSTALLING PROPRIETARY DRIVERS...
keybase                                                                                                      19 kB/s | 3.3 kB     00:00    
Das Paket gcc-11.2.1-7.fc35.x86_64 ist bereits installiert.
Das Paket kernel-headers-5.15.4-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.10-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.11-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.12-200.fc35.x86_64 ist bereits installiert.
Das Paket akmod-nvidia-3:495.46-1.fc35.x86_64 ist bereits installiert.
Das Paket xorg-x11-drv-nvidia-3:495.46-1.fc35.x86_64 ist bereits installiert.
Das Paket xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.i686 ist bereits installiert.
Das Paket xorg-x11-drv-nvidia-libs-3:495.46-1.fc35.x86_64 ist bereits installiert.
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.
[ ✓ ] Driver package installation completed
[ ✗ ] Leaving installer

aanno avatar Jan 09 '22 12:01 aanno

However, plasma on X11 still not works with kernel 5.15.12 (but plasma on wayland is usable).

Unfortunately, this has to do with the driver and not the installer as the installer has apparently configured the driver properly. I would suggest reaching out to the folks at RPM Fusion who work on maintaining these drivers and see if they have any solutions for this.

gridhead avatar Jan 09 '22 18:01 gridhead

Reported the problem at https://bugzilla.rpmfusion.org/show_bug.cgi?id=6193 Thank you for suggestion!

aanno avatar Jan 11 '22 18:01 aanno

BTW, isn't nvautoinstall to solve issues like the one I encountered automatically?

aanno avatar Jan 11 '22 18:01 aanno

@aanno, it should as I mentioned in https://ask.fedoraproject.org/t/solution-modular-filtering-issue-for-nvidia-drivers-cuda-sources-conflict/14063/2?u=t0xic0der but in the presence of conflicting packages, the tool would rather prefer to exit out with an error than to assume that a certain package is not important and hence, remove it.

I have intentionally not included the directives that allow for erasing of existing conflicting packages as well as repositories in order to install the drivers.

gridhead avatar Jan 12 '22 04:01 gridhead

I reported the x11 problem at https://forums.developer.nvidia.com/t/x11-has-stopped-working-on-fedora-35/200682 (like suggested from rpmfusion).

aanno avatar Jan 16 '22 14:01 aanno

Button line:

  • On 01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] (rev a1) the rpmfusion package xorg-x11-drv-nvidia version 3:495.46-1.fc35 does not work any more
  • On this card you need NVIDIA-Linux-x86_64-470.94.run nowerdays (NVIDIA-Linux-x86_64-495.46.run does not work).

aanno avatar Jan 16 '22 17:01 aanno

Because of the problem mentioned above, nvautoinstall driver will trash nvidia x11 support (as NVIDIA-Linux-x86_64-470.94.run is installed and will get overwritten).

$ sudo nvautoinstall  driver
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES...
      nvidia-libXNVCtrl-495.29.05-1.fc34.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.46-1.fc35.x86_64
[ ! ] A total of 2 driver packages were detected
[ ★ ] REINSTALLING PROPRIETARY DRIVERS...
Schnellster Mirror wird ermittelt (5 Hosts).. done.    [===                                               ] ---  B/s |   0  B     --:-- ETA
Fedora 35 - x86_64 - Updates                                                                                 12 kB/s |  13 kB     00:01    
done.a 35 - x86_64 - Updates                           [   ===                                            ] ---  B/s |   0  B     --:-- ETA
Fedora 35 - x86_64 - Updates                                                                                1.3 MB/s | 2.1 MB     00:01    
Fedora Modular 35 - x86_64 - Updates                                                                         81 kB/s |  13 kB     00:00    
keybase                                                                                                      11 kB/s | 3.3 kB     00:00    
Das Paket gcc-11.2.1-7.fc35.x86_64 ist bereits installiert.
Das Paket kernel-headers-5.15.4-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.12-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.13-200.fc35.x86_64 ist bereits installiert.
Das Paket kernel-devel-5.15.14-200.fc35.x86_64 ist bereits installiert.
Abhängigkeiten sind aufgelöst.
============================================================================================================================================
 Package                                   Architecture         Version                       Repository                               Size
============================================================================================================================================
Installieren:
 akmod-nvidia                              x86_64               3:495.46-1.fc35               rpmfusion-nonfree-updates                26 k
Abhängigkeiten werden installiert:
 egl-wayland                               x86_64               1.1.9-3.fc35                  updates                                  36 k
 libglvnd-gles                             i686                 1:1.3.4-2.fc35                updates                                  30 k
 libglvnd-opengl                           i686                 1:1.3.4-2.fc35                updates                                  40 k
 nvidia-settings                           x86_64               3:495.46-1.fc35               rpmfusion-nonfree-updates               1.6 M
 xorg-x11-drv-nvidia                       x86_64               3:495.46-1.fc35               rpmfusion-nonfree-updates                21 M
 xorg-x11-drv-nvidia-kmodsrc               x86_64               3:495.46-1.fc35               rpmfusion-nonfree-updates                26 M
 xorg-x11-drv-nvidia-libs                  i686                 3:495.46-1.fc35               rpmfusion-nonfree-updates                24 M
 xorg-x11-drv-nvidia-libs                  x86_64               3:495.46-1.fc35               rpmfusion-nonfree-updates               149 M

Transaktionsübersicht
============================================================================================================================================
Installieren  9 Pakete

Perhaps nvautoinstaller should ask if you really want to overwrite the proprietary nvidia drivers package.

aanno avatar Jan 17 '22 16:01 aanno

Because of the problem mentioned above, nvautoinstall driver will trash nvidia x11 support (as NVIDIA-Linux-x86_64-470.94.run is installed and will get overwritten).

Please refer to this https://ask.fedoraproject.org/t/xorg-x11-drv-nouveau-error-and-nvidia-kernel-problem/13827/12?u=t0xic0der. We do not recommend the use of RUN file due to the aforementioned reasons and that is why the installer is intentionally made to be oblivious of its existence.

gridhead avatar Jan 18 '22 02:01 gridhead