# Wrong/old version downloaded from 2.x repository?

**URL:** <https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658>\
**Category:** Elasticsearch\
**Created:** [June 13, 2016, 7:55pm UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658 "2016-06-13T19:55:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [June 13, 2016, 7:55pm UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/1 "2016-06-13T19:55:22Z")

</div>

```
uname -a
Linux NetFlowDeb3 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) i686 GNU/Linux

```

I added the repository as per this:  
` wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -`  
` echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list`  
`apt-get install elasticsearch`

After I got elasticsearch up and running I installed kibana which has this to say from the web interface:

> plugin:elasticsearch:   
> This version of Kibana requires Elasticsearch ^2.3.0 on all nodes. I found the following incompatible nodes in your cluster: Elasticsearch v1.0.3 @ inet[localhost/127.0.0.1:9200] (127.0.1.1)

I confirmed this by doing `curl -XGET 'http://localhost:9200/_nodes'` and according to that it is ` "version": "1.0.3"`

Why did it download an outdated version from the repo?

This is running on an x86 machine, maybe this is the most up to date version for x86?

---

<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:** [June 13, 2016, 9:47pm UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/2 "2016-06-13T21:47:04Z")

</div>

What does `curl -XGET http://localhost:9200` and `curl -XGET http://localhost:9200/_cat/nodes` show?

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [June 14, 2016, 12:25am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/3 "2016-06-14T00:25:08Z")

</div>

Do you want the full output? I already said in the post `curl -XGET 'http://localhost:9200/_nodes'` shows the version is `"version": "1.0.3"`

`dpkg -l elasticsearch` also says that is the version

---

<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:** [June 14, 2016, 12:43am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/4 "2016-06-14T00:43:32Z")

</div>

> [@red888](#):
>
> Do you want the full output?

Yes please.

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [June 14, 2016, 12:57am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/5 "2016-06-14T00:57:22Z")

</div>

Anything responding on, say, port 9201?

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [June 14, 2016, 1:01am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/6 "2016-06-14T01:01:00Z")

</div>

I'll post the full output and check 9201 when I get in the office,

But out of curiosity why would I check that port? Seems to me like apt just pulled an old version from the repo.

What would you expect to find on 9201, a different elasticsearch version running in tandem?

---

<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:** [June 14, 2016, 1:04am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/7 "2016-06-14T01:04:13Z")

</div>

> [@red888](#):
>
> Seems to me like apt just pulled an old version from the repo.

Unlikely, 1.X was in it's own repo.  
There may be another node or even and LS running elsewhere.

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [June 14, 2016, 1:06am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/8 "2016-06-14T01:06:52Z")

</div>

> Seems to me like apt just pulled an old version from the repo.

[I don't see anything older than 1.6.0](https://packages.elastic.co/) [1]

> What would you expect to find on 9201, a different elasticsearch version running in tandem?

Yes.

By any chance did you happen to be using v 1.0.3 previously?

[1] [https://packages.elastic.co/](https://packages.elastic.co/)

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [June 14, 2016, 1:10am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/9 "2016-06-14T01:10:12Z")

</div>

No, I should have noted in the original post this is a completely fresh install- ES was not, nor was any other portion of ELK, previously installed on this box

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [June 14, 2016, 1:15am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/10 "2016-06-14T01:15:44Z")

</div>

You got it [from debian stable](https://packages.debian.org/jessie/elasticsearch) [1]

[1] [https://packages.debian.org/jessie/elasticsearch](https://packages.debian.org/jessie/elasticsearch)

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [June 14, 2016, 1:19am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/11 "2016-06-14T01:19:53Z")

</div>

Hmm, maybe I'm being dumb here but I don't understand what that means.

I ran the identical commands to install ES on another Debian box (but it is x64) and it installed 2.3.3 via `deb https://packages.elastic.co/elasticsearch/2.x/debian stable main`

edit: Oh wait, you mean it installed it from the Debian repository instead of the elastic repo? So maybe i didn't add the repo correctly or something I'll take a look at it when I have access to the box

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [June 14, 2016, 1:47am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/12 "2016-06-14T01:47:55Z")

</div>

> Hmm, maybe I'm being dumb here but I don't understand what that means.

It means that something went wrong such that when you reached the last stage

```auto
apt-get install elasticsearch

```

it installed from the default repos in your apt sources.list

---

<div class="post-metadata">

**Author:** ![traverse](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@traverse](https://discuss.elastic.co/u/traverse)\
**Post date:** [July 26, 2016, 4:59am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/13 "2016-07-26T04:59:42Z")

</div>

_UPDATE_ It's because the machine in question is 32bit, and no 32 bit package is available.

Did you ever find a solution to this? I'm running into a very similar situation, where I install the key, then save the repo.  
I then run "apt-get update", but when I run "apt-cache policy elasticsearch" I get:

> elasticsearch:  
> Installed: (none)  
> Candidate: 1.0.3+dfsg-5+deb8u1  
> Version table:  
> 1.0.3+dfsg-5+deb8u1 0  
> 500 [http://security.debian.org/](http://security.debian.org/) jessie/updates/main i386 Packages

If I run

> apt-get install -s elasticsearch

I get:

> Reading package lists... Done  
> Building dependency tree  
> Reading state information... Done  
> The following extra packages will be installed:  
> ant ant-optional libdom4j-java libhyperic-sigar-java libisorelax-java libjaxen-java libjdom1-java libjna-java libjna-jni libjts-java liblog4j1.2-java liblucene4-java libmsv-java librelaxng-datatype-java libspatial4j-java libxerces2-java libxml-commons-external-java  
> libxml-commons-resolver1.1-java libxom-java libxpp2-java libxpp3-java  
> Suggested packages:  
> ant-doc ant-gcj ant-optional-gcj antlr javacc junit jython libbcel-java libbsf-java libcommons-logging-java libcommons-net-java libmail-java libjaxp1.3-java libjdepend-java libjsch-java liboro-java libregexp-java libxalan2-java libdom4j-java-doc libjdom1-java-doc  
> libjna-java-doc libjts-java-doc liblog4j1.2-java-doc libxerces2-java-doc libxerces2-java-gcj libxml-commons-resolver1.1-java-doc libxom-java-doc  
> The following NEW packages will be installed:  
> ant ant-optional elasticsearch libdom4j-java libhyperic-sigar-java libisorelax-java libjaxen-java libjdom1-java libjna-java libjna-jni libjts-java liblog4j1.2-java liblucene4-java libmsv-java librelaxng-datatype-java libspatial4j-java libxerces2-java  
> libxml-commons-external-java libxml-commons-resolver1.1-java libxom-java libxpp2-java libxpp3-java  
> 0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.  
> Inst ant (1.9.4-3 Debian:8.5/stable [all])  
> Inst ant-optional (1.9.4-3 Debian:8.5/stable [all])  
> Inst libhyperic-sigar-java (1.6.4+dfsg-2 Debian:8.5/stable [i386])  
> Inst libjna-jni (4.1.0-1 Debian:8.5/stable [i386])  
> Inst libjna-java (4.1.0-1 Debian:8.5/stable [all])  
> Inst libjaxen-java (1.1.6-1 Debian:8.5/stable [all])  
> Inst libjdom1-java (1.1.3-1 Debian:8.5/stable [all])  
> Inst libxml-commons-resolver1.1-java (1.2-7 Debian:8.5/stable [all])  
> Inst libxml-commons-external-java (1.4.01-2 Debian:8.5/stable [all])  
> Inst libxerces2-java (2.11.0-7 Debian:8.5/stable [all])  
> Inst libjts-java (1.11-1 Debian:8.5/stable [all])  
> Inst liblog4j1.2-java (1.2.17-5 Debian:8.5/stable [all])  
> Inst liblucene4-java (1:4.6.1+dfsg-3 Debian:8.5/stable [all])  
> Inst libspatial4j-java (0.3-1 Debian:8.5/stable [all])  
> Inst elasticsearch (1.0.3+dfsg-5+deb8u1 Debian-Security:8/stable [all])  
> Inst libisorelax-java (20041111-8 Debian:8.5/stable [all])  
> Inst librelaxng-datatype-java (1.0+ds1-3 Debian:8.5/stable [all])  
> Inst libmsv-java (2009.1+dfsg1-4 Debian:8.5/stable [all])  
> Inst libxpp2-java (2.1.10-7 Debian:8.5/stable [all])  
> Inst libxpp3-java (1.1.4c-2 Debian:8.5/stable [all])  
> Inst libdom4j-java (1.6.1+dfsg.3-2 Debian:8.5/stable [all])  
> Inst libxom-java (1.2.10-1 Debian:8.5/stable [all])  
> Conf ant (1.9.4-3 Debian:8.5/stable [all])  
> Conf ant-optional (1.9.4-3 Debian:8.5/stable [all])  
> Conf libhyperic-sigar-java (1.6.4+dfsg-2 Debian:8.5/stable [i386])  
> Conf libjna-jni (4.1.0-1 Debian:8.5/stable [i386])  
> Conf libjna-java (4.1.0-1 Debian:8.5/stable [all])  
> Conf libjaxen-java (1.1.6-1 Debian:8.5/stable [all])  
> Conf libjdom1-java (1.1.3-1 Debian:8.5/stable [all])  
> Conf libxml-commons-resolver1.1-java (1.2-7 Debian:8.5/stable [all])  
> Conf libxml-commons-external-java (1.4.01-2 Debian:8.5/stable [all])  
> Conf libxerces2-java (2.11.0-7 Debian:8.5/stable [all])  
> Conf libjts-java (1.11-1 Debian:8.5/stable [all])  
> Conf liblog4j1.2-java (1.2.17-5 Debian:8.5/stable [all])  
> Conf liblucene4-java (1:4.6.1+dfsg-3 Debian:8.5/stable [all])  
> Conf libspatial4j-java (0.3-1 Debian:8.5/stable [all])  
> Conf elasticsearch (1.0.3+dfsg-5+deb8u1 Debian-Security:8/stable [all])  
> Conf libisorelax-java (20041111-8 Debian:8.5/stable [all])  
> Conf librelaxng-datatype-java (1.0+ds1-3 Debian:8.5/stable [all])  
> Conf libmsv-java (2009.1+dfsg1-4 Debian:8.5/stable [all])  
> Conf libxpp2-java (2.1.10-7 Debian:8.5/stable [all])  
> Conf libxpp3-java (1.1.4c-2 Debian:8.5/stable [all])  
> Conf libdom4j-java (1.6.1+dfsg.3-2 Debian:8.5/stable [all])  
> Conf libxom-java (1.2.10-1 Debian:8.5/stable [all])

No matter how many times I remove the key and repo and try to add them again, apt is unable to see any later version than the one in the jessie repo. Is there a way to force apt to pull down the newer version?

---

<div class="post-metadata">

**Author:** ![jettro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro/32/3418_2.png) [@jettro](https://discuss.elastic.co/u/jettro)\
**Post date:** [July 26, 2016, 6:51am UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/14 "2016-07-26T06:51:06Z")

</div>

Maybe this blogpost can help, it some tips on checking the cache and asking for a specific version with apt:  
[http://blog.andrewbeacock.com/2007/03/how-to-install-specific-version-of.html](http://blog.andrewbeacock.com/2007/03/how-to-install-specific-version-of.html)

---

<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, 10:33pm UTC](https://discuss.elastic.co/t/wrong-old-version-downloaded-from-2-x-repository/52658/15 "2017-07-05T22:33:00Z")

</div>


