# Error when installing elastic agent using M1 and Macos Sonoma

**URL:** <https://discuss.elastic.co/t/error-when-installing-elastic-agent-using-m1-and-macos-sonoma/358045>\
**Category:** Elastic Agent\
**Created:** [April 23, 2024, 4:09pm UTC](https://discuss.elastic.co/t/error-when-installing-elastic-agent-using-m1-and-macos-sonoma/358045 "2024-04-23T16:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwinda3678](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dwinda3678](https://discuss.elastic.co/u/dwinda3678)\
**Post date:** [April 23, 2024, 4:09pm UTC](https://discuss.elastic.co/t/error-when-installing-elastic-agent-using-m1-and-macos-sonoma/358045/1 "2024-04-23T16:09:49Z")

</div>

Hello, im trying to install an elastic agent with fleet using macos Sonoma, but the installation always failed and showing :

```auto
Error: failed to fix permissions: chown /Library/Elastic/Agent/data/elastic-agent-913c02/elastic-agent.app: operation not permitted

```

I was sucessfully installed it on the Monterey with no issues, what are the issues that currently happening? and why this happens only on Sonoma and Ventura OS ? Please help me..

Thank you
