Geforce RTX 5080, the drivers are not working on Ubuntu 22

Thank you very much.
I can’t upload images, so I’ll send you all the steps I’m going to take:

sudo sh NVIDIA-Linux-x86_64-570.169.run -m=kernel-open


                         NVIDIA Accelerated Graphics Driver for Linux-x86_64 (570.169)

An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your
distributor.) A driver installed via that method may integrate better with your system than a driver installed by
nvidia-installer.

Please review the message provided by the maintainer of this alternate installation method and decide how to
proceed:

                          Continue installation                   Abort installation

The NVIDIA driver provided by Ubuntu can be installed by launching the “Software & Updates” application, and by
selecting the NVIDIA driver from the “Additional Drivers” tab.

I click to continue with the installation.


ERROR: Unable to find the development tool cc in your path; please make sure that you have the package ‘gcc’
installed. If gcc is installed on your system, then please check that cc is in your PATH.

                                                       OK

sudo apt update

sudo apt install build-essential


WARNING: nvidia-installer was forced to guess the X library path ‘/usr/lib’ and X module path
‘/usr/lib/xorg/modules’; these paths were not queryable from the system. If X fails to find the NVIDIA X
driver module, please install the pkg-config utility and the X.Org SDK/development package for your
distribution and reinstall the driver.

                                                       OK

Install NVIDIA’s 32-bit compatibility libraries?

                                   Yes                                    No

I press Yes


WARNING: This NVIDIA driver package includes Vulkan components, but no Vulkan ICD loader was detected on this
system. The NVIDIA Vulkan ICD will not function without the loader. Most distributions package the Vulkan
loader; try installing the “vulkan-loader”, “vulkan-icd-loader”, or “libvulkan1” package.

                                                       OK

The initramfs will likely need to be rebuilt due to the following condition(s):

  • Nouveau is present in the initramfs.

Would you like to rebuild the initramfs?

                        Do not rebuild initramfs                  Rebuild initramfs

I press Rebuild initramfs


Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the
NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up.

                                   Yes                                    No

I press No


Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 570.169) is now complete. Please
update your xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.

                                                       OK

After restarting:

nvidia-smi

No devices were found


sudo nvidia-xconfig

WARNING: Unable to locate/open X configuration file.

WARNING: Unable to parse X.Org version string.

sh: 1: pkg-config: not found

WARNING: Unable to use the nvidia-cfg library to query NVIDIA hardware.

ERROR: Unable to find any GPUs in the system.

New X configuration file written to ‘/etc/X11/xorg.conf’


sudo apt install pkg-config xserver-xorg-dev

sudo apt install build-essential pkg-config xserver-xorg-dev linux-headers-$(uname -r)

sudo apt purge ‘nvidia*’

sudo rm -rf /etc/X11/xorg.conf /etc/modprobe.d/nvidia* /var/lib/dkms/nvidia /lib/modules/$(uname -r)/updates/dkms/nvidia*

sudo update-initramfs -u


Using:

sudo sh NVIDIA-Linux-x86_64-570.169.run -m=kernel-open

I have rebuilt it and restarted the device.


sudo nvidia-smi

No devices were found


sudo nvidia-xconfig

Using X configuration file: “/etc/X11/xorg.conf”.

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Device section “Device0” must have a Driver line.

WARNING: Unable to parse X.Org version string.

WARNING: Unable to use the nvidia-cfg library to query NVIDIA hardware.

ERROR: Unable to find any GPUs in the system.

Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.nvidia-xconfig-original’
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’


##sudo nvidia-bug-report.sh

Running nvidia-bug-report.sh… complete.

Summary of Skipped Sections:

Skipped Component | Details

ldd output | glxinfo not found

xrandr output | xrandr not found

vulkaninfo output | vulkaninfo not found

ibstat output | ibstat not found

acpidump output | acpidump not found

mst output | mst not found

nvlsm-bug-report.sh output | nvlsm-bug-report.sh not found

Summary of Errors:

Error Component | Details | Resolution

nvidia-bug-report.log.gz (166.0 KB)