Pagina 1 di 1

rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 2:20
da arpho
:'(
qualche tempo fa a causa di un black out il mio computer si è spento in modo irregolare da allora postgresql ha smesso di funzionare  e quando cerco di rimuovere il package postgresql-8.4, sia synaptic che apt-get cercano di avviare il server,poichè dopo molto tempo questo non risponde, ritornanbo un errore e il package resta lì, il vero problema è che non posso istallare nè rimuovere nient' altro perchè quel package è in uno stato inconsistente, adesso, per cui mi chiedevo se fosse fossibile ignorarlo o rimuoverlo in qualsiasi  modo. vi riangrazio anticipatamente. :(

Re: rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 2:36
da c.realkiller

Re: rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 6:10
da arpho
Ti ringrazio per la risposta, ho provato con aptitude purge, ma  non riesce a rimuovere nemmeno i pacchetti inutilizzati, ho provato con reconfigure, ma il pacchetto è rotto o non pienamente installato  >:(

Re: rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 11:00
da c.realkiller
dal man dpkg:
PACKAGE FLAGS
      reinst-required
              A  package  marked  reinst-required is broken and requires rein‐
              stallation. These packages cannot be removed, unless forced with
              option --force-remove-reinstreq.
per info

Codice: Seleziona tutto

man dpkg

Re: rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 14:26
da arpho
ho provato con

Codice: Seleziona tutto

dpkg --remove --force-remove-reinstreq postgresql-8.4
quello che ho ottenuto è stato

Codice: Seleziona tutto

dpkg: warning: overriding problem because --force enabled:
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
(Reading database ... 591639 files and directories currently installed.)
Removing postgresql-8.4 ...
Stopping PostgreSQL 8.4: 
pg_ctl: PID file "/opt/PostgreSQL/8.4/data/postmaster.pid" does not exist
Is server running?
invoke-rc.d: initscript postgresql-8.4, action "stop" failed.
dpkg: error processing postgresql-8.4 (--remove):
 subprocess installed pre-removal script returned error exit status 1
update-rc.d: warning: /etc/init.d/postgresql-8.4 missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting PostgreSQL 8.4: 
waiting for server to start...............................................................could not start server
PostgreSQL 8.4 did not start in a timely fashion, please see /opt/PostgreSQL/8.4/data/pg_log/startup.log for details
invoke-rc.d: initscript postgresql-8.4, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 postgresql-8.4
giuseppe@arpho:/usr/share/man$ sudo synaptic
Discarding: 2 over 3
Discarding: 6 over 7
ma il pacchetto è ancora lì  :-\

Re: rimuovere postgresql-8.4

Inviato: mercoledì 7 luglio 2010, 14:39
da c.realkiller
non so cosa dirti!  ::)