# Is the elastic-agent 8.3.3 debian package broken?

**URL:** <https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [August 1, 2022, 4:10pm UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143 "2022-08-01T16:10:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanna/32/109117_2.png) [@hanna](https://discuss.elastic.co/u/hanna)\
**Post date:** [August 1, 2022, 4:10pm UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143/1 "2022-08-01T16:10:25Z")

</div>

Hello,

last friday I updated all of my elastic agents from 8.3.2 to 8.3.3 and unfortunately this broke my elastic-agent installations on Ubuntu.  
I used the debian package from this link [https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.3.3-amd64.deb](https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.3.3-amd64.deb) in order to make a fresh install, but when calling `elastic-agent enroll` I still get the same error message:

> `/usr/bin/elastic-agent: line 6: /usr/share/elastic-agent/bin/elastic-agent: No such file or directory`

When looking at the file `/usr/share/elastic-agent/bin/elastic-agent` I noticed the file points to `/usr/share/elastic-agent/elastic-agent-0ffbed/elastic-agent`, which does not exist.  
Here is the output of ls -l:

> ` lrwxrwxrwx 1 root root 59 Aug 1 16:01 /usr/share/elastic-agent/bin/elastic-agent -> /usr/share/elastic-agent/elastic-agent-0ffbed/elastic-agent`

For now I reinstalled version 8.3.2 but i would like to be able to update my elastic-agents to the latest version 🙂  
Is there a fix?

Any help will be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 2, 2022, 1:28pm UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143/2 "2022-08-02T13:28:08Z")

</div>

Hi @hanna Welcome to the community.

Interesting looks like that binary link is not correct.

I pinged the internal team, let's see if they come back with something.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 2, 2022, 2:20pm UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143/3 "2022-08-02T14:20:56Z")

</div>

Hiya @hanna Looks like you bumped into a known issue

> <https://github.com/elastic/elastic-agent/issues/803>
>
> \*\*Kibana version:\*\* 8.4 Snapshot Kibana cloud environment
> 
> \*\*Host OS and Brows…er version:\*\* All, All
> 
> \*\*Build Details:\*\*
> 
> \`\`\`
> Version: 8.4.0 SNAPSHOT
> Build: 54932
> Commit: 0645a3ba388f81fc6b43136e64ad53614101e947
> \`\`\`
> 
> \*\*Preconditions:\*\*
> 
> \- 8.4 Snapshot Kibana cloud environment should be available.
> \- Agent Policy should be created
> 
> \*\*Steps to reproduce:\*\*
> 
> 1. Navigate to Fleet\>Agents tab
> 2. Click on 'Add Agent' \> Select RPM or DEB platform
> 3. Run below commands for RPM:
> 
> \`\`\`
> curl -L -O https://snapshots.elastic.co/8.4.0-60171339/downloads/beats/elastic-agent/elastic-agent-8.4.0-SNAPSHOT-x86\_64.rpm
> sudo rpm -vi elastic-agent-8.4.0-SNAPSHOT-x86\_64.rpm
> sudo elastic-agent enroll --url=https://f52c5826f86a4b258a6eb766ec7bf914.fleet.us-west2.gcp.elastic-cloud.com:443 --enrollment-token=WXlxX1E0SUJXbTdoeWh2T1lfdVE6SFpIQWdwTlVTWGlzV1FSUkx6ajFHUQ== 
> \`\`\`
> 4. Observe that the error is shown while running enroll command
> 
> \*\*Expected Result:\*\*
> 
> \- User should be able to install RPM and DEB agents
> 
> \*\*What's not working:\*\* 
> 
> \- \*\*Enroll command also failed for DEB agent installation\*\*
> 
> \*\*Screenshots:\*\*
> 
> !\[image\](https://user-images.githubusercontent.com/97870262/181498252-79872324-78ba-4718-88a0-7b88c9354486.png)

The workaround for 8.3.3:

The temp fix

```auto
$ sudo unlink /usr/share/elastic-agent/bin/elastic-agent
$ sudo ln -s /var/lib/elastic-agent/data/elastic-agent-0ffbed/elastic-agent /usr/share/elastic-agent/bin/elastic-agent

```

---

<div class="post-metadata">

**Author:** ![hanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanna/32/109117_2.png) [@hanna](https://discuss.elastic.co/u/hanna)\
**Post date:** [August 3, 2022, 8:26am UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143/4 "2022-08-03T08:26:43Z")

</div>

Thanks a lot @stephenb ! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2022, 8:27am UTC](https://discuss.elastic.co/t/is-the-elastic-agent-8-3-3-debian-package-broken/311143/5 "2022-08-31T08:27:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
