package grub-efi-amd64-signed failed to install: could not find EFI directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2-signed (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
package grub-efi-
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-
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
dpkg: error processing package grub-efi-
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grub-efi-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up grub-efi-
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
dpkg: error processing package grub-efi-
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-
[...]
Setting up grub-efi-
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-
That seemed to have worked but because of the warning at the end I reconfigured:
> sudo dpkg-reconfigure grub-efi-
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-
ProcVersionSign
Uname: Linux 4.13.0-32-generic x86_64
NonfreeKernelMo
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
RelatedPackageV
dpkg 1.18.24ubuntu1
apt 1.5.1
SourcePackage: grub2-signed
Title: package grub-efi-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Status changed to 'Confirmed' because the bug affects multiple users.