O problema
Tomar qualquer ação que altere os pacotes instalados no meu servidor Ubuntu 12.04 LTS (remover, instalar, limpar, etc.) falhará com:
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following extra packages will be installed:
libpq-dev libssl-dev postgresql-9.1 postgresql-contrib-9.1
Suggested packages:
oidentd ident-server locales-all libdbd-pg-perl
The following packages will be upgraded:
libpq-dev libssl-dev postgresql-9.1 postgresql-contrib-9.1
4 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
7 not fully installed or removed.
Need to get 0 B/6,577 kB of archives.
After this operation, 6,144 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of libssl-dev:
libssl-dev depends on libssl1.0.0 (= 1.0.1-4ubuntu5.27); however:
Version of libssl1.0.0 on system is 1.0.1-4ubuntu5.31.
dpkg: error processing libssl-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpq-dev:
libpq-dev depends on libpq5 (= 9.1.16-0ubuntu0.12.04); however:
Version of libpq5 on system is 9.1.18-0ubuntu0.12.04.
libpq-dev depends on libssl-dev; however:
Package libssl-dev is not configured yet.
dpkg: error processing libpq-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-9.1:
postgresql-client-9.1 (9.1.18-0ubuntu0.12.04) breaks postgresql-9.1 (<< 9.1.18-0ubuntu0.12.04) and is installed.
Version of postgresql-9.1 to be configured is 9.1.16-0ubuntu0.12.04.
dpkg: error processing postgresql-9.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib-9.1:
postgresql-contrib-9.1 depends on postgresql-9.1 (= 9.1.16-0ubuntu0.12.04); however:
Package postgresql-9.1 is not configured yet.
dpkg: error processing postgresql-contrib-9.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-server-dev-9.1:
postgresql-server-dev-9.1 depends on libpq-dev (>= 9.1~); however:
Package libpq-dev is not configured yet.
dpkg: error processing postgresql-server-dev-9.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2.7-dev:
python2.7-dev depends on libssl-dev; however:
Package libssl-dev is not configured yet.
dpkg: error processing python2.7-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.2-dev:
python3.2-dev depends on libssl-dev; however:
Package libssl-dev is not configured yet.
dpkg: error processing python3.2-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libssl-dev
libpq-dev
postgresql-9.1
postgresql-contrib-9.1
postgresql-server-dev-9.1
python2.7-dev
python3.2-dev
Causa provável (s)
Estou quase certo de que a causa original foi uma partição de inicialização completa. Mas eu limpei isso agora por dpkg -r
ing alguns kernels antigos. Eu usei este método após apt-get removing
ing falhar com um rastreamento de pilha semelhante ao anterior.
Outra fonte potencial do problema, embora seja improvável, já que não consigo ver nenhuma relação, é um bug Fsync na atualização postgres, que curei excluindo links simbólicos para os certificados e copiando os certificados diretamente de acordo com as instruções daquele link. Esse bug veio à tona exatamente ao mesmo tempo que os problemas do apt-get, então estou mencionando isso para ser completo, mas, como eu disse, não vejo como ele iria quebrar o apt-get.
O que eu tentei
Como mencionado, já limpei algum espaço na inicialização. Eu tentei apt-get install -f
, o que resulta no rastreamento de pilha que eu postei acima. Eu também tentei editar o arquivo de status do dpkg e remover o initramfs com uma falta similar de sucesso. Voltei ao arquivo de status original agora. Alguém sabe como eu posso consertar isso?