package grub-efi-amd64 2.00-19ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1256398 reported by Daniel Hollocher
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I got this while trying to setup a dual boot with windows 8 and ubuntu. I was using the bootrepair utility, and it asked me to install some packages: sudo apt-get install -y --force-yes grub-efi-amd64-signed shim-signed linux-signed-generic

The installation failed with these error messages:
<snip>
Setting up grub-efi-amd64 (2.00-19ubuntu2.1) ...

Creating config file /etc/default/grub with new version
source_dir doesn't exist. Please specify --target or --directory
dpkg: error processing grub-efi-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
 grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.00-19ubuntu2.1); however:
  Package grub-efi-amd64 is not configured yet.

dpkg: error processing grub-efi-amd64-signed (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 grub-efi-amd64
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

I will try again, and report back

ProblemType: Package
DistroRelease: Ubuntu 13.10
Package: grub-efi-amd64 2.00-19ubuntu2.1
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Fri Nov 29 10:21:25 2013
DuplicateSignature: package:grub-efi-amd64:2.00-19ubuntu2.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2013-11-29 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-13-generic root=UUID=741ece21-1919-459e-bb1b-fd5c5c7855df ro quiet splash
SourcePackage: grub2
Title: package grub-efi-amd64 2.00-19ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel Hollocher (chogydan) wrote :
Revision history for this message
Daniel Hollocher (chogydan) wrote :

ran again, still failed

tags: removed: need-duplicate-check
Revision history for this message
Daniel Hollocher (chogydan) wrote :

I ran bootrepair again, and it seemed to finish. Here is the output:
Boot successfully repaired.

Please write on a paper the following URL:
http://paste.ubuntu.com/6495418/

In case you still experience boot problem, indicate this URL to:
<email address hidden> or to your favorite support forum.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda2/EFI/ubuntu/shimx64.efi file!

The boot files of [The OS now in use - Ubuntu 13.10] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Hollocher (chogydan) wrote :

fwiw, comment #3 happened after I reboot the computer, maybe changing into uefi mode. I forget. I no longer have access to the computer in question, so I won't be able to follow up with this bug report in the future.

Revision history for this message
ghormax (aisuru2001) wrote :

I think this happens because I have two different linux OS on dual boot

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.