# 'Unterminated quoted string' when installing elastic-agent

**URL:** <https://discuss.elastic.co/t/unterminated-quoted-string-when-installing-elastic-agent/367007>\
**Category:** Elastic Agent\
**Created:** [September 24, 2024, 5:06am UTC](https://discuss.elastic.co/t/unterminated-quoted-string-when-installing-elastic-agent/367007 "2024-09-24T05:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![turnerud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/turnerud/32/137820_2.png) [@turnerud](https://discuss.elastic.co/u/turnerud)\
**Post date:** [September 24, 2024, 5:06am UTC](https://discuss.elastic.co/t/unterminated-quoted-string-when-installing-elastic-agent/367007/1 "2024-09-24T05:06:20Z")

</div>

Getting this error when running the curl installation command on my VM. I'm running Kali Linux through UTM on a Mac.

"./elastic-agent: 3: Syntax error: Unterminated quoted string"

Couldn't see anything wrong with the config file but maybe I'm looking for the wrong thing? When I run the installation command it starts initially, runs through a bunch of files, asks for my password, and then gives me the error. Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![michael005](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@michael005](https://discuss.elastic.co/u/michael005)\
**Post date:** [October 5, 2024, 10:19pm UTC](https://discuss.elastic.co/t/unterminated-quoted-string-when-installing-elastic-agent/367007/2 "2024-10-05T22:19:43Z")

</div>

I had the same error and realized it was the architecture. I have Elastic setup on Ubuntu in VMware fusion on a Mac. While setting up a fleet server, the command to install an agent had x86-64. You have to change that to arm64. Hope that helps.
