Error during installation of the proprietary driver.

mail@avronr.in mail at avronr.in
Sun Oct 10 06:30:43 BST 2021


Hey,

I am using  Debian testing (bookworm) and was trying to install the proprietary
nvidia driver. The installation fails when dpkg is trying to build the kernel (I
think). Here's the output of the install command:

====
sudo apt install nvidia-driver
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-driver is already the newest version (470.57.02-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up nvidia-kernel-dkms (470.57.02-2) ...
Removing old nvidia-current-470.57.02 DKMS files...

------------------------------
Deleting module version: 470.57.02
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-current-470.57.02 DKMS files...
Building for 5.14.0-2-amd64
Building initial module for 5.14.0-2-amd64
Error! Bad return status for module build on kernel: 5.14.0-2-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/470.57.02/build/make.log for more information.
dpkg: error processing package nvidia-kernel-dkms (--configure):
 installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-dkms (= 470.57.02-2) | nvidia-kernel-470.57.02; however:
  Package nvidia-kernel-dkms is not configured yet.
  Package nvidia-kernel-470.57.02 is not installed.
  Package nvidia-kernel-dkms which provides nvidia-kernel-470.57.02 is not configured yet.

dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-kernel-dkms
 nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
===

The content of /var/lib/dkms/nvidia-current/470.57.02/build/make.log is as follows: 
http://paste.debian.net/1214892/

===
The error was:
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
===
I tried copying the missing file by running:
sudo cp /usr/src/linux-headers-5.14.0-2-amd64/include/generated/autoconf.h  /usr/src/linux-headers-5.14.0-2-common/include/generated

But that didn't work out either. I did follow the wiki page and install the
linux-headers-amd64 and firmware-misc-nonfree.

Any idea what I could be doing wrong?

Cheers,
         _     
      /    \         Abraham Raji
    /   _   \       Mea navis aëricumbens anguillis abundat.
  /   ___   \     abrahamraji.in
/_/        \_\




More information about the pkg-nvidia-devel mailing list