# ANN Ubuntu PPA

**URL:** <https://discuss.elastic.co/t/ann-ubuntu-ppa/4288>\
**Category:** Elasticsearch\
**Created:** [April 25, 2011, 6:27pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288 "2011-04-25T18:27:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui\_Lopes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rui_lopes/32/2310_2.png) [@Rui\_Lopes](https://discuss.elastic.co/u/Rui_Lopes)\
**Post date:** [April 25, 2011, 6:27pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/1 "2011-04-25T18:27:20Z")

</div>

Hello,

I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its  
available at:

[https://launchpad.net/~rgl/+archive/elasticsearch](https://launchpad.net/~rgl/+archive/elasticsearch)

To use it, follow these steps (tested on Ubuntu Lucid 10.04):

sudo add-apt-repository ppa:rgl/elasticsearch  
sudo apt-get update  
sudo apt-get install openjdk-6-jre-headless  
sudo apt-get install elasticsearch  
sudo service elasticsearch status  
sudo tail -f /opt/elasticsearch/logs/elasticsearch.log  
gnome-open [http://localhost:9200](http://localhost:9200)

Let met known how it works for you!

Best regards,  
Rui Lopes

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [April 25, 2011, 9:18pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/2 "2011-04-25T21:18:04Z")

</div>

Hi Rui,

I tried to test it on my Ubuntu laptop but when I try to update apt, I get  
this warning :  
W: Impossible de récupérer  
[http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz)  
404 Not Found  
W: Impossible de récupérer  
[http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz)  
404 Not Found

Does it make sense to you ? Why are theses packages not found (404 error).

So, sudo apt-get install elasticsearch doesn't work...

I use Ubuntu 10.10 on i386 laptop.

Thanks  
David.

2011/4/25 Rui Lopes [rui.godinho.lopes@gmail.com](mailto:rui.godinho.lopes@gmail.com)

> Hello,
> 
> I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its  
> available at:
> 
> [elasticsearch : Rui Lopes](https://launchpad.net/~rgl/+archive/elasticsearch)[https://launchpad.net/~rgl/+archive/elasticsearch](https://launchpad.net/%7Ergl/+archive/elasticsearch)
> 
> To use it, follow these steps (tested on Ubuntu Lucid 10.04):
> 
> sudo add-apt-repository ppa:rgl/elasticsearch  
> sudo apt-get update  
> sudo apt-get install openjdk-6-jre-headless  
> sudo apt-get install elasticsearch  
> sudo service elasticsearch status  
> sudo tail -f /opt/elasticsearch/logs/elasticsearch.log  
> gnome-open [http://localhost:9200](http://localhost:9200)
> 
> Let met known how it works for you!
> 
> Best regards,  
> Rui Lopes

---

<div class="post-metadata">

**Author:** ![Rui\_Lopes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rui_lopes/32/2310_2.png) [@Rui\_Lopes](https://discuss.elastic.co/u/Rui_Lopes)\
**Post date:** [April 25, 2011, 10:06pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/3 "2011-04-25T22:06:34Z")

</div>

Hello David,

Its expected. I've only made packages for Ubuntu Lucid 10.04 (its the  
only version I use). In future I expect to have Ubuntu Natty Narwhal  
11.04 too... not for 10.10 though...

For 10.10 you have to try to manually install the debian package;  
something like:

sudo apt-get install jsvc curl  
curl -O [http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch\_0.16.0-0ubuntu1\_i386.deb](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1_i386.deb)  
sudo dpkg -i elasticsearch\_0.16.0-0ubuntu1\_i386.deb

If that does not work, I guess you can rebuild the package for 10.10.  
I'm not sure this is the right way, but in principle, you can do it  
with something like:

sudo apt-get install devscripts build-essential fakeroot dh-make  
dget [http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch\_0.16.0-0ubuntu1.dsc](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1.dsc)  
dpkg-source -x elasticsearch\_0.16.0-0ubuntu1.dsc # ignore signature checks...  
cd elasticsearch-0.16.0  
dpkg-buildpackage -rfakeroot  
sudo dpkg -i ../elasticsearch\_0.16.0-0ubuntu1\_i386.deb

I hope I didn't forget anything...

HTH.

Best regards,  
Rui Lopes

On Mon, Apr 25, 2011 at 22:18, David Pilato  
[david.pilato@douane.finances.gouv.fr](mailto:david.pilato@douane.finances.gouv.fr) wrote:

> Hi Rui,
> 
> I tried to test it on my Ubuntu laptop but when I try to update apt, I get  
> this warning :  
> W: Impossible de récupérer  
> [http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz)  
> 404 Not Found  
> W: Impossible de récupérer  
> [http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz)  
> 404 Not Found
> 
> Does it make sense to you ? Why are theses packages not found (404 error).
> 
> So, sudo apt-get install elasticsearch doesn't work...
> 
> I use Ubuntu 10.10 on i386 laptop.
> 
> Thanks  
> David.
> 
> 2011/4/25 Rui Lopes [rui.godinho.lopes@gmail.com](mailto:rui.godinho.lopes@gmail.com)
> 
> > Hello,
> > 
> > I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its  
> > available at:
> > 
> > [elasticsearch : Rui Lopes](https://launchpad.net/~rgl/+archive/elasticsearch)
> > 
> > To use it, follow these steps (tested on Ubuntu Lucid 10.04):
> > 
> > sudo add-apt-repository ppa:rgl/elasticsearch  
> > sudo apt-get update  
> > sudo apt-get install openjdk-6-jre-headless  
> > sudo apt-get install elasticsearch  
> > sudo service elasticsearch status  
> > sudo tail -f /opt/elasticsearch/logs/elasticsearch.log  
> > gnome-open [http://localhost:9200](http://localhost:9200)
> > 
> > Let met known how it works for you!
> > 
> > Best regards,  
> > Rui Lopes

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [April 26, 2011, 9:03pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/4 "2011-04-26T21:03:43Z")

</div>

Hi Rui,

For 10.10 you have to try to manually install the debian package;

> something like:
> 
> sudo apt-get install jsvc curl  
> curl -O  
> [http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch\_0.16.0-0ubuntu1\_i386.deb](http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1_i386.deb)  
> sudo dpkg -i elasticsearch\_0.16.0-0ubuntu1\_i386.deb

It's working fine. It's a pretty simple way to have elasticsearch as a  
service with start/stop/status commands.

Thanks for this packaging.

David.

---

<div class="post-metadata">

**Author:** ![philwhln](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philwhln/32/3121_2.png) [@philwhln](https://discuss.elastic.co/u/philwhln)\
**Post date:** [August 28, 2011, 12:12am UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/5 "2011-08-28T00:12:45Z")

</div>

Hi Rui,

I'd like to build a similar install for elasticsearch 0.17.5. Would you be able to share you build process for this PPA?

Thanks,  
Phil

---

<div class="post-metadata">

**Author:** ![Lee\_Hambley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lee_hambley/32/3120_2.png) [@Lee\_Hambley](https://discuss.elastic.co/u/Lee_Hambley)\
**Post date:** [September 23, 2011, 8:32am UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/6 "2011-09-23T08:32:43Z")

</div>

Hi Guys, did Rui ever share his PPA build? I need to put 0.17 to production today (who would guess `word_delimiter` doesn't exist in \<= 0.16!) And unless someone shared their build script, I guess I need to learn how to write package build scripts for Ubuntu!

Thanks,  
Lee

---

<div class="post-metadata">

**Author:** ![philwhln](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philwhln/32/3121_2.png) [@philwhln](https://discuss.elastic.co/u/philwhln)\
**Post date:** [September 23, 2011, 4:45pm UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/7 "2011-09-23T16:45:06Z")

</div>

Hi Lee,

I didn't hear anything back. This is my current build process....

wget  
[https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.5.tar.gz](https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.5.tar.gz)  
tar -zxvf elasticsearch-0.17.5.tar.gz  
mv elasticsearch-0.17.5 /opt/  
sudo mv elasticsearch-0.17.5 /opt/  
cd /opt/  
sudo ln -s elasticsearch-0.17.5 elasticsearch  
cd /tmp  
sudo apt-get install git-core  
git clone git://github.com/elasticsearch/elasticsearch-servicewrapper.git  
cp -r elasticsearch-servicewrapper/service /opt/elasticsearch/bin/  
sudo /opt/elasticsearch/bin/service/elasticsearch install  
sudo service elasticsearch start  
tail -F /opt/elasticsearch/wrapper.log

Cheers,  
Phil

Blog : [http://www.philwhln.com](http://www.philwhln.com)

---

<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 6, 2017, 3:53am UTC](https://discuss.elastic.co/t/ann-ubuntu-ppa/4288/8 "2017-07-06T03:53:42Z")

</div>


