Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Instalacao java ubuntu 16.04

Olá, estou com problemas na instalacao do java no ubuntu. segue erro após executar:

sudo apt-get install default-jdk

*dpkg: error processing package openjdk-8-jdk:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-jre-dcevm:amd64: openjdk-8-jre-dcevm:amd64 depends on openjdk-8-jre-headless; however: Package openjdk-8-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-8-jre-dcevm:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-dbg:amd64: openjdk-8-dbg:amd64 depends on openjdk-8-jre-headless (= 8u131-b11-2ubuntu1.16.04.3); however: Package openjdk-8-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-8-dbg:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-demo: openjdk-8-demo depends on openjdk-8-jre (= 8u131-b11-2ubuntu1.16.04.3); however: PackNo apport report written because MaxReports is reached already age openjdk-8-jre:amd64 is not configured yet.

dpkg: error processing package openjdk-8-demo (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-jre-jamvm:amd64: openjdk-8-jre-jamvm:amd64 depends on openjdk-8-jre-headless (= 8u131-b11-2ubuntu1.16.04.3); however: Package openjdk-8-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-8-jre-jamvm:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-jre-zero:amd64: openjdk-8-jre-zero:amd64 depends on openjdk-8-jre-headless (= 8u131-b11-2ubuntu1.16.04.3); however: Package openjdk-8-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-8-jre-zero:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-source: openjdk-8-source depends on openjdk-8-jre (>= 8u131-b11-2ubuntu1.16.04.3); however: Package openjdk-8-jre:amd64 is not configured yet. openjdk-8-source depends on openjdk-8-jdk (>= 8u131-b11-2ubuntu1.16.04.3); however: Package openjdk-8-jdk:amd64 is not configured yet.

dpkg: error processing package openjdk-8-source (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jre-headless: default-jre-headless depends on openjdk-8-jre-headless; however: Package openjdk-8-jre-headless:amd64 is not configured yet.

dpkg: error processing package default-jre-headless (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jre: default-jre depends on default-jre-headless (= 2:1.8-56ubuntu2); however: Package default-jre-headless is not configured yet. default-jre depends on openjdk-8-jre; however: Package openjdk-8-jre:amd64 is not configured yet.

dpkg: error processing package default-jre (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jdk-headless: default-jdk-headless depends on default-jre-headless (= 2:1.8-56ubuntu2); however: Package default-jre-headless is not configured yet. default-jdk-headless depends on openjdk-8-jdk-headless; however: Package openjdk-8-jdk-headless:amd64 is not configured yet.

dpkg: error processing package default-jdk-headless (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jdk: default-jdk depends on default-jre (= 2:1.8-56ubuntu2); however: Package default-jre is not configured yet. default-jdk depends on default-jdk-headless (= 2:1.8-56ubuntu2); however: Package default-jdk-headless is not configured yet. default-jdk depends on openjdk-8-jdk; however: Package openjdk-8-jdk:amd64 is not configured yet.

dpkg: error processing package default-jdk (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: openjdk-8-jre-headless:amd64 openjdk-8-jre:amd64 openjdk-8-jdk-headless:amd64 openjdk-8-jdk:amd64 openjdk-8-jre-dcevm:amd64 openjdk-8-dbg:amd64 openjdk-8-demo openjdk-8-jre-jamvm:amd64 openjdk-8-jre-zero:amd64 openjdk-8-source default-jre-headless default-jre default-jdk-headless default-jdk E: Sub-process /usr/bin/dpkg returned an error code (1)*

passei a utilizar ubuntu a pouco tempo.

4 respostas

tentar fazer o update primeiro e depois tenta instalar.

sudo apt-get update

O Link abaixo é um tutorial de instalação do Java no Ubuntu 16.04.

Instação Java -Ubuntu 16.04

solução!

Tenta o seguinte também, pelo erro é questão de dependência

sudo apt-get -f install

depois faça uma atualização completa

sudo apt-get update && sudo apt-get upgrade -y

e então tente a instalação.

Obrigado pelas respostas. Consegui seguindo o link http://www.blogopcaolinux.com.br/2016/06/instalando-oracle-java-8-no-ubuntu-derivados-ppa.html

adicionando um novo repositório.