# Cannot install 2.1 from Debian repository

**URL:** <https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843>\
**Category:** Elasticsearch\
**Created:** [November 29, 2015, 8:07pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843 "2015-11-29T20:07:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_search](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@elastic\_search](https://discuss.elastic.co/u/elastic_search)\
**Post date:** [November 29, 2015, 8:07pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/1 "2015-11-29T20:07:22Z")

</div>

I'm trying to install ElasticSearch 2.1 on Ubuntu 14 following these instructions [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html.](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html)

I have followed the instructions exactly, but receive the error message "E: Unable to locate package elasticsearch."

Downloading 1.7 works fine (echo "deb [http://packages.elastic.co/elasticsearch/1.7/debian](http://packages.elastic.co/elasticsearch/1.7/debian) stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list). It is the 2.x version that is not working.

---

<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:** [November 29, 2015, 9:04pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/2 "2015-11-29T21:04:46Z")

</div>

Worked perfectly fine for me?

---

<div class="post-metadata">

**Author:** ![elastic\_search](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@elastic\_search](https://discuss.elastic.co/u/elastic_search)\
**Post date:** [November 29, 2015, 9:26pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/3 "2015-11-29T21:26:12Z")

</div>

I have tried it on a newly installed virtually machine and receive the same error message.

---

<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:** [November 29, 2015, 9:30pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/4 "2015-11-29T21:30:30Z")

</div>

[https://gist.github.com/markwalkom/337ac5ff2567ef3b8b0a](https://gist.github.com/markwalkom/337ac5ff2567ef3b8b0a) for my results

---

<div class="post-metadata">

**Author:** ![elastic\_search](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@elastic\_search](https://discuss.elastic.co/u/elastic_search)\
**Post date:** [November 29, 2015, 11:08pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/5 "2015-11-29T23:08:15Z")

</div>

Here are my results: [http://pastebin.com/raw.php?i=631eqvtF](http://pastebin.com/raw.php?i=631eqvtF)

It looks like the difference is that I am on a 32-bit architecture and yours is 64-bit.

---

<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:** [November 29, 2015, 11:09pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/6 "2015-11-29T23:09:06Z")

</div>

Oh, I don't know if we have 32 bit packages?

---

<div class="post-metadata">

**Author:** ![elastic\_search](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@elastic\_search](https://discuss.elastic.co/u/elastic_search)\
**Post date:** [November 29, 2015, 11:12pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/7 "2015-11-29T23:12:31Z")

</div>

Okay, thank you for the help, I'll install manually. Are there any plans to have 32-bit packages for the 2.x releases?

---

<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:** [November 29, 2015, 11:14pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/8 "2015-11-29T23:14:59Z")

</div>

I've asked the team, will see what they say.

---

<div class="post-metadata">

**Author:** ![elastic\_search](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@elastic\_search](https://discuss.elastic.co/u/elastic_search)\
**Post date:** [December 3, 2015, 2:27am UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/9 "2015-12-03T02:27:38Z")

</div>

Hi Mark, is there any update from the team?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [December 3, 2015, 2:47am UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/10 "2015-12-03T02:47:06Z")

</div>

We don't build 32bit packages. I'm not even sure whether Elasticsearch will work properly with a 32bit JVM. I'd download the tarball and test it before going to the next step.

---

<div class="post-metadata">

**Author:** ![tinle](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tinle](https://discuss.elastic.co/u/tinle)\
**Post date:** [December 3, 2015, 3:22am UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/11 "2015-12-03T03:22:16Z")

</div>

ES does work with 32bit JVM. At least up to v1.7.3.

$ java -version  
java version "1.8.0\_60"  
Java(TM) SE Runtime Environment (build 1.8.0\_60-b27)  
Java HotSpot(TM) Server VM (build 25.60-b23, mixed mode)  
$ uname -a  
Linux xxxxx 4.2.6-301.fc23.i686+PAE #1 SMP Fri Nov 20 22:42:36 UTC 2015 i686 i686 i386 GNU/Linux  
$ rpm -qav|grep -i elastic  
elasticsearch-1.7.3-1.noarch

Tin

---

<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:** [July 5, 2017, 11:34pm UTC](https://discuss.elastic.co/t/cannot-install-2-1-from-debian-repository/35843/12 "2017-07-05T23:34:01Z")

</div>


