package fwts-efi-runtime-dkms 18.03.00-0ubuntu1 failed to install/upgrade: installed fwts-efi-runtime-dkms package post-installation script subprocess returned error exit status 30

Bug #1769059 reported by Jeffrey Chan
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwts (Ubuntu)
Fix Released
Undecided
Alex Hung

Bug Description

Just installed the new LTS.

Previous setup from 17 failed to setup efi?

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: fwts-efi-runtime-dkms 18.03.00-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Thu May 3 22:15:46 2018
ErrorMessage: installed fwts-efi-runtime-dkms package post-installation script subprocess returned error exit status 30
InstallationDate: Installed on 2015-11-04 (911 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /root/Error: command ['which', 'python'] failed with exit code 1:, Error: [Errno 2] No such file or directory: "/root/Error: command ['which', 'python'] failed with exit code 1:": "/root/Error: command ['which', 'python'] failed with exit code 1:", unpackaged
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.1
SourcePackage: fwts
Title: package fwts-efi-runtime-dkms 18.03.00-0ubuntu1 failed to install/upgrade: installed fwts-efi-runtime-dkms package post-installation script subprocess returned error exit status 30
UpgradeStatus: Upgraded to bionic on 2018-05-04 (0 days ago)

Revision history for this message
Jeffrey Chan (jefchan) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Colin Ian King (colin-king) wrote :

I believe that error refers to a read-only file system, perhaps that's why DKMS failed.

Revision history for this message
Alex Hung (alexhung) wrote :

Ubuntu 18.04 may not need fwts-efi-runtime-dkms as efi_test driver should be included in kernel.

Please run "modinfo efi_test" for more info of this driver

Alex Hung (alexhung)
Changed in fwts (Ubuntu):
assignee: nobody → Ivan Hu (ivan.hu)
Revision history for this message
Jeffrey Chan (jefchan) wrote : Re: [Bug 1769059] Re: package fwts-efi-runtime-dkms 18.03.00-0ubuntu1 failed to install/upgrade: installed fwts-efi-runtime-dkms package post-installation script subprocess returned error exit status 30

Spew from "modinfo efi_test" :

filename:
 /lib/modules/4.15.0-20-generic/kernel/drivers/firmware/efi/test/efi_test.ko
license: GPL
description: EFI Test Driver
author: Ivan Hu <email address hidden>
srcversion: 73122C54055426938BDE7FC
depends:
retpoline: Y
intree: Y
name: efi_test
vermagic: 4.15.0-20-generic SMP mod_unload
signat: PKCS#7
signer:
sig_key:
sig_hashalgo: md4

On 9 May 2018 at 09:08, Alex Hung <email address hidden> wrote:

> Ubuntu 18.04 may not need fwts-efi-runtime-dkms as efi_test driver
> should be included in kernel.
>
> Please run "modinfo efi_test" for more info of this driver
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1769059
>
> Title:
> package fwts-efi-runtime-dkms 18.03.00-0ubuntu1 failed to
> install/upgrade: installed fwts-efi-runtime-dkms package post-
> installation script subprocess returned error exit status 30
>
> Status in fwts package in Ubuntu:
> New
>
> Bug description:
> Just installed the new LTS.
>
> Previous setup from 17 failed to setup efi?
>
> ProblemType: Package
> DistroRelease: Ubuntu 18.04
> Package: fwts-efi-runtime-dkms 18.03.00-0ubuntu1
> ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
> Uname: Linux 4.15.0-20-generic x86_64
> ApportVersion: 2.20.9-0ubuntu7
> Architecture: amd64
> Date: Thu May 3 22:15:46 2018
> ErrorMessage: installed fwts-efi-runtime-dkms package post-installation
> script subprocess returned error exit status 30
> InstallationDate: Installed on 2015-11-04 (911 days ago)
> InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64
> (20150805)
> Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal,
> 3.6.5-3
> PythonDetails: /root/Error: command ['which', 'python'] failed with exit
> code 1:, Error: [Errno 2] No such file or directory: "/root/Error: command
> ['which', 'python'] failed with exit code 1:": "/root/Error: command
> ['which', 'python'] failed with exit code 1:", unpackaged
> RelatedPackageVersions:
> dpkg 1.19.0.5ubuntu2
> apt 1.6.1
> SourcePackage: fwts
> Title: package fwts-efi-runtime-dkms 18.03.00-0ubuntu1 failed to
> install/upgrade: installed fwts-efi-runtime-dkms package post-installation
> script subprocess returned error exit status 30
> UpgradeStatus: Upgraded to bionic on 2018-05-04 (0 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1769059/+subscriptions
>

Revision history for this message
Alex Hung (alexhung) wrote :

@jefchan,

I think you should be able to run efi tests, ex. sudo fwts uefirtvariable without the dkms since efi_test.

We will also investigate how to solve this dkms on signed kernel..

Revision history for this message
Alex Hung (alexhung) wrote :

We may be able to use BUILD_EXCLUSIVE_KERNEL and BUILD_EXCLUSIVE_ARCH for the dkms, ex

BUILD_EXCLUSIVE_KERNEL="4.1*" (since efi_test is included in 4.10
BUILD_EXCLUSIVE_ARCH="amd64"

See details @ http://manpages.ubuntu.com/manpages/bionic/man8/dkms.8.html

Revision history for this message
Alex Hung (alexhung) wrote :

Currently all Ubuntu kernels that are not EOL include efi_test except 4.4. As a result, we can build & install the dkms only for kernel 4.4 such as below:

+BUILD_EXCLUSIVE_KERNEL="^4.4"

A test built (versioned 18.05.01) is available on https://launchpad.net/~firmware-testing-team/+archive/ubuntu/scratch. I tested on 4.13 (secure boot disabled) and 4.15 (secure boot enabled) - both show the module is skipped.

Revision history for this message
Alex Hung (alexhung) wrote :

Fixed committed to repo

Changed in fwts (Ubuntu):
status: New → Fix Committed
Alex Hung (alexhung)
Changed in fwts (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Alex Hung (alexhung) wrote :

The fix is removed from 18.06.2 because it fails ADT test. Please see more information @ LP/l1777855. This needs another proper fix.

Changed in fwts (Ubuntu):
status: Fix Released → Triaged
assignee: Ivan Hu (ivan.hu) → Alex Hung (alexhung)
Revision history for this message
Alex Hung (alexhung) wrote :

Now DKMS are ready when UEFI Secure Boot is enabled, and it will prompt MOK key enrollment (see screenshot) when DKSM packages are installed.

The process requires a reboot. When system is rebooted, MOK will also ask for passports and confirmation of key enrollment, and DKMS package will work correctly when Ubuntu boots.

Changed in fwts (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.