[Bug 1779560] Re: package shim-signed 1.34.9.1+13-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1

Tassos tassos.chen at gmail.com
Tue Jul 3 15:10:04 UTC 2018


Maybe yes. The following is the whole story.
After fresh installing ubuntu 18.04 to a partition,an error showed up:

"The 'grub-efi-amd64-signed' package failed to install into /target/.
Without the GRUB boot loader, the installed system will not boot". After
pressing 'ok' the following opened. "Installer crashed" "We,re sorry the
installer crashed. After you close this window, we'll allow you to file
a bug report using the integrated bug reporting tool. This will gather
information about your system and your installation process. The details
will be sent to our bug tracker and a developer will attend to the
problem as soon as possible"

So I googled it and found a solution:
 
cd /tmp/
sudo apt-get download grub-pc-bin 
dpkg-deb -R grub-pc-bin_2.02-2ubuntu8_amd64.deb grub/
sudo mv grub/usr/lib/grub/i386-pc/ /usr/lib/grub/

sudo grub-install --target=i386-pc --boot-directory=/boot/ --recheck /dev/sdb
sudo mount /dev/sdb1 /boot/efi
sudo grub-install /boot/efi/
sudo update-grub
sudo grub-install --efi-directory=/boot/efi

sdb1 is my root partition. After executing the above commands, my laptop rebooted normally.
then one day I executed "sudo apt-get dist-upgrade", the bug showed up as described above.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shim-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1779560

Title:
  package shim-signed 1.34.9.1+13-0ubuntu2 failed to install/upgrade:
  installed shim-signed package post-installation script subprocess
  returned error exit status 1

Status in shim-signed package in Ubuntu:
  Incomplete

Bug description:
  ubuntu 18.04, during sudo apt-get dist-upgrade, the following error is
  shown:

  grub-install: error: cannot find EFI directory.
  dpkg: error processing package shim-signed (--configure):
   installed shim-signed package post-installation script subprocess returned error exit status 1

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: shim-signed 1.34.9.1+13-0ubuntu2
  ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
  Uname: Linux 4.15.0-23-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  .proc.sys.kernel.moksbstate_disabled: Error: [Errno 2] No such file or directory: '/proc/sys/kernel/moksbstate_disabled'
  ApportVersion: 2.20.9-0ubuntu7.2
  Architecture: amd64
  BootEFIContents:
   fw
   fwupx64.efi
  Date: Sun Jul  1 23:09:35 2018
  EFIBootMgr: Error: command ['efibootmgr', '-v'] failed with exit code 2: EFI variables are not supported on this system.
  EFITables: Jul 01 23:05:34 tassos-laptop fwupd[3001]: disabling plugin because: failed to startup uefi: UEFI firmware updating not supported
  ErrorMessage: installed shim-signed package post-installation script subprocess returned error exit status 1
  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 1.34.9.1+13-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/1779560/+subscriptions



More information about the foundations-bugs mailing list