Debian 8 openjdk-8-jre-headless instalação falha

0

Eu tenho uma VM que estou usando para testar coisas com o tomcat8. Desde então, meu PC tem o java8 instalado (e eu pessoalmente não quero voltar ao java7), eu tentei instalar o JRE 1.8 no "servidor" vm. Como estou rodando Debian 8 (Jessie), eu olhei como instalar e cheguei à conclusão (olhando para isso , por exemplo) que eu tive que usar

sudo apt-get install -t jessie-backports openjdk-8-jre-headless

Mas quando faço isso, recebo a seguinte mensagem de erro (que parece um erro HTTP para mim):

Reading package lists...
Building dependency tree...
Reading state information...
openjdk-8-jre-headless is already the newest version.
The following packages were automatically installed and are no longer required:
libfontenc1 libxfont1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 130 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up oracle-java8-installer (8u121-1~webupd8~2) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
converted 'http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz' (ANSI_X3.4-1968) -> 'http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz' (UTF-8)
--2017-03-23 12:03:57--  http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 95.101.114.65,95.101.114.75
Connecting to download.oracle.com (download.oracle.com)|95.101.114.65|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz [following]
converted 'https://edelivery.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz' (ANSI_X3.4-1968) -> 'https://edelivery.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz' (UTF-8)
--2017-03-23 12:03:58--  https://edelivery.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.23.14.19, 2001:41a8:26:18b::2d3e, 2001:41a8:26:19d::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.23.14.19|:443... failed: Connection refused.
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2001:41a8:26:18b::2d3e|:443... failed: Network is unreachable.
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2001:41a8:26:19d::2d3e|:443... failed: Network is unreachable.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   oracle-java8-installer

Como posso resolver isso?

    
por N. Silvestrin 23.03.2017 / 12:17

1 resposta

0

Da sua saída do apt-get, está claro que o JRE 8 do OpenJDK já está instalado.

A falha é causada pelo pacote diferente - oracle-java8-installer. Falha ao baixar os arquivos necessários, provavelmente porque você cancelou a instalação e a versão mais nova já está disponível.

Se você não quiser esse pacote, remova-o com apt-get remove <pkg> . Se você quiser que o Oracle JDK seja instalado lado a lado com o OpenJDK, remova-o também, faça apt-get update e finalmente apt-get install <pkg> para receber scripts de instalação mais recentes.

    
por 23.03.2017 / 13:10