Re: removing postgres

2010-11-03 Thread Jochen Schulz
Sthu Deus:
 Jochen:
 
 Why do you use dpkg for that? Have you tried apt-get or aptitude? I
 guess they will do what you want to achieve.
 
 J.
 
 I've tried that already. Please check this:
 
 The following packages will be REMOVED:
   postgresql-8.3 [8.3.11-0lenny1]  postgresql-client-8.3
 [8.3.12-0lenny1] 0 packages upgraded, 0 newly installed, 2 to remove
 and 0 not upgraded. Need to get 0B of archives. After unpacking 20.8MB
 ...
 Removing postgresql-8.3 ...
 /var/lib/dpkg/info/postgresql-8.3.prerm: line
 17: /usr/share/postgresql-common/maintscripts-functions: No such file
 or directory

Ok, so the installed package is broken. What message do you get when you
try to reinstall that package?

As a brute-force method, you could edit the file
/var/lib/dpkg/info/postgresql-8.3.prerm and insert 'exit 0' in the
second line or so.

J.
-- 
A passionate argument means more to me than a blockbuster movie.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: removing postgres

2010-11-03 Thread Sthu Deus
Thank You for Your time and answer, Jochen:

 Ok, so the installed package is broken. What message do you get when
 you try to reinstall that package?

Well. I have installed again:

postgresql-client-common
postgresql-common

, did change ownership (user and group to postgres) of my cluster and
this did the trick. Now I have working postgresql server! Therefore we
can finish here.
 
 As a brute-force method, you could edit the file
 /var/lib/dpkg/info/postgresql-8.3.prerm and insert 'exit 0' in the
 second line or so.

Thank You again for the interesting work around!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cd1ab64.d07b0e0a.7967.0...@mx.google.com



removing postgres

2010-11-02 Thread Sthu Deus
Good day.

I can not remove the following:

$ sudo /usr/bin/dpkg -r postgresql-8.3 postgresql-client-8.3
Removing postgresql-8.3 ...
/var/lib/dpkg/info/postgresql-8.3.prerm: line
17: /usr/share/postgresql-common/maintscripts-functions: No such file
or directory dpkg: error processing postgresql-8.3 (--remove):
subprocess pre-removal script returned error exit status 1 dpkg:
dependency problems prevent removal of postgresql-client-8.3:
postgresql-8.3 depends on postgresql-client-8.3. dpkg: error processing
postgresql-client-8.3 (--remove): dependency problems - not removing
Errors were encountered while processing:
 postgresql-8.3
 postgresql-client-8.3

Is there a way I can perform this? (Or it is just my destiny - to live
w/ it? :)

Thank You for Your time.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cd04887.cb7b0e0a.6b22.a...@mx.google.com



Re: removing postgres

2010-11-02 Thread Javier Barroso
On Tue, Nov 2, 2010 at 6:21 PM, Sthu Deus sthu.d...@gmail.com wrote:
 Good day.

 I can not remove the following:

 $ sudo /usr/bin/dpkg -r postgresql-8.3 postgresql-client-8.3
 Removing postgresql-8.3 ...
 /var/lib/dpkg/info/postgresql-8.3.prerm: line
 17: /usr/share/postgresql-common/maintscripts-functions: No such file
 or directory dpkg: error processing postgresql-8.3 (--remove):
 subprocess pre-removal script returned error exit status 1 dpkg:
 dependency problems prevent removal of postgresql-client-8.3:
 postgresql-8.3 depends on postgresql-client-8.3. dpkg: error processing
 postgresql-client-8.3 (--remove): dependency problems - not removing
 Errors were encountered while processing:
  postgresql-8.3
  postgresql-client-8.3

 Is there a way I can perform this? (Or it is just my destiny - to live
 w/ it? :)
Try reinstalling and uninstalling:

aptitude reinstall postgresql-client-8.3 postgresql-8.3
aptitude remove postgresql-client-8.3 postgresql-8.3

Regards,


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktin+vzs-fscsnfydmpwzrn-v6fa3eof5ba6h9...@mail.gmail.com



Re: removing postgres

2010-11-02 Thread Jochen Schulz
Sthu Deus:
 
 I can not remove the following:
 
 $ sudo /usr/bin/dpkg -r postgresql-8.3 postgresql-client-8.3

Why do you use dpkg for that? Have you tried apt-get or aptitude? I
guess they will do what you want to achieve.

J.
-- 
Americans have a better life.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: removing postgres

2010-11-02 Thread Sthu Deus
Thank You for Your time and answer, Javier:

 aptitude reinstall postgresql-client-8.3 postgresql-8.3
 aptitude remove postgresql-client-8.3 postgresql-8.3

I have tried already that method and I got the same problem. - Some
install script complains about failure on some option start. - Actually
this is the very reason why I remove postgres - I need it, but it
is of no worth to me as long as it does not work - it just takes my
disc space.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cd0e502.cc7e0e0a.1b2a.c...@mx.google.com



Re: removing postgres

2010-11-02 Thread Sthu Deus
Thank You for Your time and answer, Jochen:

 Sthu Deus:
  
  I can not remove the following:
  
  $ sudo /usr/bin/dpkg -r postgresql-8.3 postgresql-client-8.3
 
 Why do you use dpkg for that? Have you tried apt-get or aptitude? I
 guess they will do what you want to achieve.
 
 J.

I've tried that already. Please check this:

The following packages will be REMOVED:
  postgresql-8.3 [8.3.11-0lenny1]  postgresql-client-8.3
[8.3.12-0lenny1] 0 packages upgraded, 0 newly installed, 2 to remove
and 0 not upgraded. Need to get 0B of archives. After unpacking 20.8MB
...
Removing postgresql-8.3 ...
/var/lib/dpkg/info/postgresql-8.3.prerm: line
17: /usr/share/postgresql-common/maintscripts-functions: No such file
or directory dpkg: error processing postgresql-8.3 (--remove):
subprocess pre-removal script returned error exit status 1 dpkg:
postgresql-client-8.3: dependency problems, but removing anyway as you
request: postgresql-8.3 depends on postgresql-client-8.3. Removing
postgresql-client-8.3 ... /var/lib/dpkg/info/postgresql-client-8.3.prerm:
line 8: /usr/share/postgresql-common/maintscripts-functions: No such
file or directory dpkg: error processing postgresql-client-8.3
(--remove): subprocess pre-removal script returned error exit status
1 /var/lib/dpkg/info/postgresql-client-8.3.postinst: line
5: /usr/share/postgresql-common/maintscripts-functions: No such file or
directory dpkg: error while cleaning up: subprocess post-installation
script returned error exit status 1 Errors were encountered while
processing: postgresql-8.3 postgresql-client-8.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cd0e70f.ce7c0e0a.0cf1.c...@mx.google.com