[Bug 1707832] Re: 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
cristina
1707832 at bugs.launchpad.net
Thu Aug 3 20:09:59 UTC 2017
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-36ubuntu3.12
The Ubuntu 16.04.2 LTS directory has a plist file in it that says
product version 2.02~beta2-36ubuntu3.9
When I boot the computer it only shows the newer version
2.02~beta2-36ubuntu3.12.
Thank you very much for your help!
On 8/3/17, Christopher Broski <cebroski at gmail.com> wrote:
> 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 at asuka:~$ sudo bash -c 'echo "This file is required for
> booting" > "/boot/efi/EFI/ubuntu/mach_kernel"'
> [sudo] password for cristina:
> cristina at 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 at 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 at 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 at asuka:~$
>
>
> On 8/2/17, Steve Langasek <steve.langasek at 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
>>
>
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in 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
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
More information about the foundations-bugs
mailing list