# Unable to install Elastic-search on SLES12 SP5 linux server

**URL:** <https://discuss.elastic.co/t/unable-to-install-elastic-search-on-sles12-sp5-linux-server/357444>\
**Category:** Elasticsearch\
**Created:** [April 15, 2024, 2:48pm UTC](https://discuss.elastic.co/t/unable-to-install-elastic-search-on-sles12-sp5-linux-server/357444 "2024-04-15T14:48:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjothili](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjothili/32/138805_2.png) [@sjothili](https://discuss.elastic.co/u/sjothili)\
**Post date:** [April 15, 2024, 2:48pm UTC](https://discuss.elastic.co/t/unable-to-install-elastic-search-on-sles12-sp5-linux-server/357444/1 "2024-04-15T14:48:16Z")

</div>

Hi,  
I am trying to install Elastic search service on SLES12 SP5 server using zypper. I am following this link to create repo and run the 'zypper' cmd to install the elasticsearch service. But the installation fails as its not able to find the url. Even I had proxy values, still it didnt work.

**elasticsearch.repo**  
[elasticsearch]  
name=Elasticsearch repository for 8.x packages  
baseurl=[https://artifacts.elastic.co/packages/8.x/yum](https://artifacts.elastic.co/packages/8.x/yum)  
gpgcheck=1  
gpgkey=[https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)  
enabled=0  
autorefresh=1  
type=rpm-md

**zypper refresh**  
Repository 'SLES12-SP5-Pool' is up to date.  
Repository 'SLES12-SP5-Updates' is up to date.  
Retrieving repository 'Elasticsearch repository for 8.x packages' metadata ----------------------------------------------------------------------------------------------------------

New repository or package signing key received:

Repository: Elasticsearch repository for 8.x packages  
Key Name: Elasticsearch (Elasticsearch Signing Key) [dev\_ops@elasticsearch.org](mailto:dev_ops@elasticsearch.org)  
Key Fingerprint: 46095ACC 8548582C 1A2699A9 D27D666C D88E42B4  
Key Created: Tue 05 Sep 2023 02:54:33 AM PDT  
Key Expires: (does not expire)  
Subkey: AB6B7FCB60D31954 2013-09-16 [does not expire]  
Rpm Name: gpg-pubkey-d88e42b4-64f6fad9

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): r  
Retrieving repository 'Elasticsearch repository for 8.x packages' metadata ......................................................................................................[error]  
Repository 'Elasticsearch repository for 8.x packages' is invalid.  
[elasticsearch|[https://artifacts.elastic.co/packages/8.x/yum](https://artifacts.elastic.co/packages/8.x/yum)] Valid metadata not found at specified URL  
Please check if the URIs defined for this repository are pointing to a valid repository.  
Skipping repository 'Elasticsearch repository for 8.x packages' because of the above error.  
Repository 'prod-xxxx-ec-sle-live-patching12-sp5-pool-x86\_64-hpc' is up to date.  
Repository 'prod-xxxx-ec-sle-module-hpc12-pool-x86\_64-hpc-sp5' is up to date.  
Repository 'prod-xxxx-ec-sle-module-legacy12-pool-x86\_64-hpc-sp5' is up to date.  
Repository 'prod-xxxx-ec-sle-module-toolchain12-pool-x86\_64-hpc-sp5' is up to date.  
Repository 'prod-xxxx-ec-sle-module-web-scripting12-pool-x86\_64-hpc-sp5' is up to date.  
Repository 'prod-xxxx-ec-sle-sdk12-sp5-pool-x86\_64-hpc' is up to date.  
Repository 'prod-xxxx-ec-sles12-sp5-kde-x86\_64-hpc' is up to date.  
Repository 'prod-xxxx-ec-sles12-sp5-pool-x86\_64-hpc' is up to date.  
Repository 'prod-xxxx-ec-sles12-sp5-thirdparty-x86\_64-hpc' is up to date.  
Some of the repositories have not been refreshed because of an error.
