NVIDIA GeForce GTX 660M Issue with NVIDIA Graphics Driver Installation on Lenovo IdeaPad Y580 running Ubuntu 22.04.3 LTS

Hello everyone,

I am facing a challenge while trying to install NVIDIA graphics drivers on my Lenovo IdeaPad Y580 running Ubuntu 22.04.3 LTS. The issue arises during the configuration of the nvidia-dkms-418-server package. Here’s a detailed breakdown of the problem:

1. Error Description:

Setting up nvidia-dkms-418-server (418.226.00-0ubuntu5~ ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-418.226.00 DKMS files...
Deleting module nvidia-418.226.00 completely from the DKMS tree.
Loading new nvidia-418.226.00 DKMS files...
Building for 6.5.0-14-generic
Building for architecture x86_64
Building initial module for 6.5.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-kernel-source-418-server.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-14-generic (x86_64)
Consult /var/lib/dkms/nvidia/418.226.00/build/make.log for more information.
dpkg: error processing package nvidia-dkms-418-server (--configure):
 installed nvidia-dkms-418-server package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
I: The initramfs will attempt to resume from /dev/sda7
I: (UUID=b89dbba1-62db-409b-ad6e-29603f7166f3)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

2. System Details:

  • OS: Ubuntu 22.04.3 LTS x86_64
  • Laptop Model: Lenovo IdeaPad Y580
  • Kernel: 6.5.0-14-generic
  • GPU:
    • Integrated: Intel 3rd Gen Core processor Graphics Controller
    • Dedicated: NVIDIA GeForce GTX 660M
  • Memory: 3013MiB / 15883MiB

I have observed that the error is related to building the NVIDIA kernel module for the specified kernel version. The log file make.log (76.7 KB) may contain additional information about the failure.

I have attempted to resolve the issue by ensuring that the default compiler (cc) points to /usr/bin/gcc. The system is running with gcc as the default compiler.

I would appreciate any guidance or assistance in resolving this matter. Thank you for your help!

Best regards,

The 418 driver is outdated and won’t compile on the 6.5 HWE kernel. Please uninstall it, the correct driver for your gpu is v470, can be installed from Software&Updates application.

1 Like

Thank you for your help! I followed your advice and installed the 470 driver. I found that it wasn’t available in my default configuration, so I had to add the graphics-drivers/ppa repository to get access to the proper version. Everything is working fine now. Thanks again for your support!