Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I was trying to upgrade the distribution of my ubuntu 11.10. The process got stuck in between. I restarted the PC, and when trying to run the dpkg command I get the error below -

murtaza@murtaza-dev:~$ sudo dpkg --configure -a
[sudo] password for murtaza: 
dpkg: dependency problems prevent configuration of grub-pc-bin:
 grub-pc-bin depends on grub-common (= 1.99-21ubuntu3.9); however:
  Package grub-common is not installed.
dpkg: error processing grub-pc-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-pc:
 grub-pc depends on grub-common; however:
  Package grub-common is not installed.
 grub-pc depends on grub-pc-bin (= 1.99-21ubuntu3.9); however:
  Package grub-pc-bin is not configured yet.
dpkg: error processing grub-pc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnih-dbus1:
 libnih-dbus1 depends on libnih1 (= 1.0.3-4ubuntu9.1); however:
  Version of libnih1 on system is 1.0.3-4ubuntu2.
dpkg: error processing libnih-dbus1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub2-common:
 grub2-common depends on grub-common (= 1.99-21ubuntu3.9); however:
  Package grub-common is not installed.
dpkg: error processing grub2-common (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 grub-pc-bin
 grub-pc
 libnih-dbus1
 grub2-common
share|improve this question

closed as not a real question by Jay, Jenny D, dunxd, mdpc, petrus Mar 27 '13 at 20:18

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Does the same problem happen if you restore from backup and try the upgrade again? –  gparent Mar 27 '13 at 19:21

1 Answer 1

up vote 2 down vote accepted

You weren't using dpkg to update the system, were you?!

Try recovering with apt-get install -f.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.