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.