Need help cleaning up PostgreSQL installs on Ubuntu 12.10

From: Mick <mickg01(at)verizon(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Need help cleaning up PostgreSQL installs on Ubuntu 12.10
Date: 2013-01-01 11:47:23
Message-ID: 50E2CCCB.5070601@verizon.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I'll start by saying this was my error and what I would now like to do
is 'clean out' remnant traces of past Postgresql installs v 8.4 and 9.1
from my Ubuntu Server 12.10 and then reinstall a working 8.4 or 9.1 (8.4
might let me recover and backup an old database then upgrade to 9.1).

I upgraded from Ubuntu 12.04 to 12.10 and it seems to have added
postgresql 9.1 while leaving the previous 8.4 install and these
conflicted making my PHP app unable to access it's database. I tried
removing one, then both and got to my current mess.

What I get at present is:
sudo apt-get purge postgresql

E: The package postgresql-8.4 needs to be reinstalled, but I can't find
an archive for it.

sudo apt-get purge postgresql-8.4

E: The package postgresql-8.4 needs to be reinstalled, but I can't find
an archive for it.

So then I try:

sudo apt-get install postgresql

E: The package postgresql-8.4 needs to be reinstalled, but I can't find
an archive for it.

trying a bin file:
sudo .postgresql-8.4.14-1-linux.bin

Error: A service A service (postgresql-8.4) already exists in the
'/etc/init.d' directory

Before I do more damage can someone give me an idiots guide to cleaning
this up so that as a new tax year starts I can restart using the PHP app
that requires Postgresql.

Thanks
--

*/Mick/*

Browse pgsql-novice by date

  From Date Subject
Next Message Robert Klaus 2013-01-02 20:26:28 Large number of rows in pg_type and slow gui (pgadmin) refresh
Previous Message Rajanikanth Jammalamadaka 2012-12-28 16:02:32 Resolved: Re: postgres build with xml support on Ubuntu 12.04 LTS