I hit this as well, while upgrading from kubuntu 13.04 to 13.10. Here's
as much debugging as I'm knowledgable to do, captured before I cross my
fingers and reboot anyway...

from term.log:
...
Setting up grub-common (2.00-19ubuntu2.1) ...
Installing new version of config file /etc/grub.d/00_header ...
Installing new version of config file /etc/grub.d/10_linux ...
Installing new version of config file /etc/grub.d/30_os-prober ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Setting up grub2-common (2.00-19ubuntu2.1) ...
Setting up grub-efi-amd64-bin (2.00-19ubuntu2.1) ...
Setting up grub-efi-amd64 (2.00-19ubuntu2.1) ...
dpkg: error processing grub-efi-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of grub-efi:
 grub-efi depends on grub-efi-amd64 (= 2.00-19ubuntu2.1); however:
  Package grub-efi-amd64 is not configured yet.

dpkg: error processing grub-efi (--configure):
 dependency problems - leaving unconfigured
...

Errors were encountered while processing:
 grub-efi-amd64
 grub-efi

dpkg --configure -D13 grub-efi-amd64:
Setting up grub-efi-amd64 (2.00-19ubuntu2.1) ...
D000002: fork/exec /var/lib/dpkg/info/grub-efi-amd64.postinst ( configure 
2.00-13ubuntu3 )
dpkg: error processing grub-efi-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-efi-amd64
puetzk@Peregrine:/var/log/dist-upgrade$ 

bash -x /var/lib/dpkg/info/grub-efi-amd64.postinst configure 2.00-13ubuntu3 || 
echo fail:
+ set -e
+ cached_available_ids=
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-efi-amd64.postinst 
configure 2.00-13ubuntu3
fail

So it's somehow debconf-related. I did a apt-get remove grub-efi-amd64,
dpkg --purge grub-efi-amd64, apt-get install grub-efi to try and clear
things; failure stayed the same, though there's no longer a previous
version.

export DEBCONF_DEBUG=developer
/var/lib/dpkg/info/grub-efi-amd64.postinst configure || echo fail
debconf (developer): frontend started
debconf (developer): frontend running, package name is grub-efi-amd64
debconf (developer): starting /var/lib/dpkg/info/grub-efi-amd64.config 
configure 
debconf (developer): <-- SET grub2/linux_cmdline 
debconf (developer): --> 0 value set
debconf (developer): <-- SET grub2/linux_cmdline_default quiet splash
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium grub2/linux_cmdline
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium grub2/linux_cmdline_default
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): starting /var/lib/dpkg/info/grub-efi-amd64.postinst 
configure
debconf (developer): <-- GET grub2/linux_cmdline
debconf (developer): --> 0 
debconf (developer): <-- GET grub2/linux_cmdline_default
debconf (developer): --> 0 quiet splash
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
debconf (developer): --> 0
fail

So that seems to be a dead-end. Some tracing with echo statements added
to the script narrowed it down to line 689 (the call to grub-install).

grub-install --debug prints lots of stuff, but points the failure at the
command:

efibootmgr -q -c -d /dev/sdb -p 1 -w -L kubuntu -l
\EFI\ubuntu\grubx64.efi

All of those arguments look right - my EFI boot partition is indeed on
sdb (an mSATA SSD, sda is the traditional hard drive), this is mounted
at /boot/efi, so that path is right and the file exists.

dmesg shows: 
efivars: set_variable() failed: status=8000000000000009

So I think I'm now as deep as I can get; it's a kernel/BIOS issue of
some kind.

This is a Lenovo ThinkPad W520

dmidecode -s bios-version:
8BET60WW

uname -a:
Linux Peregrine 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

I'm now going to see if I can somehow or other get booted into the new
kernel (3.8.0-34) that came with 13.10, and hope it fixes this...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1249819

Title:
  couldn't install '' grub-efi-amd64"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1249819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to