Não é possível instalar nada com o sudo apt-get [duplicate]

0

Estou com esse erro há muito tempo e não consigo descobrir a solução. Sempre que eu estou tentando instalar qualquer coisa usando

$ sudo apt-get install <package>
Setting up oracle-java8-installer (8u111+8u111arm-1~webupd8~0) ... Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc Downloading Oracle Java 8...
--2018-02-09 17:00:08--  http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 106.51.144.109 Connecting to download.oracle.com (download.oracle.com)|106.51.144.109|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz [following]
--2018-02-09 17:00:08--  https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)...
104.122.10.148, 2600:140f:c000:189::2d3e, 2600:140f:c000:187::2d3e Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.122.10.148|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1518175928_00ed0e25d1821b70eb9e792e6c25a9bf [following]
--2018-02-09 17:00:08--  http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1518175928_00ed0e25d1821b70eb9e792e6c25a9bf Connecting to download.oracle.com (download.oracle.com)|106.51.144.109|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2018-02-09 17:00:08 ERROR 404: Not Found.

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 dpkg: dependency problems prevent configuration of oracle-java8-set-default:  oracle-java8-set-default depends on oracle-java8-installer; however:   Package oracle-java8-installer is not configured yet.

    dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfigured Errors were encountered while processing:  oracle-java8-installer  oracle-java8-set-default
dpkg: error processing package oracle-java8-set-default (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 oracle-java8-installer
 oracle-java8-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu tentei limpar o apt usando

sudo apt-get clean 

tentei remover tudo de /var/cache regarding oracle-java8 , mas sempre que tentei a pasta em /var/cache/oracle-java8-installer criada. Eu tentei remover todos os arquivos de bloqueio de /var/cache and var/lib/dpkg .

Eu também tentei

sudo apt-get -f install

não importa o que eu tente instalar usando sudo apt-get , esse erro aparece :(.

    
por Chirag Lalwani 09.02.2018 / 12:41

1 resposta

1

Isso parece mais com uma falha de rede.

Se tudo soar bem, você pode tentar instalar offline Instalando o Java Offline

Experimente também

sudo apt-get purge

para limpar a configuração

sudo apt-get update

deve listar todos os pacotes criados na metade do caminho.

    
por Sundar Rajan 09.02.2018 / 13:16