Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Before the upgrade (Ubuntu web server) was run, I had run apt-get auto-remove. Upgrade went forward and failed. Currently not able to connect to it. sudo networkmanager says:

command not found

Cannot run apt-get install, upgrade as it says dpkg was interrupted and asks to run

dpkg  --configure -a

but this get stuck at:

'Configuring postgresql-common' screen says 'the postgresql version 8.4 is obsolete...."

Any ideas appreciated.

share|improve this question

This should fix the issue:

sudo apt-get install -f
sudo apt-get remove postgresql-8.4
sudo dpkg --configure -a
sudo apt-get install postgresql-9.1
share|improve this answer
I don't have external connection at the moment. So if I run this command, does it require to connect to internet to download the postgresql-9.1 package? – Ramu May 3 '13 at 11:40
And if I try and remove postgresql-8.4 using apt, it says the same "dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem and then we do it all over again. – Ramu May 3 '13 at 11:46
I assume that the postgresql-9.1 package has not been downloaded yet. So you should make sure to have internet access wenn you install. You can try to fix broken packages. See edit in my answer. – sinclair May 3 '13 at 11:57
Sorry mate, I am not much used to Linux. May be wrong, but the issue primarily is that my networkmanager is not working! I cant connect anywhere, since its on VM, I can access it via a console and run commands. To fix the broken packages, I need to get my networking done, and to get networking done, I need to fix broken package. I kind of shot myself on the foot when I did the cleanup I think!:( – Ramu May 3 '13 at 12:02
What does "sudo service network-manager status" return? – sinclair May 3 '13 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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