[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postgresql non si installa e non si rimuove!!!



Grazie a tutti per i suggerimenti e per il conforto che questi hanno
prodotto. Il problema resta.
In breve:
- la rimozione non e` possibile: viene richiesta la reinstallazione
- la reinstallazione non e` possibile perche' fallisce quando tenta di
  stoppare il daemon postgres

Che devo fare? Qual e` il trucchetto sporco? Rimuovere a mano tutti i
files e modificare lo stato del pacchetto?

Alberto

++++++++++++++++++++
Vi scrivo qui di seguito una piccola relazione.

La rimozione sia apt (e famiglia) che dpkg mi danno lo stesso problema
(anche perche' apt-get poi chiama dpkg :):

# apt-get remove --purge postgresql-8.3
[...]
dpkg: error processing postgresql-8.3 (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 postgresql-8.3

# dpkg --purge postgresql-8.3
[come sopra]

Provo l'installazione manuale, ma qui il problema e` che c'e` un altro
errore che ne impedisce l'installazione (identico anche se uso
--force-overwrite-dir; ho anche provato con --force-all):
# dpkg -i postgresql-8.3_8.3.8-0lenny1_i386.deb
Selecting previously deselected package postgresql-8.3.
(Reading database ... 40519 files and directories currently installed.)
Preparing to replace postgresql-8.3 8.3.7-0lenny1 (using
postgresql-8.3_8.3.8-0lenny1_i386.deb) ...
Stopping PostgreSQL 8.3 database server: mainError: Invalid data
directory failed!
 failed!
[...]
Errors were encountered while processing:
 postgresql-8.3_8.3.8-0lenny1_i386.deb

provo a rimuovere /var/lib/postgresql/8.3 e reinstallare ma tutto si
ripete come sopra:
# dpkg -i postgresql-8.3_8.3.8-0lenny1_i386.deb (Reading database ...
40519 files and directories currently installed.)
Preparing to replace postgresql-8.3 8.3.7-0lenny1 (using
postgresql-8.3_8.3.8-0lenny1_i386.deb) ...
Stopping PostgreSQL 8.3 database server: mainError: Invalid data
directory failed!
[...]


Reply to: