Thanks, the trace shows:

open("/boot/efi/EFI/ubuntu/mach_kernel", O_RDWR) = -1 ENOENT (No such file 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/EFI/Ubuntu
16.04.2 LTS/mach_kernel, but not a /boot/efi/EFI/ubuntu/mach_kernel
which is the directory that Ubuntu's GRUB expects to use.

If you copy /boot/efi/EFI/Ubuntu 16.04.2 LTS/mach_kernel to
/boot/efi/EFI/ubuntu/mach_kernel, does the package install then succeed?

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 a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1707832

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1707832/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to