[Bug 1407790] [NEW] GRUB >= 2.00 has been unpacked but not yet configured.

mca 1407790 at bugs.launchpad.net
Mon Jan 5 20:46:39 UTC 2015


Public bug reported:

I've upgraded my htpc box several times but only recently i found out im
still on the generic 12.04 kernel. So i tried udating grub

root at htpc:/# update-grub
GRUB >= 2.00 has been unpacked but not yet configured.
grub-mkconfig will not work until the upgrade is complete.
It should run later as part of configuring the new GRUB packages.

I then tried the usual: apt-get -f install, reinstallation and removal
of grub-pc, but still the error. grub-install works fine

root at htpc:/home/bart# grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

I started digging around a bit in /usr/sbin/grub-mkconfig and found:

if fgrep -qs '${GRUB_PREFIX}/video.lst' "${grub_mkconfig_dir}/00_header"; then
  echo "GRUB >= 2.00 has been unpacked but not yet configured." >&2
  echo "grub-mkconfig will not work until the upgrade is complete." >&2
  echo "It should run later as part of configuring the new GRUB packages." >&2
  exit 0
fi

but GRUB_PREFIX is nowhere defined??? Is this file delivered like that in the distribution? If so, it looks like a pretty silly bug. Anyway, I've added:
GRUB_PREFIX="/boot/grub/i386-pc"
export GRUB_PREFIX
 and now everything works fine.

root at htpc:/# apt-cache policy grub-pc
grub-pc:
  Installed: 2.02~beta2-9ubuntu1
  Candidate: 2.02~beta2-9ubuntu1
  Version table:
 *** 2.02~beta2-9ubuntu1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.02~beta2-9 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: grub (not installed)
ProcVersionSignature: Ubuntu 3.2.0-63.95-generic-pae 3.2.57
Uname: Linux 3.2.0-63-generic-pae i686
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: i386
Date: Mon Jan  5 21:40:55 2015
InstallationDate: Installed on 2012-12-09 (756 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
SourcePackage: grub
UpgradeStatus: Upgraded to trusty on 2014-05-29 (220 days ago)

** Affects: grub (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 trusty

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

Title:
  GRUB >= 2.00 has been unpacked but not yet configured.

Status in grub package in Ubuntu:
  New

Bug description:
  I've upgraded my htpc box several times but only recently i found out
  im still on the generic 12.04 kernel. So i tried udating grub

  root at htpc:/# update-grub
  GRUB >= 2.00 has been unpacked but not yet configured.
  grub-mkconfig will not work until the upgrade is complete.
  It should run later as part of configuring the new GRUB packages.

  I then tried the usual: apt-get -f install, reinstallation and removal
  of grub-pc, but still the error. grub-install works fine

  root at htpc:/home/bart# grub-install /dev/sda
  Installing for i386-pc platform.
  Installation finished. No error reported.

  I started digging around a bit in /usr/sbin/grub-mkconfig and found:

  if fgrep -qs '${GRUB_PREFIX}/video.lst' "${grub_mkconfig_dir}/00_header"; then
    echo "GRUB >= 2.00 has been unpacked but not yet configured." >&2
    echo "grub-mkconfig will not work until the upgrade is complete." >&2
    echo "It should run later as part of configuring the new GRUB packages." >&2
    exit 0
  fi

  but GRUB_PREFIX is nowhere defined??? Is this file delivered like that in the distribution? If so, it looks like a pretty silly bug. Anyway, I've added:
  GRUB_PREFIX="/boot/grub/i386-pc"
  export GRUB_PREFIX
   and now everything works fine.

  root at htpc:/# apt-cache policy grub-pc
  grub-pc:
    Installed: 2.02~beta2-9ubuntu1
    Candidate: 2.02~beta2-9ubuntu1
    Version table:
   *** 2.02~beta2-9ubuntu1 0
          500 http://nl.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
          100 /var/lib/dpkg/status
       2.02~beta2-9 0
          500 http://nl.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: grub (not installed)
  ProcVersionSignature: Ubuntu 3.2.0-63.95-generic-pae 3.2.57
  Uname: Linux 3.2.0-63-generic-pae i686
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: i386
  Date: Mon Jan  5 21:40:55 2015
  InstallationDate: Installed on 2012-12-09 (756 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
  SourcePackage: grub
  UpgradeStatus: Upgraded to trusty on 2014-05-29 (220 days ago)

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



More information about the foundations-bugs mailing list