Não é possível remover o aplicativo

0

Estou tentando remover o postgresql-client-common da minha máquina, mas estou recebendo este erro:

E: postgresql-9.2: subprocess installed pre-removal script returned error exit status 2
E: postgresql-client-9.2: subprocess installed pre-removal script returned error exit status 2
E: postgresql-common: subprocess installed pre-removal script returned error exit status 2

Eu tentei: sudo apt-get -f install

Mas também falha:

lucid@ubuntu:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  postgresql-9.2 postgresql-client-9.2 postgresql-client-common
  postgresql-common
0 upgraded, 0 newly installed, 4 to remove and 561 not upgraded.
4 not fully installed or removed.
After this operation, 23.6MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 131347 files and directories currently installed.)
Removing postgresql-9.2 ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-9.2 (--remove):
 subprocess installed pre-removal script returned error exit status 2
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Removing postgresql-client-9.2 ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-client-9.2 (--remove):
 subprocess installed pre-removal script returned error exit status 2
Removing postgresql-common ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-common (--remove):
 subprocess installed pre-removal script returned error exit status 2
Removing postgresql-client-common ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing postgresql-client-common (--remove):
 subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 postgresql-9.2
 postgresql-client-9.2
 postgresql-common
 postgresql-client-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Como posso consertar isso? Estou usando o Ubuntu 10.04

    
por xybrek 19.06.2013 / 08:59

1 resposta

0

Eu descrevi uma solução para um problema semelhante. Talvez isso também resolva seu problema.

Como corrijo o problema de pacote que recebi após uma tentativa fracassada de instalar o QtOctave?

    
por prophecy201 19.06.2013 / 09:28