Ubuntu – /usr/sbin/grub never finishes


I did apt-get upgrade it never finishes at this point:

Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-24-virtual
Updating /boot/grub/menu.lst ... done

You already have a NoLOADER configuration in /etc/grub.conf
Running boot loader as requested
Running /usr/sbin/grub  ... 

The system does not freeze (Ctrl-Z works, I get my console back) just that that /usr/sbin/grub seems to never complete.

What should I do?

Best Answer

Seems to be an issue with the file /etc/grub.conf. Removing the file and re-configuring seems to work:

sudo mv /etc/grub.conf /etc/grub.conf.$(date +%F)
sudo dpkg --configure -a