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

When I change the drivers from the GUI, I get this error:

pk-client-error-quark: Cannot download packages whilst offline (257)

When I install them from the terminal, I get the following error:

root@thebeast:/home/soporte# nvidia-smi
No devices were found
root@thebeast:/home/soporte# dmesg | grep -i nvidia
[ 3.855779] nvidia: loading out-of-tree module taints kernel.
[ 3.856051] nvidia: module license ‘NVIDIA’ taints kernel.
[ 3.868570] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 3.892601] nvidia-nvlink: Nvlink Core is being initialized, major device number 507
[ 3.892623] NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
[ 3.903596] NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
[ 3.905111] nvidia 0000:e1:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 3.920764] NVRM: Loading NVIDIA UNIX x86_64 Kernel Module 570.153.02 Tue May 13 16:34:43 UTC 2025
[ 3.936622] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 570.153.02 Tue May 13 16:21:23 UTC 2025
[ 3.942171] [drm] [nvidia-drm] [GPU ID 0x0000e100] Loading driver
[ 3.957285] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 3.989611] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 3.989661] [drm:nv_drm_load [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x0000e100] Failed to allocate NvKmsKapiDevice
[ 3.989797] [drm:nv_drm_register_drm_device [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x0000e100] Failed to register device
[ 6.699987] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 7.524007] audit: type=1400 audit(1750204340.787:6): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=1309 comm=“apparmor_parser”
[ 7.524009] audit: type=1400 audit(1750204340.787:7): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=1309 comm=“apparmor_parser”
[ 20.927211] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 20.935590] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 20.944473] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 20.952526] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 21.236839] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 21.245031] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 21.252862] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 21.260944] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 30.698450] NVRM: The NVIDIA GPU 0000:e1:00.0 (PCI ID: 10de:2c02)
[ 30.698454] NVRM: installed in this system requires use of the NVIDIA open kernel modules.
root@thebeast:/home/soporte#

I downloaded the recommended one:

nvidia-driver-570

I also downloaded this, but it didn’t work:

NVIDIA-Linux-x86_64-570.169.run

Hi @soporte.microsyscom
Please purge any existing NVIDIA proprietary drivers, you can use below command for the same.
sudo apt purge nvidia*

And then please install .run file via command “sudo sh NVIDIA-Linux-x86_64-570.169.run -m=kernel-open”

If issue still persists while installing driver, please share fresh nvidia bug report.

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)

Hi @soporte.microsyscom , thanks for reporting this issue.
Could you please try again after setting the kernel params amd_iommu=off and pci=realloc=off.

Good morning, here is my grub file.

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash amd_iommu=off pci=realloc=off”
GRUB_CMDLINE_LINUX=“”

It continues with the same error of device not found.


I just set everything up from scratch and installed the 575, and still the same…

Good morning, here is my grub file.

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash amd_iommu=off pci=realloc=off”
GRUB_CMDLINE_LINUX=“”


It continues with the same error of device not found.

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda-repo-ubuntu2204-12-9-local_12.9.1-575.57.08-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-12-9-local_12.9.1-575.57.08-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-12-9-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-9
sudo apt-get install -y nvidia-open
apt-get install -y cuda-drivers
apt install nvidia-driver-575


Grub file:

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash amd_iommu=off pci=realloc=off”
GRUB_CMDLINE_LINUX=“”


sudo update-grub


I’ve rebooted, and the same error.


Summary of Skipped Sections:

Skipped Component | Details

xrandr output | xrandr not found

ibstat output | ibstat 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 (706.5 KB)

Hi @soporte.microsyscom , it looks like you have installed the proprietary driver. Please install the Open Source driver usingsudo sh NVIDIA-Linux-x86_64-570.169.run -m=kernel-open. The steps you’ve taken in Geforce RTX 5080, the drivers are not working on Ubuntu 22 - #3 by soporte.microsyscom should work.