Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: Drivers issue NVIDIA GPU GeForce 1060 6GB with Ubuntu 20.04
Page: 1/2
  Go to:
Veynacal 9 Sep 2022
Hello guys,
has anyone got troubles installing the Drivers for NVIDIA GPU GeForce 1060 6GB with Ubuntu 20.04 ? I can neither install those with the official Ubuntu Driver GUI or by command line.
Thanks! Alex
tuxintuxedo 9 Sep 2022
Any error messages? Is your system up-to-date otherwise? Do you have Secureboot enabled?
Veynacal 10 Sep 2022
Quoting: tuxintuxedoAny error messages? Is your system up-to-date otherwise? Do you have Secureboot enabled?
Hey tuxintuxedo ! Secure boot is disabled yes. Here the process I use :

UNSINSTALLING DRIVERS :

Then before installing I try to start from a clean status so I search for the nvidia related installed stuff :

dpkg -l | grep -i nvidia
and then I remove them :

sudo apt-get remove --purge '^nvidia-.*'

as Ubuntu setup might have been removed I reinstall it :

sudo apt-get install ubuntu-desktop

Purging might blacking the standard display driver “nouveau” so I add it again :

echo 'nouveau' | sudo tee -a /etc/modules

To make sure the nvidia driver is really uninstalled I run :

sudo nvidia-uninstall

This runs a GUI and go to the end saying that it has been uninstalled.

INSTALLING DRIVERS :

Option 1 :

In “Software & Updates” I click on “Additional Drivers” and try to select several drivers proposed and then click on “Apply”:
- the first one called “*470” does not work and show a Server issue
- the 2nd one called “*510-server” at least does not show an error when I click “Apply” but I am wondering what “server” means in the name.. my machine is basically not a server
tuxintuxedo 10 Sep 2022
Did you try adding the updated gpu drivers PPA?
[Graphics PPA](https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa)
Veynacal 11 Sep 2022
Quoting: tuxintuxedoDid you try adding the updated gpu drivers PPA?
[Graphics PPA](https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa)
Hello Tux, not sure what you mean with the gpu drivers PPA ?

Here what I tried but still get issues:

---

- anyways, I reboot my machine
- but then when I run:
nvidia-smi
to see which driver is installed I get the following error:
“NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

Option 2 :

I download the driver for my Graphic card (GeForce RTX 3060) from the NVIDIA website and run the installation script:

sudo sh ./NVIDIA-Linux-x86_64-460.56.run

I get the below error :

ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 460.56 -k
5.15.0-46-generic`:
Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' -j12 NV_EXCLUDE_BUILD_MODULES=''
KERNEL_UNAME=5.15.0-46-generic IGNORE_CC_MISMATCH='' modules.....(bad
exit status: 2)
ERROR (dkms apport): binary package for nvidia: 460.56 not found
Error! Bad return status for module build on kernel:
5.15.0-46-generic (x86_64)
Consult /var/lib/dkms/nvidia/460.56/build/make.log for more
information.

Then I download the latest driver version and try to install it :

sudo sh ./NVIDIA-Linux-x86_64-515.57.run

then I get the below error:

ERROR: Unable to load the 'nvidia-drm' kernel module.

Option 3 : AUTOINSTALL

I run:
sudo ubuntu-drivers autoinstall

but get the below error:

E: Failed to fetch http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/./nvidia-settings_510.47.03-0ubuntu1_amd64.deb File has unexpected size (893670 != 893668). Mirror sync in progress? [IP: 152.199.20.126 80]
Hashes of expected file:
- SHA512:c54667544235f3342527d1192c8899343cfae1b942394078cda60881bcd17b5927020b85279bd3c68ad4939e1738e08c6c3346d3f7be98ade1d72007df040e43
- SHA256:ff5e5d25fa3c4e1b40768352b35bd392cc68bd95fedfb6961465be8a3ef46f6a
- SHA1:082254299c70f2224ddffaa3cca4506e4e8b2f07 [weak]
- MD5Sum:eba37f44334d0788f30b135f06ca7fea [weak]
- Filesize:893668 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

- so I run :
sudo apt-get update

- I get the below error:

W: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.10 ./ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B

- so looking at the web :
https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/

- I see that the signatures issue can be solved somehow :
sudo apt-key del 7fa2af80

- I install the new cuda-keyring package :

sudo wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb

sudo dpkg -i cuda-keyring_1.0-1_all.deb
- Then I run again :

sudo ubuntu-drivers autoinstall
- Installation seems to run until the end, even entry in boot menu is added :

Adding boot menu entry for UEFI Firmware Settings
done
Trying to select the on-demand PRIME profile
Info: selecting the on-demand profile
Writing /lib/modprobe.d/nvidia-runtimepm.conf
Updating the initramfs. Please wait for the operation to complete:
Done

- but running :
nvidia-smi

- is still showing an error:
“NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

- probably because the computer has to be rebooted so I run:
reboot

- but when I run :
nvidia-smi

- I still get :

“NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

- but now at least when I start the “Other drivers” in Ubuntu I see the latest NVIDIA driver selected :

- now looking at the web, it seems that the newest versions of the driver does not work:
https://gist.github.com/espoirMur/65cec3d67e0a96e270860c9c276ab9fa

- so I go again in “Other drivers” and select the 470 version and reboot

- but still :

“NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

- nevertheless when checking this website it seems that the driver is installed..? :

https://linuxconfig.org/graphics-driver-check-ubuntu-20-04-focal-fossa

- because when running :
sudo lshw -c video

- it shows :
*-display
description: VGA compatible controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller cap_list fb
configuration: depth=32 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
resources: iomemory:420-41f iomemory:410-40f memory:4200000000-43ffffffff memory:4100000000-4101ffffff ioport:5000(size=128) memory:b1280000-b12fffff

- but here also an Intel Card is shown as long as NVIDIA so which one is used ?

- I found this website :
https://askubuntu.com/questions/1297454/working-nvidia-drivers-for-ubuntu-20-04

- still the same issue’

- but now I had a look in the UEFI (push DEL at boot to get the MSI UEFI menu) and saw that secure boot was actually enabled!

- so I disable it

- I install again version 515 :
“sudo sh ./NVIDIA-Linux-x86_64-515.57.run”
but still get:
“ERROR: Unable to load the 'nvidia-drm' kernel module.”
tuxintuxedo 11 Sep 2022
Okay.
Something was messed up on your system. You have added a repo for Ubuntu 18.04 at some point in time. It is possible, that it affected the packages.
Do you have a backup or would it be a hassle to reinstall the system? Because it would be wise to start things from the beginning, with logical and traceable steps.
Just to add. If things are working normally, you shouldn't try to install the driver downloaded directly from Nvidia. Only use the system menu.

Last edited by tuxintuxedo on 11 Sep 2022 at 9:18 am UTC
Veynacal 11 Sep 2022
Quoting: tuxintuxedoOkay.
Something was messed up on your system. You have added a repo for Ubuntu 18.04 at some point in time. It is possible, that it affected the packages.
Do you have a backup or would it be a hassle to reinstall the system? Because it would be wise to start things from the beginning, with logical and traceable steps.
Just to add. If things are working normally, you shouldn't try to install the driver downloaded directly from Nvidia. Only use the system menu.
Hey Tux, thanks a lot!

Yes this is exactly what I thought, I saw those Ubuntu 18.04 related packages and was wondering..
I will reinstall Ubuntu from scratch I guess with a live USB key.

Do you recommend ubuntu 20.04 or 22.04 for gaming ? Thanks again! Alex
scaine 11 Sep 2022
User Avatar
Quoting: VeynacalDo you recommend ubuntu 20.04 or 22.04 for gaming ? Thanks again! Alex
I'd recommend either Mint or Pop_OS, to be honest. But if you're passionate about sticking to the vanilla Ubuntu install, then the latest LTS is your go-to: the 22.04 install, definitely. I can't think of any reason to go with the one that's two years older.

After a massive commitment to Ubuntu of nearly 15 years, when they ditched Unity in 2017, the writing was on the wall. I used 18.04 for a while, but the gnome desktop was a painful transition, and the graphics drivers were still way behind what other distros were offering. So I jumped to Mint for 2019 and 2020, then jumped again to Pop_OS in June 2020 and used it for two years. Finally found myself on EndeavourOS for the last 6 months, but I'll probably head back to Pop_OS or Siduction some time in the near future. Widen those horizons and all that! :grin:

Good luck with the re-install, whatever you decide!
Veynacal 11 Sep 2022
Quoting: scaine
Quoting: VeynacalDo you recommend ubuntu 20.04 or 22.04 for gaming ? Thanks again! Alex
I'd recommend either Mint or Pop_OS, to be honest. But if you're passionate about sticking to the vanilla Ubuntu install, then the latest LTS is your go-to: the 22.04 install, definitely. I can't think of any reason to go with the one that's two years older.

After a massive commitment to Ubuntu of nearly 15 years, when they ditched Unity in 2017, the writing was on the wall. I used 18.04 for a while, but the gnome desktop was a painful transition, and the graphics drivers were still way behind what other distros were offering. So I jumped to Mint for 2019 and 2020, then jumped again to Pop_OS in June 2020 and used it for two years. Finally found myself on EndeavourOS for the last 6 months, but I'll probably head back to Pop_OS or Siduction some time in the near future. Widen those horizons and all that! :grin:

Good luck with the re-install, whatever you decide!
Thanks a lot ! Well the reason using Ubuntu was just because ROS a robotic middleware I am using and at the time the best compatible OS was Ubuntu.
scaine 11 Sep 2022
User Avatar
Quoting: VeynacalThanks a lot ! Well the reason using Ubuntu was just because ROS a robotic middleware I am using and at the time the best compatible OS was Ubuntu.
Makes sense! Both Mint and Pop_OS use Ubuntu LTS as their base, however, so unless your software relies specifically on Snaps, then you definitely have options. They both use the normal Ubuntu PPAs, and repositories, so the versions will all be the same, for example.

The main difference is that Pop_OS has their own repo for graphics drivers, I believe, which updates much more frequently, often within hours of a new driver release. So that might be a consideration.
BlackBloodRum 11 Sep 2022
I'd just like to add, if you're considering switching distro after you've fixed your current installation, give them spin in a virtual machine first. It'll give you a good feel of the OS and also the available software packages, while keeping your current working setup, well, working. :grin:

I pretty much always do this if I'm trying a distro for the first time. It's useful to find out if software A works with OS B :tongue:

In any case, don't limit yourself to only one distro every time, try different ones as often they all have their own pros and cons, and it's always good to have options.

Libvirt and virt-manager are pretty much universally available on every distro, so it may be your easiest VM manager to test them with.

In any case, I hope you get your issue resolved and continue to enjoy FOSS! :grin:

Last edited by BlackBloodRum on 11 Sep 2022 at 12:46 pm UTC
Veynacal 11 Sep 2022
Thank you guys ! I think I ll give a try to Pop_OS either first with a virtual machine or native.
I could see in the doc that they also support Machine learning frameworks and ROS so sounds good for my usecases :=)
Veynacal 12 Sep 2022
Quoting: scaine
Quoting: VeynacalThanks a lot ! Well the reason using Ubuntu was just because ROS a robotic middleware I am using and at the time the best compatible OS was Ubuntu.
Makes sense! Both Mint and Pop_OS use Ubuntu LTS as their base, however, so unless your software relies specifically on Snaps, then you definitely have options. They both use the normal Ubuntu PPAs, and repositories, so the versions will all be the same, for example.

The main difference is that Pop_OS has their own repo for graphics drivers, I believe, which updates much more frequently, often within hours of a new driver release. So that might be a consideration.
I installed Pop_OS and it worked like a charm until I tried to shut down the laptop, here I get this error continuously:

"NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
[13749.319670] NVRM: BARO is OM @ 0x0 (PCI:0000:01:00.0)"
scaine 12 Sep 2022
User Avatar
The Nvidia forums seem to suggest that this is a common motherboard problem, particularly on Dell computers, and suggest a BIOS update. What hardware are you running on?

(EDIT: And just to be certain, you're definitely using the Pop_OS Nvidia install, right? This isn't some attempt to install Nvidia drivers from their website, which is unbelievably difficult and never, ever recommended unless you're a Linux goddam guru!?)

Last edited by scaine on 12 Sep 2022 at 12:44 pm UTC
Veynacal 12 Sep 2022
Quoting: scaineThe Nvidia forums seem to suggest that this is a common motherboard problem, particularly on Dell computers, and suggest a BIOS update. What hardware are you running on?

(EDIT: And just to be certain, you're definitely using the Pop_OS Nvidia install, right? This isn't some attempt to install Nvidia drivers from their website, which is unbelievably difficult and never, ever recommended unless you're a Linux goddam guru!?)
Hi Scaine!
Yes I did use the nvidia version of the 22.04 Pop OS, and by default the nvidia-driver-515 (the last one) was installed :)
Well as you said as I am not (yet?) a linux guru I failed to install this same driver manually.
Related to your comment on the BIOS/UEFI update yes it would make sense, my laptop is a MSI gf65 U with a nvidia rtx 3060.

Do you have any link on the procedure for the UEFI update ?

I feel it a bit odd that the UEFI is not prepared by MSI for the right Graphic card since it is a laptop with original HW but who knows ! :)
scaine 12 Sep 2022
User Avatar
I'm afraid I'm also out of my depth on this, to be honest. You could check the MSI website to see if there is a firmware/BIOS update that might resolve this issue. I'm not sure it's related to UEFI exactly - my limited understaning of UEFI is that it's what controls the boot process, so I can't see how that would impact how your motherboard interacts with your graphics card.

I'm at a loss, but would definitely look at a motherboard update if possible. These used to be fairly complex, but these days, you tend to find that you simply download a specific file to a USB key, then access the firmware update utility on your motherboard and point it at the USB key. There's still the risk of bricking the motherboard, of course, but there are far better checks against this these days. All I can do is wish you luck if you decide to go down that road!
Veynacal 12 Sep 2022
Quoting: scaineI'm afraid I'm also out of my depth on this, to be honest. You could check the MSI website to see if there is a firmware/BIOS update that might resolve this issue. I'm not sure it's related to UEFI exactly - my limited understaning of UEFI is that it's what controls the boot process, so I can't see how that would impact how your motherboard interacts with your graphics card.

I'm at a loss, but would definitely look at a motherboard update if possible. These used to be fairly complex, but these days, you tend to find that you simply download a specific file to a USB key, then access the firmware update utility on your motherboard and point it at the USB key. There's still the risk of bricking the motherboard, of course, but there are far better checks against this these days. All I can do is wish you luck if you decide to go down that road!
thanks a lot Scaine ! will definitively give it a try with the FW update !
Veynacal 16 Sep 2022
Quoting: scaine
Quoting: VeynacalThanks a lot ! Well the reason using Ubuntu was just because ROS a robotic middleware I am using and at the time the best compatible OS was Ubuntu.
Makes sense! Both Mint and Pop_OS use Ubuntu LTS as their base, however, so unless your software relies specifically on Snaps, then you definitely have options. They both use the normal Ubuntu PPAs, and repositories, so the versions will all be the same, for example.

The main difference is that Pop_OS has their own repo for graphics drivers, I believe, which updates much more frequently, often within hours of a new driver release. So that might be a consideration.
Hi guys!

Here some feedback about my experience on Pop OS:
- for ROS2 (robotic middleware) it works smoothly !
- for games (tried tomb raider on GOG, flight sim, star wars squadron on Steam w/ compatibility mode) I am disappointed, it is very slow and there are even polygons rendering issues

do you have windows games compatibility layers versions to recommand (eg proton, wine etc) ?
damarrin 16 Sep 2022
Which machine are you talking about? The one with the 1060 or the laptop with the 3060?
Veynacal 16 Sep 2022
Quoting: damarrinWhich machine are you talking about? The one with the 1060 or the laptop with the 3060?
Sorry! The laptop with the RTX3060 :)
damarrin 16 Sep 2022
Does the laptop come with integrated gfx? Maybe that's what's running.

Is the nvidia driver loaded and running?
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register