[Bug 426239] Re: grub-pc hangs while package is configured

jmrasor 426239 at bugs.launchpad.net
Mon Dec 3 15:02:32 UTC 2012


This bug affected me as well, on a near-fresh install of Lubuntu 12.04
to a USB stick, inserted into a laptop.

The upgrade was about 80% done when it hung on setting up grub-pc. I waited a few minutes, killed the process, rebooted. Grub menu looked good; system rebooted properly. 
Launched Update Manager: it reported partial upgrade, with software index broken. Tried the recommended sudo apt-get install -f: failed, dpkg was interrupted. Tried sudo dpkg --configure -a: "GRUB bootloader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason."
Then dpkg offered to put GRUB on one of 3 devices: two disks (including the USB stick), and the USB stick's Linux partition. I chose the stick. Setting up grub-pc appeared to proceed normally, with no errors reported. dpkg continued on its merry way. I then relaunched Update Manager; it reported all up to date. Reboot the laptop: again, the GRUB menu looked good and the system rebooted properly. The Update Manager reported all up to date.

-- 
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/426239

Title:
  grub-pc hangs while package is configured

Status in “grub2” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: grub-pc

  1)
  # lsb_release -rd
  Description:    Ubuntu karmic (development branch)
  Release:        9.10

  2)
  # apt-cache policy grub-pc
  grub-pc:
    Installed: 1.97~beta2-2ubuntu1
    Candidate: 1.97~beta2-2ubuntu1
    Version table:
   *** 1.97~beta2-2ubuntu1 0
          500 http://ch.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status

  3)
  I expected the update to run without any problems.

  4)
  Updates downloads and hangs upon configuring grub-pc

  # dpkg --configure -a
  Processing triggers for menu ...
  Processing triggers for python-support ...
  WARNING: WARNING: /usr/share/pyshared/lsb_release.py is linked but does not belong to any package.
  Setting up grub-pc (1.97~beta2-2ubuntu1) ...
  Installation finished. No error reported.
  This is the contents of the device map /boot/grub/device.map.
  Check if this is correct or not. If any of the lines is incorrect,
  fix it and re-run the script `grub-install'.

  (hd0)   /dev/sda
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-2.6.31-9-generic
  Found initrd image: /boot/initrd.img-2.6.31-9-generic
  Found linux image: /boot/vmlinuz-2.6.31-8-generic
  Found initrd image: /boot/initrd.img-2.6.31-8-generic
  Found memtest86+ image: /boot/memtest86+.bin
  ^C (abort by me using CTRL+C)
  dpkg: error processing grub-pc (--configure):
   subprocess installed post-installation script killed by signal (Interrupt)
  Processing triggers for libc6 ...
  ldconfig deferred processing now taking place
  Setting up libmagickcore2 (7:6.5.1.0-1.1ubuntu3) ...

  Setting up libmagickwand2 (7:6.5.1.0-1.1ubuntu3) ...

  Setting up rss-glx (0.9.0-2ubuntu3) ...
  Setting up obex-data-server (0.4.4-2build1) ...
  Processing triggers for libc6 ...
  ldconfig deferred processing now taking place
  Errors were encountered while processing:
   grub-pc

  
  FS is either NTFS or ext4 (swap) so nothing special

  # fdisk -l
  Disk /dev/sda: 128.0 GB, 128035676160 bytes
  255 heads, 63 sectors/track, 15566 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Disk identifier: 0xXxxxxxxxx

     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *           1          13      102400    7  HPFS/NTFS
  Partition 1 does not end on cylinder boundary.
  /dev/sda2              13        5100    40856576    7  HPFS/NTFS
  Partition 2 does not end on cylinder boundary.
  /dev/sda3            5100        7775    21485520   83  Linux
  Partition 3 does not end on cylinder boundary.
  /dev/sda4            7775       15567    62589240    5  Extended
  Partition 4 does not end on cylinder boundary.
  /dev/sda5            7775       14218    51755728+  83  Linux
  /dev/sda6           14218       15434     9767488+  83  Linux
  /dev/sda7           15434       15567     1065928+  82  Linux swap / Solaris

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




More information about the foundations-bugs mailing list