# Unable to install Elastic APM

**URL:** <https://discuss.elastic.co/t/unable-to-install-elastic-apm/358834>\
**Category:** Elastic Agent\
**Created:** [May 6, 2024, 1:17pm UTC](https://discuss.elastic.co/t/unable-to-install-elastic-apm/358834 "2024-05-06T13:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NNNNNNNNN](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@NNNNNNNNN](https://discuss.elastic.co/u/NNNNNNNNN)\
**Post date:** [May 6, 2024, 1:17pm UTC](https://discuss.elastic.co/t/unable-to-install-elastic-apm/358834/1 "2024-05-06T13:17:20Z")

</div>

Hello,

I am trying to install elastic with default token which has shown as part of elastic APM installation. I have ran below query:

in elastic observability lab the elastic pswd: JcRZwmwBPduguAu

Command:  
curl -L -O https ://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.8.2-linux-x86\_64.tar.gz tar xzvf elastic-agent-8.8.2-linux-x86\_64.tar.gz cd elastic-agent-8.8.2-linux-x86\_64  
sudo ./elastic-agent install --url=https ://fleet-server:8220 --enrollment-token=2f787217-fe89-406c-9770-3fa4dd5e5559 --certificate-authorities=/home/elastic/ca/ca.crt

Token:  
2f787217-fe89-406c-9770-3fa4dd5e5559

When i run the complete command its working till cd elastic-agent-8.8.2-linux-x86\_64 and showing prompt for crede for sudo ./elastic-agent install.

Here - fleet server was started on docker and command running in /home/elastic.

Please help to resolve or suggest other approach to install elastic APMagent ?

---

<div class="post-metadata">

**Author:** ![Gelinski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gelinski/32/142412_2.png) [@Gelinski](https://discuss.elastic.co/u/Gelinski)\
**Post date:** [June 13, 2024, 2:43am UTC](https://discuss.elastic.co/t/unable-to-install-elastic-apm/358834/2 "2024-06-13T02:43:58Z")

</div>

> [@NNNNNNNNN](#):
>
> sudo ./elastic-agent install --url=https ://fleet-server:8220 --enrollment-token=2f787217-fe89-406c-9770-3fa4dd5e5559 --certificate-authorities=/home/elastic/ca/ca.crt

Try changing the install command to the following:

```auto
sudo ./elastic-agent install --url=https ://fleet-server:8220 --enrollment-token=2f787217-fe89-406c-9770-3fa4dd5e5559== --certificate-authorities=/home/elastic/ca/ca.crt

```

The Fleet's token have an '==' at the end of it.
