The deb file available on download page work for both i686 and x64 BUT the package in the repo is only available for x64. This was the confusion which triggered this thread.
Hi,
I did included the elasticsearch repo in my sources.list file and ran an apt-get update but it doesn't get any list of packages from that repo.
/etc/apt/sources.list
root@ubuntu:~# tail /etc/apt/sources.list
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
Trying to install logstash, elasticsearch or kibana doesn't work.
ubuntu@ubuntu:~$ sudo apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package logstash
ubuntu@ubuntu:~$ sudo apt-get install kibana
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kibana
ubuntu@ubuntu:~$
any clue why?
UPDATE: Earlier I misunderstood that logstash,kibana and elasticsearch uses the same repo. I also had installed elasticsearch from deb package manually so I posted the attempts of installing kibana and logstash above because apt-get install elasticsearch wasn't producing the error instead claiming that it's already installed. Later I did removed the package and have shared the output error in 3rd reply below.
Sorry for the confusion. I actually had installed ES from deb manually so wasn't able to re-produce the error for ES package.
It doesn't have elasticsearch also
root@ubuntu:~# apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package elasticsearch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'elasticsearch' has no installation candidate
> root@ubuntu:~# apt-cache show elasticsearch
> Package: elasticsearch
> Status: deinstall ok config-files
> Priority: optional
> Section: web
> Installed-Size: 32069
> Maintainer: Elasticsearch Team <info@elastic.co>
> Architecture: all
> Version: 2.2.0
> Config-Version: 2.2.0
> Depends: libc6, adduser
> Conffiles:
> /etc/default/elasticsearch f1d48813644c5cf6fd516b04faee91ac
> /etc/elasticsearch/elasticsearch.yml dfcf42a2e9538d3f7fd13e74eb06a5fa
> /etc/elasticsearch/logging.yml cefdfff5b2d39ba0859898c66767da63
> /etc/init.d/elasticsearch 85c444de19040a28d62a343fbe3292b7
> /usr/lib/systemd/system/elasticsearch.service 7d341c1dd69e9543afa0aec072e65207
> Description: Elasticsearch is a distributed RESTful search engine built for the cloud. Reference documentation can be found at https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html and the 'Elasticsearch: The Definitive Guide' book can be found at https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
> Description-md5: 7a174b4a3b09460a7e934d813a44dbc0
> Homepage: https://www.elastic.co/
@warkolm I'm sorry for the confusion. If you pay attention I shared linked to the reply I already made. It's the 3rd reply. You can scroll up or see the enclosed quote.
Ubuntu's default repos and Logstash repo all others are working fine. I was able to install logstash from it's repo. Elastic's repo is also getting resolved properly.
root@ubuntu:~# apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@ubuntu:~# apt-get clean all
root@ubuntu:~# apt-get update
.....
.....
Ign http://packages.elastic.co stable InRelease
Ign http://packages.elastic.co stable InRelease
Hit http://packages.elastic.co stable Release.gpg
Hit http://packages.elastic.co stable Release.gpg
Hit http://packages.elastic.co stable Release
Hit http://packages.elastic.co stable Release
Hit http://packages.elastic.co stable/main i386 Packages
Hit http://packages.elastic.co stable/main i386 Packages
Ign http://packages.elastic.co stable/main Translation-en_US
Ign http://packages.elastic.co stable/main Translation-en
Ign http://packages.elastic.co stable/main Translation-en_US
Ign http://packages.elastic.co stable/main Translation-en
...
...
Fetched 752 kB in 15s (47.8 kB/s)
Reading package lists... Done
root@ubuntu:~#
root@ubuntu:~# apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package elasticsearch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'elasticsearch' has no installation candidate
root@ubuntu:~#
There were some remains of manual deb installation. Purging the deb completely has impact on the previosu results I've posted above.
Now it looks like the following
root@ubuntu:~# apt-cache show elasticsearch
N: Unable to locate package elasticsearch
E: No packages found
root@ubuntu:~# apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package elasticsearch
@warkolm apt-cache also doesn't show anything this time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.