# Error installing 'oraclejdk8': "Expected feature release number in range of 9 to 14, but got: 8"

**URL:** https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766
**Category:** Environments
**Created:** [June 17, 2019, 3:56pm UTC](https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766 "2019-06-17T15:56:46Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![SomioNaArashi](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@SomioNaArashi](https://travis-ci.community/u/SomioNaArashi)
#### Post date: [July 20, 2019, 9:28am UTC](https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/6 "2019-07-20T09:28:17Z")

</div>

I’ve met the same problem those days, after tens of trials I found that this error is caused by the Ubuntu distribution used by task. For the one you stated as “working”, it’s running on **trusty** , and the errored one was running on **xenial**.

**TO FIX THIS** , add the following code to your .travis.yml file,

> dist: trusty

To manually appoint the Ubuntu distribution version.

~~trusty is trusty for real~~

---

_[View the full topic](https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766)._
