0

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.

1 Answer 1

0

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
15
  • 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, 2013 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, 2013 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, 2013 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, 2013 at 12:02
  • What does "sudo service network-manager status" return?
    – sinclair
    May 3, 2013 at 12:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .