Installing Nvidia Drivers on Fedora 33 Issues

May 02, 2021

Here are some issues that I encountered installing Nvidia drivers on Fedora 33.

Nouveau drivers

Error:

The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, 
and must be disabled before proceeding.

Solution:

echo 'blacklist nouveau' >> /etc/modprobe.d/disable-nouveau.conf

Kernel Headers

Error:

Your kernel headers for kernel 5.10.21-200.fc33.x86_64 cannot be found at /lib/modules/5.10.21-200.fc33.x86_64/build or 
ln. /lib/modules/5.10.21-200.fc33.x86_64/source.

Solution

  648  sudo yum groupinstall 'Development Tools'
  649  sudo yum install kernel-devel

GCC Compiler Versioning Issues

Error

 ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 465.27 -k 
  5.11.16-200.fc33.x86_64`:
  Kernel preparation unnecessary for this kernel.  Skipping... 
 
   Building module: rnel module:
   cleaning build area...
   'make' -j12 NV_EXCLUDE_BUILD_MODULES=''
   KERNEL_UNAME=5.11.16-200.fc33.x86_64 IGNORE_CC_MISMATCH=''                  
         modules...(bad exit status: 2)
  Error! Bad return status for module build on kernel:
  5.11.16-200.fc33.x86_64 (x86_64)
  Consult /var/lib/dkms/nvidia/465.27/build/make.log for more 
  information.

Solution

Make sure your version is downgraded to the one that is matching the one specified in make.log

After the install I believe you should reboot