That one case when DKMS nvidia module is not installed

I was trying to build a new kernel module driver for nvidia but faced this issue without any additional info.

 

Building module:
cleaning build area…
‘make’ -j32 NV_EXCLUDE_BUILD_MODULES=” KERNEL_UNAME=5.4.0-104-generic IGNORE_CC_MISMATCH=” modules…(bad exit status: 2)
ERROR (dkms apport): binary package for nvidia: 510.47.03 not found
Error! Bad return status for module build on kernel: 5.4.0-104-generic (x86_64)
Consult /var/lib/dkms/nvidia/510.47.03/build/make.log for more information.
…done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-104-generic

But then I tried to compile the module driver one more time, but this time I selected “No, do not compile DKMS module” and it throwed something like “gcc version mismatch” but I’d selected to ignore it and the module was sucessfully built.

Then I uninstalled the module using 


sh ./NVidia-blabla-510.run --uninstalll

And installed it as a DKMS module again, but this time forced ignoring GCC version mismatch.


sh ./NVidia-blabla-510.run --no-cc-version-check

And this time it ran without errors!

 

Hope this might help with similar problem.

Loading

This entry was posted in System Administration and tagged , , . Bookmark the permalink. | Short link:  http://p1rat.ru/lezzz/Q5Et0

Leave a Reply