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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/426239 Title: grub-pc hangs while package is configured To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/426239/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs