Nvidia driver installation in F38 beta

so I upgraded and my system is extremely buggy and I know its related to those damn nvidia drivers.

They didnt seem to get brought over to f38 beta.

I ran

[benji@fedora ~]$ nvidia-smi output
bash: nvidia-smi: command not found...
Packages providing this file are:
'xorg-x11-drv-nvidia-340xx-cuda'
'xorg-x11-drv-nvidia-390xx-cuda'
'xorg-x11-drv-nvidia-470xx-cuda'
'xorg-x11-drv-nvidia-cuda'

to check and so I tried to reinstall them with

sudo dnf install akmod-nvidia --best --allowerasing
Last metadata expiration check: 0:08:55 ago on Thu 23 Mar 2023 00:08:26.
Dependencies resolved.
====================================================================================================================================================================================================================
 Package                                                               Architecture                        Version                                            Repository                                       Size
====================================================================================================================================================================================================================
Installing:
 akmod-nvidia                                                          x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                                39 k
Installing dependencies:
 egl-gbm                                                               x86_64                              1.1.0-4.fc38                                       fedora                                           20 k
 nvidia-settings                                                       x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                               1.7 M
 xorg-x11-drv-nvidia                                                   x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                                43 M
 xorg-x11-drv-nvidia-kmodsrc                                           x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                                45 M
 xorg-x11-drv-nvidia-libs                                              x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                               187 M
Installing weak dependencies:
 xorg-x11-drv-nvidia-cuda-libs                                         x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                                54 M
 xorg-x11-drv-nvidia-power                                             x86_64                              3:525.89.02-1.fc38                                 rpmfusion-nonfree                               198 k
Removing dependent packages:
 akmod-nvidia-470xx                                                    x86_64                              3:470.161.03-2.fc38                                @rpmfusion-nonfree                               86 k
 kmod-nvidia-470xx-6.1.18-200.fc37.x86_64                              x86_64                              3:470.161.03-2.fc37                                @@commandline                                    24 M
 kmod-nvidia-470xx-6.2.7-200.fc37.x86_64                               x86_64                              3:470.161.03-2.fc37                                @@commandline                                    24 M
 kmod-nvidia-470xx-6.2.7-300.fc38.x86_64                               x86_64                              3:470.161.03-2.fc38                                @@commandline                                    24 M
 nvidia-settings-470xx                                                 x86_64                              3:470.161.03-1.fc38                                @rpmfusion-nonfree                              4.5 M
 xorg-x11-drv-nvidia-470xx                                             x86_64                              3:470.161.03-1.fc38                                @rpmfusion-nonfree                               55 M

Transaction Summary
====================================================================================================================================================================================================================
Install  8 Packages
Remove   6 Packages

Total download size: 331 M
Is this ok [Y/n]: 
Downloading Packages:
(1/8): egl-gbm-1.1.0-4.fc38.x86_64.rpm                                                                                                                                               24 kB/s |  20 kB     00:00    
(2/8): akmod-nvidia-525.89.02-1.fc38.x86_64.rpm                                                                                                                                      39 kB/s |  39 kB     00:01    
(3/8): xorg-x11-drv-nvidia-power-525.89.02-1.fc38.x86_64.rpm                                                                                                                        125 kB/s | 198 kB     00:01    
(4/8): nvidia-settings-525.89.02-1.fc38.x86_64.rpm                                                                                                                                  703 kB/s | 1.7 MB     00:02    
(5/8): xorg-x11-drv-nvidia-525.89.02-1.fc38.x86_64.rpm                                                                                                                              2.5 MB/s |  43 MB     00:17    
(6/8): xorg-x11-drv-nvidia-cuda-libs-525.89.02-1.fc38.x86_64.rpm                                                                                                                    2.7 MB/s |  54 MB     00:19    
(7/8): xorg-x11-drv-nvidia-kmodsrc-525.89.02-1.fc38.x86_64.rpm                                                                                                                      2.1 MB/s |  45 MB     00:21    
(8/8): xorg-x11-drv-nvidia-libs-525.89.02-1.fc38.x86_64.rpm                                                                                                                         4.4 MB/s | 187 MB     00:42    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                               7.0 MB/s | 331 MB     00:47     
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/lib64/libEGL_nvidia.so.0 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libGLESv1_CM_nvidia.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libGLESv2_nvidia.so.2 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libGLX_nvidia.so.0 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvidia-allocator.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvidia-cfg.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvidia-fbc.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvidia-ngx.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvidia-vulkan-producer.so from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/libnvoptix.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/nvidia/wine/_nvngx.dll from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/lib64/vdpau/libvdpau_nvidia.so.1 from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/share/vulkan/icd.d/nvidia_icd.json from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64
  file /usr/share/vulkan/implicit_layer.d/nvidia_layers.json from install of xorg-x11-drv-nvidia-libs-3:525.89.02-1.fc38.x86_64 conflicts with file from package xorg-x11-drv-nvidia-470xx-libs-3:470.161.03-1.fc38.x86_64


so no dice…

It looks like you were running the nvidia-470xx drivers which did not build right when you upgraded.When you tried to install akmod-nvidia you installed the latest drivers which conflict.Myself I would remove nvidia altogether and reinstall with the correct drivers.

2 Likes

I have tried many times to remove all traces of Nvidia and reinstall but continue to have this error.

Perhaps I need to go with kmod instead of akmod.

Is there anyone else who is having trouble with Nvidia drivers on Fedora 38 beta?

I wish I could just reinstall the fedora 38 beta from scratch really disappointed it didn’t install right, I followed the instructions but during install the mirrors for Nvidia didn’t work and interfered with the install

There are tons of users who complain every day on every supported Fedora version.

Using RPM-Fusion and install from there.

Expert in Nvidia is this user here:

Follow his answers and tipps and you will be successfully. This not means to contact him direct, but if you include his nick in the search you will find “best” answers.

Best practices is always test in Virtual environment or on a external Hard-drive if you want to test the Hardware.

I do so and swap in the end the disk when everything works smooth (this means installing grub2 separately on each disk).

When you have nvidia 470 installed and are upgrading it is always best to remove nvidia 470 then install the newer version.
dnf remove '*nvidia*470*

However, is there a reason you have the 470 driver installed? Maybe your GPU is in the category that was not supported with the newer drivers, in which case the 470 driver is the one needed.

If so then probably you should wait to upgrade to F38 until it is actually released and hopefully the 470xx drivers will be updated for that as well by then.

2 Likes

Thanks for writing @computersavvy your always the best of help and I hope you know that we all appreciate your kind help so much

I am running a very old nvidia card, so perhaps that is the reason. I have a nvidia GeForce GTX 660

to try and reinstall

i just ran dnf remove '*nvidia*'

then I will try sudo dnf -y update

and install with

sudo dnf -y install kmod-nvidia

and then

 sudo dnf install xorg-x11-drv-nvidia-cuda

should i reboot the system once i remove nvidia drivers at the first step?

since if i do that my system may not boot in as it will freeze without the noveau drivers.


edit

Okay I followed that sequence of commands and I am forced to rollback to fedora 37 by completly reimaging the system :frowning:

[benji@fedora ~]$ nvidia-smi output
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

[benji@fedora ~]$ 

The command you used also removed the nvidia-gpu-firmware package since it was not excluded in the removal. That prevents the OS from recognizing and configuring the nvidia GPU.

When I go to nvidia.com and search for the drivers for your card I see that it is supported by the 470xx series of drivers and nothing newer.
You will need to reinstall the nvidia-gpu-firmware from fedora and reinstall the 470xx drivers from rpmfusion.
dnf install nvidia-gpu-firmware akmod-nvidia-470xx xorg-x11-drv-nvidia-cuda should recover that for F37 after you remove the newer ones that do not support that card.

4 Likes

He definitely deserves the Nvidia-Ninja badge. I just would add to the slogan:

Just @computersavvy Ninja can !! :laughing:

1 Like

You should be running the nvidia ops as CTO, your a champion.

Although I couldnt get that command to work on Fedora 38 beta,

For the record I was forced to reimage the system and goback to F37

I could only get fedora 37 to work with your commands you kindly listed here:

Would i have less trouble if I had a newer video card?

Even though I wasnt succcessfull with Fedora 38 I will take your advice and wait for 38 to be stable as you mentioned

Probably because that driver is not yet supported for install on the Beta F38.

Definitely a newer GPU would be better. If I installed a newer one (mine is a GTX 1050) I would be looking about a 2080 or so. Depends upon what you would like and how long you expected it to continue to serve (and your budget).

BTW: if not already done the cuda driver for 470xx can be installed with dnf install xorg-x11-drv-nvidia-470xx-cuda which will give you the nvidia-smi command.

1 Like