# Fail to install elasticsearch-8.2.0 on Ubuntu machine

**URL:** https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257
**Category:** Elasticsearch
**Created:** [May 9, 2022, 1:47pm UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257 "2022-05-09T13:47:53Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 9, 2022, 1:47pm UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/1 "2022-05-09T13:47:53Z")

</div>

I downloaded the `.tar.gz` file on a Ubuntu 16.04.1 LTS machine, and `shasum` output OK. After unzipping the file and running `./bin/elasticsearch`, the following error happens:

```auto
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /run/lxcfs/controllers/cpuset.
Error: Could not find or load main class [0.001s][warning][os,container]
Caused by: java.lang.ClassNotFoundException: [0/001s][warning][os,container]

```

What should I do?

---

<div class="post-metadata">

### Author: ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)
#### Post date: [May 9, 2022, 9:13pm UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/2 "2022-05-09T21:13:17Z")

</div>

Hi,

Since ES 8.0, Ubuntu 16.04 is no more supported,you have to upgrade the ubuntu or use a compatible version.

> **[Support Matrix](https://www.elastic.co/support/matrix)**

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 10, 2022, 12:19am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/3 "2022-05-10T00:19:18Z")

</div>

Welcome to our community! 😃

You should also really use the deb packages for Ubuntu. It contains a bunch more than just the product binaries, such as service files, standardised config and logging etc.

---

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 10, 2022, 3:14am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/4 "2022-05-10T03:14:42Z")

</div>

Same issue for `elasticsearch-7.17.3`, which supports Ubuntu-16.04 on this page.

---

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 10, 2022, 3:16am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/5 "2022-05-10T03:16:36Z")

</div>

I think I just need the binaries for developing. Do I have to install that? Also where can I download those deb packages.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 10, 2022, 3:17am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/6 "2022-05-10T03:17:51Z")

</div>

For developing what?

[Download Elasticsearch | Elastic](https://www.elastic.co/downloads/elasticsearch) is the download page for Elasticsearch.

---

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 10, 2022, 3:43am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/7 "2022-05-10T03:43:08Z")

</div>

I mean I have downloaded Elasticsearch. But I cannot set it up due to the above issue. Do I have to install the `deb packages for Ubuntu` as you mentioned?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 10, 2022, 3:44am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/8 "2022-05-10T03:44:03Z")

</div>

You don't need to, no.

Is there more to your Elasticsearch logs?

---

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 10, 2022, 3:47am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/9 "2022-05-10T03:47:13Z")

</div>

Here is the `logs/gc.log`. I cannot find any other logs.

```auto
[2022-05-10T03:13:23.944+0000][9391][gc,init] CardTable entry size: 512
[2022-05-10T03:13:23.944+0000][9391][gc] Using G1
[2022-05-10T03:13:24.014+0000][9391][gc,init] Version: 18+36 (release)
[2022-05-10T03:13:24.014+0000][9391][gc,init] CPUs: 40 total, 40 available
[2022-05-10T03:13:24.014+0000][9391][gc,init] Memory: 251G
[2022-05-10T03:13:24.014+0000][9391][gc,init] Large Page Support: Disabled
[2022-05-10T03:13:24.014+0000][9391][gc,init] NUMA Support: Disabled
[2022-05-10T03:13:24.014+0000][9391][gc,init] Compressed Oops: Enabled (Non-zero disjoint base)
[2022-05-10T03:13:24.014+0000][9391][gc,init] Heap Region Size: 16M
[2022-05-10T03:13:24.014+0000][9391][gc,init] Heap Min Capacity: 31G
[2022-05-10T03:13:24.014+0000][9391][gc,init] Heap Initial Capacity: 31G
[2022-05-10T03:13:24.014+0000][9391][gc,init] Heap Max Capacity: 31G
[2022-05-10T03:13:24.014+0000][9391][gc,init] Pre-touch: Disabled
[2022-05-10T03:13:24.014+0000][9391][gc,init] Parallel Workers: 28
[2022-05-10T03:13:24.014+0000][9391][gc,init] Concurrent Workers: 7
[2022-05-10T03:13:24.014+0000][9391][gc,init] Concurrent Refinement Workers: 28
[2022-05-10T03:13:24.014+0000][9391][gc,init] Periodic GC: Disabled
[2022-05-10T03:13:24.014+0000][9391][gc,metaspace] CDS archive(s) not mapped
[2022-05-10T03:13:24.014+0000][9391][gc,metaspace] Compressed class space mapped at: 0x0000000080000000-0x00000000c0000000, reserved size: 1073741824
[2022-05-10T03:13:24.014+0000][9391][gc,metaspace] Narrow klass base: 0x0000000000000000, Narrow klass shift: 0, Narrow klass range: 0xc0000000
[2022-05-10T03:13:24.113+0000][9391][gc,heap,exit] Heap
[2022-05-10T03:13:24.113+0000][9391][gc,heap,exit] garbage-first heap total 32505856K, used 24578K [0x0000001001000000, 0x00000017c1000000)
[2022-05-10T03:13:24.113+0000][9391][gc,heap,exit] region size 16384K, 2 young (32768K), 0 survivors (0K)
[2022-05-10T03:13:24.113+0000][9391][gc,heap,exit] Metaspace used 3481K, committed 3584K, reserved 1114112K
[2022-05-10T03:13:24.113+0000][9391][gc,heap,exit] class space used 263K, committed 320K, reserved 1048576K

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 10, 2022, 4:39am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/10 "2022-05-10T04:39:34Z")

</div>

When you run the Elasticsearch binary it should output something to the shell.

---

<div class="post-metadata">

### Author: ![namespace-Pt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namespace-pt/32/105443_2.png) [@namespace-Pt](https://discuss.elastic.co/u/namespace-Pt)
#### Post date: [May 10, 2022, 5:26am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/11 "2022-05-10T05:26:47Z")

</div>

Here is the output:

```auto
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /run/lxcfs/controllers/cpuset.
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /run/lxcfs/controllers/cpuset.
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /run/lxcfs/controllers/cpuset.
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /run/lxcfs/controllers/cpuset.
Error: Could not find or load main class [0.001s][warning][os,container]
Caused by: java.lang.ClassNotFoundException: [0/001s][warning][os,container]

```

---

<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: [June 7, 2022, 5:27am UTC](https://discuss.elastic.co/t/fail-to-install-elasticsearch-8-2-0-on-ubuntu-machine/304257/12 "2022-06-07T05:27:41Z")

</div>

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