package grub-efi-amd64-signed failed to install: could not find EFI directory

Bug #1747884 reported by Raffael Krebs
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

package grub-efi-amd64-signed 1.85.1+2.02~beta3-4ubuntu7.1 failed to install

I am on Ubuntu 17.10

The error occurred when I installed available updates with aptitude. This is the relevant log snippet:

Setting up grub-efi-amd64-signed (1.85.1+2.02~beta3-4ubuntu7.1) ...
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up grub-efi-amd64-signed (1.85.1+2.02~beta3-4ubuntu7.1) ...
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 subprocess installed post-installation script returned error exit status 1

My EFI partition is not mounted anywhere by default. I then mounted it manually:
> sudo mount /dev/nvme0n1p1 /boot/efi

Then retried installation:
> sudo apt install package grub-efi-amd64-signed
[...]
Setting up grub-efi-amd64-signed (1.85.1+2.02~beta3-4ubuntu7.1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: grub-efi-amd64-signed:amd64

That seemed to have worked but because of the warning at the end I reconfigured:
> sudo dpkg-reconfigure grub-efi-amd64-signed
Installing for x86_64-efi platform.
Installation finished. No error reported.

Seems to be ok now.

So if the installation script could automatically mount the EFI partition then it should work.

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: grub-efi-amd64-signed 1.85.1+2.02~beta3-4ubuntu7.1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
Date: Wed Feb 7 11:05:48 2018
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-11-30 (68 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageVersions:
 dpkg 1.18.24ubuntu1
 apt 1.5.1
SourcePackage: grub2-signed
Title: package grub-efi-amd64-signed 1.85.1+2.02~beta3-4ubuntu7.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Raffael Krebs (kreba) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in grub2-signed (Ubuntu):
status: New → Confirmed
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.