# Cannot install v6 on Buster

**URL:** https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505
**Category:** Elasticsearch
**Created:** [July 21, 2019, 5:20am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505 "2019-07-21T05:20:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![1-2.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1-2.dev/32/51022_2.png) [@1-2.dev](https://discuss.elastic.co/u/1-2.dev)
#### Post date: [July 21, 2019, 5:20am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/1 "2019-07-21T05:20:16Z")

</div>

I am trying to install ES-6.8.1 on a fresh Debian (Buster) server. While v7\* installed fine, v6 doesn't:

```auto
Setting up elasticsearch (6.8.1) ...
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.base/javax.crypto.SecretKeyFactory.nextSpi(SecretKeyFactory.java:303)
        at java.base/javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:121)
        at java.base/javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:168)
        at org.elasticsearch.common.settings.KeyStoreWrapper.createCipher(KeyStoreWrapper.java:289)
        at org.elasticsearch.common.settings.KeyStoreWrapper.encrypt(KeyStoreWrapper.java:368)
        at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:477)
        at org.elasticsearch.common.settings.CreateKeyStoreCommand.execute(CreateKeyStoreCommand.java:58)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:41)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
        at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:120)
        ... 13 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
        at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:357)
        at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:111)
        at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:108)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:107)
        ... 13 more
dpkg: error processing package elasticsearch (--configure):
 installed elasticsearch package post-installation script subprocess returned error exit status 1

```

- = I am currently not able to use v7 due to some compatibility problems with a PHP script that we're using.

---

<div class="post-metadata">

### Author: ![1-2.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1-2.dev/32/51022_2.png) [@1-2.dev](https://discuss.elastic.co/u/1-2.dev)
#### Post date: [July 21, 2019, 6:20am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/2 "2019-07-21T06:20:46Z")

</div>

Fixed it, i guess. I've switched from OpenJDK 11 to Oracle JDK 12 and it installed without problems.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [July 21, 2019, 11:47am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/3 "2019-07-21T11:47:00Z")

</div>

I am not able to reproduce this. Can you confirm that you had the package `openjdk-11-jdk installed`? Can you share the directory listing of `/usr/lib/jvm/java-11-openjdk-amd64/conf/security/policy/unlimited` and the contents of the files that are in that directory?

---

<div class="post-metadata">

### Author: ![1-2.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1-2.dev/32/51022_2.png) [@1-2.dev](https://discuss.elastic.co/u/1-2.dev)
#### Post date: [July 22, 2019, 8:12pm UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/4 "2019-07-22T20:12:07Z")

</div>

OpenJDK was installed for sure. The server has been set-up a few minutes before. However, it works now with the Oracle JDK 12.

Ty anyways.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [July 23, 2019, 12:16am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/5 "2019-07-23T00:16:10Z")

</div>

Sure, I was hoping to troubleshoot the issue with JDK 11 on Buster in case there is a general issue that other users might encounter. If you can provide more information, that would be appreciated, but if not, I understand since we all just want to move on and get our jobs done.

---

<div class="post-metadata">

### Author: ![1-2.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1-2.dev/32/51022_2.png) [@1-2.dev](https://discuss.elastic.co/u/1-2.dev)
#### Post date: [July 26, 2019, 3:12pm UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/6 "2019-07-26T15:12:20Z")

</div>

I understand that. However, we've encountered this on a production server, so there's no way for me to reproduce this issue there, without breaking anything. But as soon as the sun allows me to access my computer (it's over 104 °F in my office), i'll try reproducing this in a test environment.

From what i can recall: I've installed ES7 first, noticed that my API is currently not compatible and removed ES7 (apt remove elasticsearch --purge). Then, i've installed openjdk11-jdk and tried installing ES6. I guess, that was the problem.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [July 27, 2019, 2:27am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/7 "2019-07-27T02:27:41Z")

</div>

Thanks. I tried your reproduction steps and the issue still did not reproduce for me.

---

<div class="post-metadata">

### Author: ![1-2.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1-2.dev/32/51022_2.png) [@1-2.dev](https://discuss.elastic.co/u/1-2.dev)
#### Post date: [July 29, 2019, 10:34am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/8 "2019-07-29T10:34:08Z")

</div>

Me neither. Tried to reproduce this on a fresh mashine, but it worked this time.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [July 31, 2019, 3:55am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/9 "2019-07-31T03:55:46Z")

</div>

Okay, thanks for trying. I’ll keep an eye out for issues like this.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 28, 2019, 4:04am UTC](https://discuss.elastic.co/t/cannot-install-v6-on-buster/191505/10 "2019-08-28T04:04:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
