GeForce RTX 4060 not working with Ubuntu 18.04 (LTS)


I have a Dell G16 Laptop (13th Gen Intel Core i9) with an NVIDIA® GeForce RTX™ 4060, 8 GB GDDR6. I have Ubuntu 18.04 LTS installed alongside Windows 11 in a dual-boot setup.

The NVIDIA drivers are installed and working perfectly on Windows 11. I am using Ubuntu 18.04 to run some ROS packages that are only supported on this version. My current Ubuntu kernel is 5.19.17, as the default kernel did not support WiFi, volume, and brightness controls.

I installed the NVIDIA drivers using sudo ubuntu-drivers install, and I believe the NVIDIA 545 driver was installed. However, when I run nvidia-smi, I get the following error message:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
It seems the driver is not properly installed.

I have also attached the nvidia-bug-report for reference.
nvidia-bug-report.log (236.1 KB)

I would greatly appreciate your assistance in correctly installing the drivers on my computer.

Thanks in advance.

Hi @thakshiladasun and welcome to the NVIDIA developer forums.

Check out this part of the log:

ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.

Also before that:

-> 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:

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.

Make sure you only install the drivers using one method, and preferably the above mentioned “Additional Drivers” method. Before that, remove all driver traces by purging all NVIDIA driver components. Then make sure you have kernel headers installed and then start the GUI installation process, following instructions exactly. That should fix things.


I haver a similar problema. With Ryzen 5 - 7600.