I’ve been having serious issues installing NVIDIA drivers on Ubuntu on my Dell G15 with RTX3060 & 12th gen Intel CPU. So give to you the full picture:
it was shipped with Windows 11, I installed Ubuntu 20.04 (not in dual boot)
I had big troubles in the beginning, had to try several kernel versions before being able to use it
it’s not my first time setting up a Ubuntu laptop with NVIDIA hardware, and usually, I go for lightdm. But this time, I wasn’t able to do so: booting with lightdm gets me to a black screen where I can move my mouse but cant login (possible via tty though). So I had to use gdm3
whether I’m in tty, or not, I haven’t been able to install nvidia drivers. My actual goal is to install CUDA & cuDNN, so I usually install the driver at the same time as CUDA to make sure both are compatible. But after numerous attempts, I failed. Without tty, I was getting warnings that an X server was running and my usual systemctl command didn’t change anything. So I had to go to tty, unload some modules that were strangely using “nvidia” and rerun the installation. The installation keeps failing, I’ve attached the /var/log/nvidia-installer.log
(nvidia-installer.log (10.6 MB))
So my setup currently is:
Ubuntu 20.04
kernel: 5.18.8-051808-generic
using gdm3
Secure boot disabled
So after a lot of failed attempts, I checked this post but this is for an AMD CPU. Do you have any idea how I could get around this?
I have to admit that usually, even when it’s hard and it takes a few weeks to identify where the problem comes from, I manage to finish the setup. But here, I’m running a bit out of ideas, and I bought the laptop mostly for the GPU & CPU while I cannot access the GPU here. Any help would be greatly appreciated!
In case that could be useful, I’ve attached also the nvidia-bug-report.sh output file nvidia-bug-report.log (10.8 MB)
You’re missing the firmware for the intel gpu, furthermore the nvidia driver doesn’t load. Rather use the kernel from the liquorix ppa so you get updates, and install a newer firmware package manually https://packages.ubuntu.com/de/jammy/linux-firmware
(Can be used on 20.04 without issue)
About the nvidia gpu: please run
sudo modprobe nvidia
and post any errors given.
Could you elaborate on how I can add this as a ppa? I usually use:
sudo add-apt-repository ppa:USER/REPO
Besides, it looks like the repo you suggested is for Ubuntu 22.04 right? If so, I’m on 20.04 LTS, could you point which one I should use please? (perhaps https://packages.ubuntu.com/en/focal/linux-firmware ?) Sorry I’m new to tweaking ppa with linux repo!
About the sudo modprobe nvidia, it keeps running but nothing prints after dozens of minutes :/
The firmware is not a repo, it’s just a .deb firmware package. Just download it and install it manually. (dpkg -i <filename>)Firmware files are just “files” so the package is independent of architecture and ubuntu version.
Mmmh, strange, I can only see a .dsc file and a tar archive. I found online instructions to install those though!
However, this is installing 1.187 firmware, while I already had 1.187.31. Anyway, what should I do know?
Something went wrong installing the firmware, now no firmware can be found. Please post the output of
ls /lib/firmware/iwlwifi-so-a0-hr-b0*
and run
sudo update-initramfs -u
Some updates: after rebooting and having to go into tty disabling the graphical manager, the ibt=off seems to have helped me install the NVIDIA driver and CUDA!
I had to reconfigure and reinstall gdm3 afterwards and I’m not sure whether this kernel config is a long-term solution but I can finally access my GPU :)
If someone knows how to recover the possibility to use lightdm though, I’m all ears!
I have a similar problem with the same laptop of @fgfm03 . I tried to install ubuntu 20.04 in a dual boot system with Windows 11. I was able to install Ubuntu switching uefi mode to ahci instead of raid and disabling secure boot. I installed Ubuntu 20.04 with kernel 5.13 as default, but i could not boot and i solved adding nomodeset to the grub configuration but my wifi and bluetooth modules did not work. From there I installed kernel 5.18.8-051808-generic and that solved the issues with bluetooth and wifi boards, when i tried to install nvidia driver ( I tried from 470 to 515 using both ubuntu software&update tools and apt ) everything seems to go fine but when I run nvidia-smi it gives me this 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.”
I tried to add “ibt=off” on grub configuration but it did not work both doing it before the driver installation and after.