issue seems to persist in bionic linux-generic 4.15.0.19.20 amd64. $ sudo apt install --reinstall nvidia-dkms-390 Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 27.2 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 nvidia-dkms-390 amd64 390.48-0ubuntu3+gpu18.04.2 [27.2 kB] Fetched 27.2 kB in 1s (53.7 kB/s) (Reading database ... 447814 files and directories currently installed.) Preparing to unpack .../nvidia-dkms-390_390.48-0ubuntu3+gpu18.04.2_amd64.deb ... Removing all DKMS Modules Done. Unpacking nvidia-dkms-390 (390.48-0ubuntu3+gpu18.04.2) over (390.48-0ubuntu3+gpu18.04.2) ... Setting up nvidia-dkms-390 (390.48-0ubuntu3+gpu18.04.2) ... 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/dell_latitude DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here Loading new nvidia-390.48 DKMS files... Building for 4.15.0-19-generic Building for architecture x86_64 Building initial module for 4.15.0-19-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-390.0.crash' Error! Bad return status for module build on kernel: 4.15.0-19-generic (x86_64) Consult /var/lib/dkms/nvidia/390.48/build/make.log for more information. Processing triggers for initramfs-tools (0.130ubuntu3) ... update-initramfs: Generating /boot/initrd.img-4.15.0-19-generic
$ cat /var/lib/dkms/nvidia/390.48/build/make.log DKMS make.log for nvidia-390.48 for kernel 4.15.0-19-generic (x86_64) Tue Apr 24 10:01:23 PDT 2018 make[1]: Entering directory '/usr/src/linux-headers-4.15.0-19-generic' Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ 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 ; \ ... ** Attachment added: "make.log" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1760876/+attachment/5126619/+files/make.log -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-azure in Ubuntu. https://bugs.launchpad.net/bugs/1760876 Title: DKMS driver builds fail with: Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel Status in linux package in Ubuntu: Fix Released Status in linux-azure package in Ubuntu: Fix Released Status in linux-azure-edge package in Ubuntu: Confirmed Status in linux source package in Trusty: Fix Released Status in linux source package in Xenial: Fix Released Status in linux-azure source package in Xenial: Fix Released Status in linux source package in Artful: Fix Released Status in linux source package in Bionic: Fix Released Status in linux-azure source package in Bionic: Fix Released Bug description: Was installing the kernel 4.15.0-14-generic when that crash happened. Now libelf-dev is requested and need to be added as a dependency. ProblemType: Package DistroRelease: Ubuntu 18.04 Package: fwts-efi-runtime-dkms 18.03.00-0ubuntu1 Uname: Linux 4.16.0-041600-generic x86_64 NonfreeKernelModules: r8168 ApportVersion: 2.20.9-0ubuntu2 Architecture: amd64 DKMSKernelVersion: 4.15.0-14-generic Date: Tue Apr 3 15:39:06 2018 PackageVersion: 18.03.00-0ubuntu1 Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-2 PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4 RelatedPackageVersions: dpkg 1.19.0.5ubuntu1 apt 1.6~beta1 SourcePackage: fwts Title: fwts-efi-runtime-dkms 18.03.00-0ubuntu1: fwts-efi-runtime-dkms kernel module failed to build UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1760876/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp