Resolvido:
Eu removi /var/lib/dpkg/info/postgresql-8.4
Agora está tudo bem.
sudo rm -r /var/lib/dpkg/info/postgresq*
Eu tenho esse problema:
alex@VRIL ~ % sudo apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
postgresql-8.4 : Depends: postgresql-client-8.4 but it is not installable
Depends: postgresql-common (>= 109~) but it is not going to be installed
postgresql-9.1 : Depends: postgresql-client-9.1 but it is not going to be installed
Depends: postgresql-common (>= 115~) but it is not going to be installed
python3 : Depends: python3.2 (>= 3.2.3) but it is not going to be installed
Depends: python3-minimal (= 3.2.3-6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
100 alex@VRIL ~ %
Eu tentei os seguintes comandos:
sudo apt-get install -f
sudo apt-get autoremove
sudo aptitude remove postgre*
sudo apt-get remove --purge postgres*
O problema é que não preciso de postgres, nem sei de onde vem ... mas isso me impede de instalar algo.
se eu fizer sudo apt-get -f install
, obtenho este resultado:
/var/lib/dpkg/info/postgresql-8.4.prerm: 7: .: Can't open /usr/share/postgresql-common/maintscripts-functions
dpkg: error processing postgresql-8.4 (--remove):
subprocess installed pre-removal script returned error exit status 2
Errors were encountered while processing:
postgresql-8.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alguma idéia?
Tags package-management dpkg debian