Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java7 will no longer install #5

Open
james-trigg opened this issue Aug 20, 2014 · 3 comments
Open

java7 will no longer install #5

james-trigg opened this issue Aug 20, 2014 · 3 comments

Comments

@james-trigg
Copy link

I had to upgrade to java8 in order for solr to work

@yauh
Copy link
Owner

yauh commented Aug 20, 2014

Perhaps the role this one depends on is broken? Do you have any logs for me to find a reason what went wrong?

@james-trigg
Copy link
Author

TASK: [oracle_java7 | Install packages] ***************************************
failed: [127.0.0.1] => (item=oracle-java7-installer,oracle-java7-set-default) => {"failed": true, "item": "oracle-java7-installer,oracle-java7-set-default"}
stderr: dpkg: regarding .../oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb containing oracle-java7-installer, pre-dependency problem:
oracle-java7-installer pre-depends on ca-certificates-java
ca-certificates-java is unpacked, but has never been configured.

dpkg: error processing archive /var/cache/apt/archives/oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb (--unpack):
pre-dependency problem - not installing oracle-java7-installer
Errors were encountered while processing:
/var/cache/apt/archives/oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

stdout: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
ca-certificates-java gsfonts gsfonts-x11 java-common libnspr4 libnss3
libnss3-nssdb
Suggested packages:
default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts
ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel
mozilla-firefox iceape-browser mozilla-browser epiphany-gecko
epiphany-webkit epiphany-browser galeon midbrowser moblin-web-browser
xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome
The following NEW packages will be installed:
ca-certificates-java gsfonts gsfonts-x11 java-common libnspr4 libnss3
libnss3-nssdb oracle-java7-installer oracle-java7-set-default
0 upgraded, 9 newly installed, 0 to remove and 90 not upgraded.
Need to get 4,754 kB of archives.
After this operation, 9,799 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libnspr4 amd64 2:4.10.2-1ubuntu1.1 [110 kB]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-installer all 7u67+7u60arm-0webupd82 [21.9 kB]
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-set-default all 7u67+7u60arm-0webupd82 [4,570 B]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libnss3-nssdb all 2:3.15.4-1ubuntu7 [10.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libnss3 amd64 2:3.15.4-1ubuntu7 [1,081 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main ca-certificates-java all 20130815ubuntu1 [13.4 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main java-common all 0.51 [130 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1 [3,374 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9,108 B]
Preconfiguring packages ...
Fetched 4,754 kB in 9s (483 kB/s)
Selecting previously unselected package libnspr4:amd64.
(Reading database ... 66388 files and directories currently installed.)
Preparing to unpack .../libnspr4_2%3a4.10.2-1ubuntu1.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.10.2-1ubuntu1.1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack .../libnss3-nssdb_2%3a3.15.4-1ubuntu7_all.deb ...
Unpacking libnss3-nssdb (2:3.15.4-1ubuntu7) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_2%3a3.15.4-1ubuntu7_amd64.deb ...
Unpacking libnss3:amd64 (2:3.15.4-1ubuntu7) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../ca-certificates-java_20130815ubuntu1_all.deb ...
Unpacking ca-certificates-java (20130815ubuntu1) ...
Selecting previously unselected package java-common.
Preparing to unpack .../java-common_0.51_all.deb ...
Unpacking java-common (0.51) ...
Processing triggers for ca-certificates (20130906ubuntu2) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libnspr4:amd64 (2:4.10.2-1ubuntu1.1) ...
Setting up libnss3-nssdb (2:3.15.4-1ubuntu7) ...
Setting up libnss3:amd64 (2:3.15.4-1ubuntu7) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Selecting previously unselected package oracle-java7-installer.

msg: 'apt-get install 'oracle-java7-installer' 'oracle-java7-set-default' ' failed: dpkg: regarding .../oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb containing oracle-java7-installer, pre-dependency problem:
oracle-java7-installer pre-depends on ca-certificates-java
ca-certificates-java is unpacked, but has never been configured.

dpkg: error processing archive /var/cache/apt/archives/oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb (--unpack):
pre-dependency problem - not installing oracle-java7-installer
Errors were encountered while processing:
/var/cache/apt/archives/oracle-java7-installer_7u67+7u60arm-0webupd82_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

FATAL: all hosts have already failed -- aborting

@james-trigg
Copy link
Author

however changing java7 to java8 in all the files fixed this problem with installing and also worked well with old VMs that had already been provisioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants