package shim-signed 1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I tried to update ubuntu and I got this error message. I am using MacBook late 2007 with lubuntu 16.04 LTS 64bit.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: shim-signed 1.32~16.
ProcVersionSign
Uname: Linux 4.4.0-87-generic x86_64
.proc.sys.
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
BootEFIContents:
fw
fwupx64.efi
System
Date: Mon Jul 31 17:22:53 2017
EFIBootMgr:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0004
Boot0004* Ubuntu 16.04.2 LTS HD(1,GPT,
BootFFFF* PciRoot(
EFITables:
Jul 31 08:51:10 asuka kernel: efi: EFI v1.10 by Apple
Jul 31 08:51:10 asuka kernel: efi: ACPI=0xbeeee000 ACPI 2.0=0xbeeee014 SMBIOS=0xbeec3000
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-05-10 (82 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.20
SourcePackage: shim-signed
Title: package shim-signed 1.32~16.
UpgradeStatus: No upgrade log present (probably fresh install)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #1 |
- AptOrdering.txt Edit (1.1 KiB, text/plain; charset="utf-8")
- Dependencies.txt Edit (2.2 KiB, text/plain; charset="utf-8")
- Df.txt Edit (864 bytes, text/plain; charset="utf-8")
- Dmesg.txt Edit (80.3 KiB, text/plain; charset="utf-8")
- DpkgHistoryLog.txt Edit (23.7 KiB, text/plain; charset="utf-8")
- DpkgTerminalLog.txt Edit (4.6 KiB, text/plain; charset="utf-8")
- DuplicateSignature.txt Edit (383 bytes, text/plain; charset="utf-8")
- JournalErrors.txt Edit (126.6 KiB, text/plain; charset="utf-8")
- ProcCpuinfoMinimal.txt Edit (783 bytes, text/plain; charset="utf-8")
tags: | removed: need-duplicate-check |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Steve Langasek (vorlon) wrote : | #2 |
Changed in shim-signed (Ubuntu): | |
status: | New → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #3 |
Hi Steve,
Yes, here is the output.
root@asuka:~# ls -lAR /boot
/boot:
total 176999
-rw-r--r-- 1 root root 1246311 Jun 14 05:24 abi-4.4.
-rw-r--r-- 1 root root 1246511 Jun 26 12:45 abi-4.4.
-rw-r--r-- 1 root root 1246670 Jul 18 08:00 abi-4.4.
-rw-r--r-- 1 root root 190356 Jun 14 05:24 config-
-rw-r--r-- 1 root root 190356 Jun 26 12:45 config-
-rw-r--r-- 1 root root 190356 Jul 18 08:00 config-
drwxr-xr-x 1 root root 6 May 17 12:01 efi
drwxr-xr-x 5 root root 1024 Jul 31 17:22 grub
-rw-r--r-- 1 root root 40464919 Jun 24 15:30 initrd.
-rw-r--r-- 1 root root 40466242 Jul 3 10:51 initrd.
-rw-r--r-- 1 root root 40478595 Jul 27 13:19 initrd.
drwx------ 2 root root 12288 May 10 15:08 lost+found
-rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+
-rw------- 1 root root 3883391 Jun 14 05:24 System.
-rw------- 1 root root 3883887 Jun 26 12:45 System.
-rw------- 1 root root 3884173 Jul 18 08:00 System.
-rw------- 1 root root 7092784 Jun 14 05:24 vmlinuz-
-rw------- 1 root root 7094712 Jun 24 15:30 vmlinuz-
-rw------- 1 root root 7092720 Jun 26 12:45 vmlinuz-
-rw------- 1 root root 7094648 Jul 3 10:51 vmlinuz-
-rw------- 1 root root 7095888 Jul 18 08:00 vmlinuz-
-rw------- 1 root root 7097816 Jul 27 13:18 vmlinuz-
/boot/efi:
total 28
drwxr-xr-x 1 root root 4 Jul 27 13:17 EFI
-rw-r--r-- 1 root root 34 May 17 11:08 mach_kernel
-rw-r--r-- 1 root root 23055 May 17 12:01 .VolumeIcon.icns
/boot/efi/EFI:
total 0
drwxr-xr-x 1 root root 5 Jul 31 17:22 ubuntu
drwxr-xr-x 1 root root 4 May 17 11:10 Ubuntu 16.04.2 LTS
/boot/efi/
total 64
drwxr-xr-x 1 root root 2 Jul 27 13:17 fw
-rw-r--r-- 1 root root 64352 Jul 27 13:17 fwupx64.efi
drwxr-xr-x 1 root root 3 Jul 31 17:22 System
/boot/efi/
total 0
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 Jul 31 17:22 Library
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 Jul 31 17:22 CoreServices
/boot/efi/
total 124
-rw-r--r-- 1 root root 125952 Jul 31 21:53 boot.efi
/boot/efi/
total 4
-rw-r--r-- 1 root root 34 May 17 11:08 mach_kernel
drwxr-xr-x 1 root root 3 May 17 11:10 System
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 May 17 11:10 Library
/boot/efi/
total 0
drwxr-xr-x 1 root root 6 May 17 11:10 CoreServices
/boot/efi/
total 140
-rw-r--r-- 1 root root 125952 May 17 11:10 boot.efi
-rw-r--r-- 1 root root 5751 May 17 11:10 .disk_label
-rw-r--r-- 1 root root 42 May 17 11:10 .disk_label.
-rw-r--r-- 1 root root 268 May 17 11:10 SystemVersion.plist
/...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Hi Steve,
Yes, here is the output:
root@asuka:~# ls -lAR /boot
/boot:
total 176999
-rw-r--r-- 1 root root 1246311 Jun 14 05:24 abi-4.4.
-rw-r--r-- 1 root root 1246511 Jun 26 12:45 abi-4.4.
-rw-r--r-- 1 root root 1246670 Jul 18 08:00 abi-4.4.
-rw-r--r-- 1 root root 190356 Jun 14 05:24 config-
-rw-r--r-- 1 root root 190356 Jun 26 12:45 config-
-rw-r--r-- 1 root root 190356 Jul 18 08:00 config-
drwxr-xr-x 1 root root 6 May 17 12:01 efi
drwxr-xr-x 5 root root 1024 Jul 31 17:22 grub
-rw-r--r-- 1 root root 40464919 Jun 24 15:30 initrd.
-rw-r--r-- 1 root root 40466242 Jul 3 10:51 initrd.
-rw-r--r-- 1 root root 40478595 Jul 27 13:19 initrd.
drwx------ 2 root root 12288 May 10 15:08 lost+found
-rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+
-rw------- 1 root root 3883391 Jun 14 05:24 System.
-rw------- 1 root root 3883887 Jun 26 12:45 System.
-rw------- 1 root root 3884173 Jul 18 08:00 System.
-rw------- 1 root root 7092784 Jun 14 05:24 vmlinuz-
-rw------- 1 root root 7094712 Jun 24 15:30 vmlinuz-
-rw------- 1 root root 7092720 Jun 26 12:45 vmlinuz-
-rw------- 1 root root 7094648 Jul 3 10:51 vmlinuz-
-rw------- 1 root root 7095888 Jul 18 08:00 vmlinuz-
-rw------- 1 root root 7097816 Jul 27 13:18 vmlinuz-
/boot/efi:
total 28
drwxr-xr-x 1 root root 4 Jul 27 13:17 EFI
-rw-r--r-- 1 root root 34 May 17 11:08 mach_kernel
-rw-r--r-- 1 root root 23055 May 17 12:01 .VolumeIcon.icns
/boot/efi/EFI:
total 0
drwxr-xr-x 1 root root 5 Jul 31 17:22 ubuntu
drwxr-xr-x 1 root root 4 May 17 11:10 Ubuntu 16.04.2 LTS
/boot/efi/
total 64
drwxr-xr-x 1 root root 2 Jul 27 13:17 fw
-rw-r--r-- 1 root root 64352 Jul 27 13:17 fwupx64.efi
drwxr-xr-x 1 root root 3 Jul 31 17:22 System
/boot/efi/
total 0
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 Jul 31 17:22 Library
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 Jul 31 17:22 CoreServices
/boot/efi/
total 124
-rw-r--r-- 1 root root 125952 Jul 31 21:53 boot.efi
/boot/efi/
total 4
-rw-r--r-- 1 root root 34 May 17 11:08 mach_kernel
drwxr-xr-x 1 root root 3 May 17 11:10 System
/boot/efi/
total 0
drwxr-xr-x 1 root root 3 May 17 11:10 Library
/boot/efi/
total 0
drwxr-xr-x 1 root root 6 May 17 11:10 CoreServices
/boot/efi/
total 140
-rw-r--r-- 1 root root 125952 May 17 11:10 boot.efi
-rw-r--r-- 1 root root 5751 May 17 11:10 .disk_label
-rw-r--r-- 1 root root 42 May 17 11:10 .disk_label.
-rw-r--r-- 1 root root 268 May 17 11:10 SystemVersion.plist
/...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Steve Langasek (vorlon) wrote : | #5 |
Ok, there's nothing obviously wrong in that output. Can you please try the following commands:
sudo apt install strace
sudo strace -ff -o /tmp/grub-
And attach the resulting /tmp/grub-
affects: | shim-signed (Ubuntu) → grub2 (Ubuntu) |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #6 |
When I try those commands I get error messages (see below).
I just remembered something that might be related to this bug. A few
months ago I followed a guide to fix a boot error (the computer would
not boot into ubuntu without live DVD). I was able to fix the boot
problem, but maybe its solution is causing this bug? Here is the guide
I followed: http://
cristina@asuka:~$ sudo apt install strace
[sudo] password for cristina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
strace is already the newest version (4.11-1ubuntu3).
The following packages were automatically installed and are no longer required:
linux-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-efi-
Installing for x86_64-efi platform.
grub-install: error: Can't create file: No such file or directory.
dpkg: error processing package grub-efi-
subprocess installed post-installation script returned error exit status 1
Setting up shim-signed (1.32~16.
Installing for x86_64-efi platform.
grub-install: error: Can't create file: No such file or directory.
dpkg: error processing package shim-signed (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grub-efi-
shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
cristina@asuka:~$ sudo strace -ff -o /tmp/grub-
grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: error: Can't create file: No such file or directory.
cristina@asuka:~$
On 8/1/17, Steve Langasek <email address hidden> wrote:
> Ok, there's nothing obviously wrong in that output. Can you please try
> the following commands:
>
> sudo apt install strace
> sudo strace -ff -o /tmp/grub-
> --target=x86_64-efi
>
> And attach the resulting /tmp/grub-
> report?
>
> ** Package changed: shim-signed (Ubuntu) => grub2 (Ubuntu)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> package shim-signed 1.32~16.
> failed to install/upgrade: subprocess installed post-installation
> script returned error exit status 1
>
> Status in grub2 package in Ubuntu:
> Incomplete
>
> Bug description:
> I tried to update ubuntu and I got this error message. I am using
> MacBook late 2007 with lubuntu 16.04 LTS 64bit.
>
> ProblemType: Package
> DistroRelease: Ubuntu 16.04
> Package: shim-signed 1.32~16.
> ProcVersionSign
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Steve Langasek (vorlon) wrote : | #7 |
On Tue, Aug 01, 2017 at 10:17:09PM -0000, cristina wrote:
> When I try those commands I get error messages (see below).
It looks like despite these errors, you should have generated some files
called '/tmp/grub-
> I just remembered something that might be related to this bug. A few
> months ago I followed a guide to fix a boot error (the computer would
> not boot into ubuntu without live DVD). I was able to fix the boot
> problem, but maybe its solution is causing this bug? Here is the guide
> I followed: http://
It's quite possible. I don't think that having an hfs+ filesystem as your
EFI System Partition is compliant with the UEFI spec, and I don't know how
grub is interacting with this; but the strace output should tell us where to
look.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #8 |
- grub-install-trace.6895 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6895")
- grub-install-trace.6894 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6894")
- grub-install-trace.6893 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6893")
- grub-install-trace.6891 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6891")
- grub-install-trace.6890 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6890")
- grub-install-trace.6889 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6889")
- grub-install-trace.6886 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6886")
- grub-install-trace.6884 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6884")
- grub-install-trace.6883 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6883")
- grub-install-trace.6882 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6882")
- grub-install-trace.6881 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6881")
- grub-install-trace.6880 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6880")
- grub-install-trace.6879 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6879")
- grub-install-trace.6878 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6878")
- grub-install-trace.6877 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.6877")
- grub-install-trace.6876 Edit (103.2 KiB, application/octet-stream; name="grub-install-trace.6876")
- grub-install-trace.6875 Edit (1.3 KiB, application/octet-stream; name="grub-install-trace.6875")
- grub-install-trace.6874 Edit (5.8 KiB, application/octet-stream; name="grub-install-trace.6874")
- grub-install-trace.6872 Edit (588.2 KiB, application/octet-stream; name="grub-install-trace.6872")
Hi Steve,
Okay, I have attached the trace files from tmp.
Thanks!
On 8/2/17, Steve Langasek <email address hidden> wrote:
> On Tue, Aug 01, 2017 at 10:17:09PM -0000, cristina wrote:
>> When I try those commands I get error messages (see below).
>
> It looks like despite these errors, you should have generated some files
> called '/tmp/grub-
>
>> I just remembered something that might be related to this bug. A few
>> months ago I followed a guide to fix a boot error (the computer would
>> not boot into ubuntu without live DVD). I was able to fix the boot
>> problem, but maybe its solution is causing this bug? Here is the guide
>> I followed:
>> http://
>
> It's quite possible. I don't think that having an hfs+ filesystem as your
> EFI System Partition is compliant with the UEFI spec, and I don't know how
> grub is interacting with this; but the strace output should tell us where
> to
> look.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> package shim-signed 1.32~16.
> failed to install/upgrade: subprocess installed post-installation
> script returned error exit status 1
>
> Status in grub2 package in Ubuntu:
> Incomplete
>
> Bug description:
> I tried to update ubuntu and I got this error message. I am using
> MacBook late 2007 with lubuntu 16.04 LTS 64bit.
>
> ProblemType: Package
> DistroRelease: Ubuntu 16.04
> Package: shim-signed 1.32~16.
> ProcVersionSign
> Uname: Linux 4.4.0-87-generic x86_64
> .proc.sys.
> ApportVersion: 2.20.1-0ubuntu2.10
> Architecture: amd64
> BootEFIContents:
> fw
> fwupx64.efi
> System
> Date: Mon Jul 31 17:22:53 2017
> EFIBootMgr:
> BootCurrent: 0000
> Timeout: 0 seconds
> BootOrder: 0004
> Boot0004* Ubuntu 16.04.2
> LTS HD(1,GPT,
> BootFFFF*
> PciRoot(
> 16.04.2 LTS\System\
> EFITables:
> Jul 31 08:51:10 asuka kernel: efi: EFI v1.10 by Apple
> Jul 31 08:51:10 asuka kernel: efi: ACPI=0xbeeee000 ACPI 2.0=0xbeeee014
> SMBIOS=0xbeec3000
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 1
> InstallationDate: Installed on 2017-05-10 (82 days ago)
> InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64
> (20150218.1)
> RelatedPackageV
> dpkg 1.18.4ubuntu1.2
> apt 1.2.20
> SourcePackage: shim-signed
> Title: package shim-signed 1.32~16.
> failed to install/upgrade: subprocess installed post-installation script
> returned error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Steve Langasek (vorlon) wrote : | #9 |
Thanks, the trace shows:
open("/
write(2, "grub-install: error:", 20) = 20
write(2, " ", 1) = 1
write(2, "Can't create file: No such file or directory", 44) = 44
I notice that your /boot/efi directory has a /boot/efi/
If you copy /boot/efi/
Full disclosure, I have no idea at all if this might make your system unbootable. A successful grub-install may overwrite the Apple-specific EFI boot variables with something other than what the system expects.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #10 |
- grub-install-trace.5944 Edit (935.7 KiB, application/octet-stream; name="grub-install-trace.5944")
- grub-install-trace.5945 Edit (5.8 KiB, application/octet-stream; name="grub-install-trace.5945")
- grub-install-trace.5946 Edit (1.3 KiB, application/octet-stream; name="grub-install-trace.5946")
- grub-install-trace.5947 Edit (103.2 KiB, application/octet-stream; name="grub-install-trace.5947")
- grub-install-trace.5948 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5948")
- grub-install-trace.5949 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5949")
- grub-install-trace.5950 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5950")
- grub-install-trace.5951 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5951")
- grub-install-trace.5952 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5952")
- grub-install-trace.5953 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5953")
- grub-install-trace.5954 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5954")
- grub-install-trace.5955 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5955")
- grub-install-trace.5956 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5956")
- grub-install-trace.5966 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5966")
- grub-install-trace.5967 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5967")
- grub-install-trace.5968 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5968")
- grub-install-trace.5969 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5969")
- grub-install-trace.5970 Edit (18.2 KiB, application/octet-stream; name="grub-install-trace.5970")
- grub-install-trace.5975 Edit (7.1 KiB, application/octet-stream; name="grub-install-trace.5975")
- grub-install-trace.5976 Edit (17.1 KiB, application/octet-stream; name="grub-install-trace.5976")
- grub-install-trace.5977 Edit (9.2 KiB, application/octet-stream; name="grub-install-trace.5977")
- grub-install-trace.5986 Edit (9.0 KiB, application/octet-stream; name="grub-install-trace.5986")
- grub-install-trace.5989 Edit (23.6 KiB, application/octet-stream; name="grub-install-trace.5989")
Hi Steve,
I followed your instructions and copied /boot/efi/
LTS/mach_kernel to
/boot/efi/
I then installed grub manually using a modified command from same
guide I referred to earlier
sudo grub-install --target x86_64-efi --boot-
--efi-directory
The install succeeded!
Please find below the terminal printout and attached trace files.
I will attempt to restart the system after I send this message. Thanks
for your help! :)
cristina@asuka:~$ sudo bash -c 'echo "This file is required for
booting" > "/boot/
[sudo] password for cristina:
cristina@asuka:~$ sudo grub-install --target x86_64-efi
--boot-
--bootloader-
Installing for x86_64-efi platform.
Installation finished. No error reported.
cristina@asuka:~$ sudo apt install strace
Reading package lists... Done
Building dependency tree
Reading state information... Done
strace is already the newest version (4.11-1ubuntu3).
The following packages were automatically installed and are no longer required:
linux-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-efi-
Installing for x86_64-efi platform.
Installation finished. No error reported.
Setting up shim-signed (1.32~16.
Installing for x86_64-efi platform.
Installation finished. No error reported.
No DKMS packages installed: not changing Secure Boot validation state.
cristina@asuka:~$ sudo strace -ff -o /tmp/grub-
grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
cristina@asuka:~$
On 8/2/17, Steve Langasek <email address hidden> wrote:
> Thanks, the trace shows:
>
> open("/
> or directory)
> write(2, "grub-install: error:", 20) = 20
> write(2, " ", 1) = 1
> write(2, "Can't create file: No such file or directory", 44) = 44
>
> I notice that your /boot/efi directory has a /boot/efi/
> 16.04.2 LTS/mach_kernel, but not a /boot/efi/
> which is the directory that Ubuntu's GRUB expects to use.
>
> If you copy /boot/efi/
> /boot/efi/
>
> Full disclosure, I have no idea at all if this might make your system
> unbootable. A successful grub-install may overwrite the Apple-specific
> EFI boot variables with something other than what the system expects.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> package shim-signed 1.32~16.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cristina (cristina6x) wrote : | #11 |
Hi Steve,
The computer still boots successfully!
So now I have two directories in /boot/efi/EFI, one called "ubuntu" and
the other called "Ubuntu 16.04.2 LTS".
1. Would you recommend I remove the older Ubuntu 16.04.2 LTS directory?
2. Do you think this problem will occur again for future updates?
Some more info:
The ubuntu directory has a plist file in it that says product version
2.02~beta2-
The Ubuntu 16.04.2 LTS directory has a plist file in it that says
product version 2.02~beta2-
When I boot the computer it only shows the newer version
2.02~beta2-
Thank you very much for your help!
On 8/3/17, Christopher Broski <email address hidden> wrote:
> Hi Steve,
>
> I followed your instructions and copied /boot/efi/
> LTS/mach_kernel to
> /boot/efi/
>
> I then installed grub manually using a modified command from same
> guide I referred to earlier
>
> sudo grub-install --target x86_64-efi --boot-
> --efi-directory
>
> The install succeeded!
>
> Please find below the terminal printout and attached trace files.
>
> I will attempt to restart the system after I send this message. Thanks
> for your help! :)
>
> cristina@asuka:~$ sudo bash -c 'echo "This file is required for
> booting" > "/boot/
> [sudo] password for cristina:
> cristina@asuka:~$ sudo grub-install --target x86_64-efi
> --boot-
> --bootloader-
> Installing for x86_64-efi platform.
> Installation finished. No error reported.
> cristina@asuka:~$ sudo apt install strace
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> strace is already the newest version (4.11-1ubuntu3).
> The following packages were automatically installed and are no longer
> required:
> linux-headers-
> linux-image-
> linux-signed-
> Use 'sudo apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
> 2 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Setting up grub-efi-
> Installing for x86_64-efi platform.
> Installation finished. No error reported.
> Setting up shim-signed (1.32~16.
> Installing for x86_64-efi platform.
> Installation finished. No error reported.
> No DKMS packages installed: not changing Secure Boot validation state.
> cristina@asuka:~$ sudo strace -ff -o /tmp/grub-
> grub-install --target=x86_64-efi
> Installing for x86_64-efi platform.
> Installation finished. No error reported.
> cristina@asuka:~$
>
>
> On 8/2/17, Steve Langasek <email address hidden> wrote:
>> Thanks, the trace shows:
>>
>> open("/
>> file
>> or directory)
>> write(2, "grub-install: error:", 20) = 20
>> write(2, " ", 1) = 1
>> w...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Steve Langasek (vorlon) wrote : | #12 |
> The computer still boots successfully!
Well, that's good to hear!
> So now I have two directories in /boot/efi/EFI, one called "ubuntu" and
> the other called "Ubuntu 16.04.2 LTS".
> 1. Would you recommend I remove the older Ubuntu 16.04.2 LTS directory?
> 2. Do you think this problem will occur again for future updates?
I am uncertain if removing the older directory will cause problems. It depends on whether anything is referencing it in your boot path. You may want to check the output of 'sudo efibootmgr -v' to see.
This problem should not recur on future updates now that the mach_kernel file exists.
> I then installed grub manually using a modified command from same
> guide I referred to earlier
> sudo grub-install --target x86_64-efi --boot-
> --efi-directory
This should have the same result as just running 'sudo grub-install'. In fact, the use of a different --bootloader-id before, instead of the 'ubuntu' value expected by the packages, is probably what led to the problems in the config.
I'm not sure whether there is anything further we should do to improve the grub package here. The immediate cause of the failure was the following of a third-party guide, however it should not have been necessary for you to follow a third-party guide at all - the installation should have just done the right thing for you out of the box. So I'll leave this bug report open for further triaging by the grub maintainers.
Changed in grub2 (Ubuntu): | |
status: | Incomplete → New |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Launchpad Janitor (janitor) wrote : | #13 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in grub2 (Ubuntu): | |
status: | New → Confirmed |
The error in your log shows:
Setting up shim-signed (1.32~16. 04.1+0. 9+1474479173. 6c180c6- 1ubuntu1) ...
Installing for x86_64-efi platform.
grub-install: error: Can't create file: No such file or directory.
dpkg: error processing package shim-signed (--configure):
subprocess installed post-installation script returned error exit status 1
Can you show the output of 'ls -lAR /boot' on this system?