Problem installing NVIDIA driver

hello,

I tried to install nvidia-driver-510 with update manager on ubuntu 20.0.4.4 LTS, with my gpu [GeForce GTX 1050 Mobile]

After reboot, I checked with nvidia-smi but got:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

Thank you in advance for your help

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

thank you, i got this:


Start of NVIDIA bug report log file. Please include this file, along
with a detailed description of your problem, when reporting a graphics
driver bug via the NVIDIA Linux forum (see forums.developer.nvidia.com)
or by sending email to ‘linux-bugs@nvidia.com’.

nvidia-bug-report.sh Version: 31295035

Date: mar. 28 juin 2022 10:58:09 CEST
uname: Linux pierre-l 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Tue Jun 14 11:29:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
command line flags:

It creates a file in your home directory, please attach that.

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

Please disable secure boot in bios.

i have disabled it

may be you want a new version
nvidia-bug-report.log.gz (150.5 KB)

Now you get invalid relocation target, please see this:
https://forums.developer.nvidia.com/t/ubuntu-18-04-quadro-p2000-nvidia-smi-has-failed-because-it-couldnt-communicate-with-the-nvidia-driver/74157/4

In your case, cc should be set to gcc 9.4

yonggeng@pierre-l:~$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yonggeng@pierre-l:~$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yonggeng@pierre-l:~$ cc --version
cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

like this, i am not sure if i have correctly set cc to gcc9.4.0
I removed current driver and cuda then reboot
but it still doesn’t work, there’s always
module: x86/modules: Skipping invalid relocation target,

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

Maybe your kernel headers are broken, please remove and reinstall them, first purge the nvidia driver, then
sudo apt install --reinstall linux-headers-$(uname -r)
then reinstall the nvidia driver.

it works! thank you very much and have a nice day!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.