Este é, na verdade, um bug bem conhecido com instâncias t1.micro no EC2
Observe que isso é corrigido no US-WEST-2:
Estou usando o Ubuntu Maverick (servidor).
Quando eu corro:
apt-get upgrade
fica preso em:
Setting up openjdk-6-jre-headless (6b20-1.9.7-0ubuntu1) ...
Por quê? E o que posso fazer para parar?
Eu tentei removê-lo com apt-get
, mas recebi este erro:
E: dpkg foi interrompido, você deve executar manualmente 'sudo dpkg --configure -a' para corrigir o problema.
Então eu tentei isso:
dpkg --purge openjdk-6-jre-headless
Eu tenho isso:
dpkg: dependency problems prevent removal of openjdk-6-jre-headless:
openjdk-6-jre-lib depends on openjdk-6-jre-headless (>= 6b17).
ca-certificates-java depends on openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless; however:
Package openjdk-6-jre-headless is to be removed.
Package java6-runtime-headless is not installed.
Package openjdk-6-jre-headless which provides java6-runtime-headless is to be removed.
ca-certificates-java depends on openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless; however:
Package openjdk-6-jre-headless is to be removed.
Package java6-runtime-headless is not installed.
Package openjdk-6-jre-headless which provides java6-runtime-headless is to be removed.
dpkg: error processing openjdk-6-jre-headless (--purge):
dependency problems - not removing
Errors were encountered while processing:
openjdk-6-jre-headless
A questão é que eu acho que meu DB está usando ... Não tenho certeza ... Estou usando o Cassandra com o Thrift ...
Sim, está ficando um pouco mais complexo ...
# dpkg --configure -a
Eu recebo:
dpkg: dependency problems prevent configuration of openjdk-6-jre:
openjdk-6-jre depends on openjdk-6-jre-headless (>= 6b20-1.9.7-0ubuntu1); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-jre (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
dpkg: dependency problems prevent configuration of libaccess-bridge-java:
libaccess-bridge-java depends on default-jre | openjdk-6-jre | sun-java6-jre; however:
Package default-jre is not installed.
Package openjdk-6-jre is not configured yet.
Package sun-java6-jre is not installed.
dpkg: error processing libaccess-bridge-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-6-jre-cacao:
icedtea-6-jre-cacao depends on openjdk-6-jre-headless (= 6b20-1.9.7-0ubuntu1); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing icedtea-6-jre-cacao (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libaccess-bridge-java-jni:
libaccess-bridge-java-jni depends on libaccess-bridge-java (>= 1.26.2-5); however:
Package libaccess-bridge-java is not configured yet.
dpkg: error processing libaccess-bridge-java-jni (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openjdk-6-jre
libaccess-bridge-java
icedtea-6-jre-cacao
libaccess-bridge-java-jni
Obrigado novamente por qualquer ajuda.
Ok, eu sei que isso é um problema antigo, mas eu o encontrei em um sistema (que obviamente não foi corrigido por algum tempo), e finalmente consegui trabalhar com ele:
dpkg --force-all -P openjdk-6-jre-headless
apt-get update
apt-get -f install
( --force-all
é importante)
Depois, eu poderia atualizar o sistema