Hi Steve, I followed your instructions and copied /boot/efi/EFI/Ubuntu 16.04.2 LTS/mach_kernel to /boot/efi/EFI/ubuntu/mach_kernel
I then installed grub manually using a modified command from same guide I referred to earlier sudo grub-install --target x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id="ubuntu" 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/efi/EFI/ubuntu/mach_kernel"' [sudo] password for cristina: cristina@asuka:~$ sudo grub-install --target x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id="ubuntu" 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-4.4.0-81 linux-headers-4.4.0-81-generic linux-image-4.4.0-81-generic linux-image-extra-4.4.0-81-generic linux-signed-image-4.4.0-81-generic 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-amd64-signed (1.66.12+2.02~beta2-36ubuntu3.12) ... Installing for x86_64-efi platform. Installation finished. No error reported. Setting up shim-signed (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ... 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-install-trace -s 256 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 <steve.langa...@canonical.com> wrote: > 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 subscribed to the bug > report. > 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 > > 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.04.1+0.9+1474479173.6c180c6-1ubuntu1 > ProcVersionSignature: Ubuntu 4.4.0-87.110-generic 4.4.73 > Uname: Linux 4.4.0-87-generic x86_64 > .proc.sys.kernel.moksbstate_disabled: 0 > 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,6aa06c3c-cd2f-477e-a7a8-01871ef8de84,0x800,0x100000)/File(\System\Library\CoreServices) > BootFFFF* > > PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(1,GPT,6aa06c3c-cd2f-477e-a7a8-01871ef8de84,0x800,0x100000)/File(\EFI\Ubuntu > 16.04.2 LTS\System\Library\CoreServices\boot.efi) > 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) > RelatedPackageVersions: > dpkg 1.18.4ubuntu1.2 > apt 1.2.20 > SourcePackage: shim-signed > 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 > UpgradeStatus: No upgrade log present (probably fresh install) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1707832/+subscriptions > ** Attachment added: "grub-install-trace.5944" https://bugs.launchpad.net/bugs/1707832/+attachment/4926685/+files/grub-install-trace.5944 ** Attachment added: "grub-install-trace.5945" https://bugs.launchpad.net/bugs/1707832/+attachment/4926686/+files/grub-install-trace.5945 ** Attachment added: "grub-install-trace.5946" https://bugs.launchpad.net/bugs/1707832/+attachment/4926687/+files/grub-install-trace.5946 ** Attachment added: "grub-install-trace.5947" https://bugs.launchpad.net/bugs/1707832/+attachment/4926688/+files/grub-install-trace.5947 ** Attachment added: "grub-install-trace.5948" https://bugs.launchpad.net/bugs/1707832/+attachment/4926689/+files/grub-install-trace.5948 ** Attachment added: "grub-install-trace.5949" https://bugs.launchpad.net/bugs/1707832/+attachment/4926690/+files/grub-install-trace.5949 ** Attachment added: "grub-install-trace.5950" https://bugs.launchpad.net/bugs/1707832/+attachment/4926691/+files/grub-install-trace.5950 ** Attachment added: "grub-install-trace.5951" https://bugs.launchpad.net/bugs/1707832/+attachment/4926692/+files/grub-install-trace.5951 ** Attachment added: "grub-install-trace.5952" https://bugs.launchpad.net/bugs/1707832/+attachment/4926693/+files/grub-install-trace.5952 ** Attachment added: "grub-install-trace.5953" https://bugs.launchpad.net/bugs/1707832/+attachment/4926694/+files/grub-install-trace.5953 ** Attachment added: "grub-install-trace.5954" https://bugs.launchpad.net/bugs/1707832/+attachment/4926695/+files/grub-install-trace.5954 ** Attachment added: "grub-install-trace.5955" https://bugs.launchpad.net/bugs/1707832/+attachment/4926696/+files/grub-install-trace.5955 ** Attachment added: "grub-install-trace.5956" https://bugs.launchpad.net/bugs/1707832/+attachment/4926697/+files/grub-install-trace.5956 ** Attachment added: "grub-install-trace.5966" https://bugs.launchpad.net/bugs/1707832/+attachment/4926698/+files/grub-install-trace.5966 ** Attachment added: "grub-install-trace.5967" https://bugs.launchpad.net/bugs/1707832/+attachment/4926699/+files/grub-install-trace.5967 ** Attachment added: "grub-install-trace.5968" https://bugs.launchpad.net/bugs/1707832/+attachment/4926700/+files/grub-install-trace.5968 ** Attachment added: "grub-install-trace.5969" https://bugs.launchpad.net/bugs/1707832/+attachment/4926701/+files/grub-install-trace.5969 ** Attachment added: "grub-install-trace.5970" https://bugs.launchpad.net/bugs/1707832/+attachment/4926702/+files/grub-install-trace.5970 ** Attachment added: "grub-install-trace.5975" https://bugs.launchpad.net/bugs/1707832/+attachment/4926703/+files/grub-install-trace.5975 ** Attachment added: "grub-install-trace.5976" https://bugs.launchpad.net/bugs/1707832/+attachment/4926704/+files/grub-install-trace.5976 ** Attachment added: "grub-install-trace.5977" https://bugs.launchpad.net/bugs/1707832/+attachment/4926705/+files/grub-install-trace.5977 ** Attachment added: "grub-install-trace.5986" https://bugs.launchpad.net/bugs/1707832/+attachment/4926706/+files/grub-install-trace.5986 ** Attachment added: "grub-install-trace.5989" https://bugs.launchpad.net/bugs/1707832/+attachment/4926707/+files/grub-install-trace.5989 -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs