There are two parts to this bug. - in some cases, at the time shim-signed's postinst runs, there may be linux-image packages installed for which one or more dkms modules are not currently built. There are a number of legitimate reasons why this may be the case, including unpack ordering during an upgrade. shim-signed needs to gracefully handle the possibility that 'dkms uninstall' fails because the module is not installed. - the refactoring of the kernel packaging that landed in 4.15.0-19-generic has a typo that prevents it from triggering dkms builds on installation. The correct directory name is /etc/kernel/header_postinst.d/; /var/lib/dpkg/info/linux-headers-4.15.0-19-generic.postinst references /etc/kernel/headers_postinst.d which does not exist.
** Changed in: linux (Ubuntu) Importance: Undecided => Critical ** Changed in: linux (Ubuntu) Status: Confirmed => Triaged ** Changed in: linux (Ubuntu) Milestone: None => ubuntu-18.04 ** Changed in: shim-signed (Ubuntu) Status: Confirmed => Triaged ** Changed in: shim-signed (Ubuntu) Importance: Undecided => Critical ** Changed in: shim-signed (Ubuntu) Milestone: None => ubuntu-18.04 ** Also affects: linux (Ubuntu Bionic) Importance: Critical Status: Triaged ** Also affects: shim-signed (Ubuntu Bionic) Importance: Critical Status: Triaged -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1766391 Title: package shim-signed (not installed) failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 5 Status in linux package in Ubuntu: Triaged Status in shim-signed package in Ubuntu: Triaged Status in linux source package in Bionic: Triaged Status in shim-signed source package in Bionic: Triaged Bug description: Complains that nvidia-390.48 is not installed but I have a version of it already installed (nvidia-driver-390): sudo apt install shim-signed Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: shim-signed 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/317 kB of archives. After this operation, 1,247 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously unselected package shim-signed. (Reading database ... 358912 files and directories currently installed.) Preparing to unpack .../shim-signed_1.34.6+13-0ubuntu2_amd64.deb ... Unpacking shim-signed (1.34.6+13-0ubuntu2) ... Setting up shim-signed (1.34.6+13-0ubuntu2) ... Installing for x86_64-efi platform. Installation finished. No error reported. Generating a new Secure Boot signing key: Generating a 2048 bit RSA private key .......................................+++ ...........................................+++ writing new private key to '/var/lib/shim-signed/mok/MOK.priv' ----- Error! The module nvidia 390.48 is not currently installed. This module is not currently ACTIVE for kernel 4.15.0-18-generic (x86_64). dpkg: error processing package shim-signed (--configure): installed shim-signed package post-installation script subprocess returned error exit status 5 Errors were encountered while processing: shim-signed E: Sub-process /usr/bin/dpkg returned an error code (1) ProblemType: Package DistroRelease: Ubuntu 18.04 Package: shim-signed (not installed) ProcVersionSignature: Ubuntu 4.15.0-19.20-generic 4.15.17 Uname: Linux 4.15.0-19-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.9-0ubuntu6 Architecture: amd64 Date: Mon Apr 23 20:37:00 2018 ErrorMessage: installed shim-signed package post-installation script subprocess returned error exit status 5 InstallationDate: Installed on 2018-03-31 (23 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180331) Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3 PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu2 apt 1.6.1 SourcePackage: shim-signed Title: package shim-signed (not installed) failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 5 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1766391/+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