Could not delete variable: Interrupted system call (package shim-signed 1.34.9+13-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1)

Bug #1767276 reported by Aaditya Deshpande
138
This bug affects 24 people
Affects Status Importance Assigned to Milestone
shim-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Users experiencing this bug are most likely affected by <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147> and have their firmware in an incorrect state which prevents bootloader updates. Please see that bug for information on how to recover your firmware state.

[Original Description]
The apt-get update option does not fix this.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: shim-signed 1.34.9+13-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: wl
.proc.sys.kernel.moksbstate_disabled: Error: [Errno 2] No such file or directory: '/proc/sys/kernel/moksbstate_disabled'
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Thu Apr 26 19:06:57 2018
EFITables:
 Apr 27 11:18:03 spthree kernel: efi: EFI v2.40 by INSYDE Corp.
 Apr 27 11:18:03 spthree kernel: efi: SMBIOS=0x9c669000 ESRT=0x9c771418 ACPI 2.0=0x9cffe014
 Apr 27 11:18:03 spthree kernel: secureboot: Secure boot could not be determined (mode 0)
 Apr 27 11:18:03 spthree kernel: esrt: Reserving ESRT space from 0x000000009c771418 to 0x000000009c771450.
ErrorMessage: installed shim-signed package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-12-16 (131 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
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
SecureBoot: 6 0 0 0 0
SourcePackage: shim-signed
Title: package shim-signed 1.34.9+13-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-04-26 (0 days ago)

Revision history for this message
Aaditya Deshpande (spthree) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Steve Langasek (vorlon) wrote :

The error in your log is:

Setting up shim-signed (1.34.9+13-0ubuntu2) ...
Installing for x86_64-efi platform.
Could not delete variable: Interrupted system call
grub-install: error: efibootmgr failed to register the boot entry: Block device required.
dpkg: error processing package shim-signed (--configure):
 installed shim-signed package post-installation script subprocess returned error exit status 1

This appears to indicate there is a problem trying to update the bootloader settings in your nvram. Is it possible you were affected by https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147 ? Do you know of any other reason that your firmware may be read-only?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in shim-signed (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
summary: - package shim-signed 1.34.9+13-0ubuntu2 failed to install/upgrade:
- installed shim-signed package post-installation script subprocess
- returned error exit status 1
+ Could not delete variable: Interrupted system call (package shim-signed
+ 1.34.9+13-0ubuntu2 failed to install/upgrade: installed shim-signed
+ package post-installation script subprocess returned error exit status
+ 1)
Steve Langasek (vorlon)
Changed in shim-signed (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Aaditya Deshpande (spthree) wrote :

Go to the hyperlink which Steve has mentioned and install the kernel. Then boot choosing the newly installed kernel option and go to recovery mode and upgrade your grub. Again reboot but choose the 4.15 kernel. And update. the shim package is installed.

I dont know the technical details as to what was the problem but my 18.04 ubuntu is working fine now.

The apt-get upgrade option does not mention the error code.

Revision history for this message
Zac Slade (krakrjak) wrote :

I was in fact affected by this bug, which is definitely a duplicate of https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147 as the fix worked great for me. I installed the first kernel, booted into it, had dpkg try again and everything worked. Booting back into the regular kernel was a snap and I purged the temporary kernel and fixed up the /vmlinuz and /initrd.img symlinks and rebooted cleanly.

The bug does mention that if you have trouble there is a second kernel to try. I had no issues using the first linked kernel http://people.canonical.com/~ypwong/lp1734147/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+20170103+1_amd64.deb

Changed in shim-signed (Ubuntu):
status: Incomplete → Confirmed
Steve Langasek (vorlon)
description: updated
Revision history for this message
Venkatesh R (vrc001) wrote :

found a solution at https://askubuntu.com/a/1032156 and it works...

Revision history for this message
Steve Langasek (vorlon) wrote :

I know of no reason that moving around the Ubuntu directory on your ESP would solve an efibootmgr failure. If the cause of this wrote for you is that your firmware has been marked read-only by the previous kernel bug in Ubuntu 17.10, this will definitely not correct that problem.

Revision history for this message
basse (basse) wrote :

I am also affected by this, and the solution posted by Venkatesh R works for me.

for me this started happening after last upgrade to 18.04

.b

Revision history for this message
mario (marava1) wrote :

I have the same issue, Venkatesh's solution works for me but every time i do an upgrade it return.

I upgraded to 18.04 from 17.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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