Bug#996468: closed by Andreas Beckmann <anbe at debian.org> (Re: Bug#996468: nvidia-kernel-dkms won't install for kernel 5.14.0-1 and 5.14.0-2)

mando at april.org mando at april.org
Wed Nov 10 13:13:12 GMT 2021


Dear maintainers

I finally found how to fix the problem to address the problem:

ERROR: Kernel configuration is invalid.";
\include/generated/autoconf.h or include/config/auto.conf are missing."$
  Run 'make oldconfig && make prepare' on kernel src to fix it.";

... thanks to this link:

https://askubuntu.com/questions/890712/kernel-configuration-is-invalid-error-while-trying-to-install-paragon-ufsd-profe

By reinstalling the kernel headers, the nvidia driver is successfully 
installed:

(mando at aldur) (~) $ sudo apt reinstall linux-headers-$(uname -r)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 0 
non mis à jour.
2 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/866 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
(Lecture de la base de données... 252929 fichiers et répertoires déjà 
installés.)
Préparation du dépaquetage de 
.../linux-headers-5.14.0-2-amd64_5.14.9-2_amd64.deb ...
Dépaquetage de linux-headers-5.14.0-2-amd64 (5.14.9-2) sur (5.14.9-2) ...
Paramétrage de linux-headers-5.14.0-2-amd64 (5.14.9-2) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.14.0-2-amd64:
Kernel preparation unnecessary for this kernel. Skipping...
applying patch kernel-5.7.0-set-memory-array.patch...patching file 
conftest.sh

applying patch linux-2.6.34-dev_pm_info-runtime_auto.patch...patching 
file conftest.sh

applying patch bashisms.patch...patching file conftest.sh

applying patch use-kbuild-compiler.patch...patching file Makefile

applying patch use-kbuild-flags.patch...patching file Kbuild
patching file nvidia/nvidia.Kbuild
patching file Makefile
patching file nvidia-modeset/nvidia-modeset.Kbuild

applying patch use-kbuild-gcc-plugins.patch...patching file Kbuild

applying patch conftest-verbose.patch...patching file Kbuild

applying patch cc_version_check-gcc5.patch...patching file conftest.sh

applying patch nvidia-use-ARCH.o_binary.patch...patching file 
nvidia/nvidia.Kbuild

applying patch nvidia-modeset-use-ARCH.o_binary.patch...patching file 
nvidia-modeset/nvidia-modeset.Kbuild

applying patch conftest-prefer-arch-headers.patch...patching file 
conftest.sh


Building module:
cleaning build area...
unset ARCH; env NV_VERBOSE=1 make -j8 modules 
KERNEL_UNAME=5.14.0-2-amd64......................
cleaning build area...

nvidia-current.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-peermem.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

depmod...
.
Paramétrage de nvidia-kernel-dkms (470.82.00-1) ...
Removing old nvidia-current-470.82.00 DKMS files...
Module nvidia-current-470.82.00 for kernel 5.14.0-2-amd64 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.14.0-2-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.14.0-2-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.14.0-2-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-peermem.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.14.0-2-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-uvm.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.14.0-2-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.

depmod...
Deleting module nvidia-current-470.82.00 completely from the DKMS tree.
Loading new nvidia-current-470.82.00 DKMS files...
Building for 5.14.0-2-amd64
Building initial module for 5.14.0-2-amd64
Done.

nvidia-current.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-peermem.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
  - Original module
    - No original module exists within this kernel
  - Installation
    - Installing to /lib/modules/5.14.0-2-amd64/updates/dkms/

depmod...
Paramétrage de nvidia-driver (470.82.00-1) ...

Best regards



More information about the pkg-nvidia-devel mailing list