# Unable to install specific version of Elasticsearch using apt-get Repository

**URL:** <https://discuss.elastic.co/t/unable-to-install-specific-version-of-elasticsearch-using-apt-get-repository/74947>\
**Category:** Elasticsearch\
**Created:** [February 14, 2017, 1:51am UTC](https://discuss.elastic.co/t/unable-to-install-specific-version-of-elasticsearch-using-apt-get-repository/74947 "2017-02-14T01:51:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gupta.yuvraj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gupta.yuvraj/32/7550_2.png) [@gupta.yuvraj](https://discuss.elastic.co/u/gupta.yuvraj)\
**Post date:** [February 14, 2017, 1:51am UTC](https://discuss.elastic.co/t/unable-to-install-specific-version-of-elasticsearch-using-apt-get-repository/74947/1 "2017-02-14T01:51:17Z")

</div>

Hi

I have been following the steps for installation of Elasticsearch as given.  
However, when using apt-get to install a specific version of Elasticsearch, it gives an error.

Steps Used:-

1. wget -qO - [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch) |  
sudo apt-key add -
2. sudo apt-get install apt-transport-https
3. echo "deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt)  
stable main" |  
sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

Now let's say I need to install Elasticsearch 5.1.1 then using the following command:

1. sudo apt-get update && sudo apt-get install elasticsearch=5.1.1

It gives an error that not found.

---

<div class="post-metadata">

**Author:** ![gupta.yuvraj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gupta.yuvraj/32/7550_2.png) [@gupta.yuvraj](https://discuss.elastic.co/u/gupta.yuvraj)\
**Post date:** [February 14, 2017, 11:24am UTC](https://discuss.elastic.co/t/unable-to-install-specific-version-of-elasticsearch-using-apt-get-repository/74947/2 "2017-02-14T11:24:00Z")

</div>

It is an issue which can be tracked at:-

> <https://github.com/elastic/elasticsearch/issues/21943>

---

<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:** [March 14, 2017, 11:24am UTC](https://discuss.elastic.co/t/unable-to-install-specific-version-of-elasticsearch-using-apt-get-repository/74947/3 "2017-03-14T11:24:36Z")

</div>

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