# Logstash installation getting failed

**URL:** <https://discuss.elastic.co/t/logstash-installation-getting-failed/366889>\
**Category:** Logstash\
**Created:** [September 20, 2024, 7:24pm UTC](https://discuss.elastic.co/t/logstash-installation-getting-failed/366889 "2024-09-20T19:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErGeek](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@ErGeek](https://discuss.elastic.co/u/ErGeek)\
**Post date:** [September 20, 2024, 7:24pm UTC](https://discuss.elastic.co/t/logstash-installation-getting-failed/366889/1 "2024-09-20T19:24:57Z")

</div>

Hi ,

I have logstash 7.16.3 installed in my machine. If I try to remove this and install 8.x versions of logstash using the RPM files, the installation is getting failed with the below error. Could anyone please help on this?

error: unpacking of archive failed on file /usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-kafka-11.3.3-java/vendor/jar-dependencies/org/xerial/snappy/snappy-java/1.1.10.5/snappy-java-1.1.10.5.jar;66edc71f: cpio: read  
error: logstash-1:8.12.1-1.x86\_64: install failed

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [September 25, 2024, 12:48pm UTC](https://discuss.elastic.co/t/logstash-installation-getting-failed/366889/2 "2024-09-25T12:48:23Z")

</div>

Hi @ErGeek

**Were you able to completely remove Logstash 7.16.3 before attempting to install version 8.x?**

- If not, there might be old files causing conflicts during the installation. Removing all related directories could resolve this.

After that, what steps are you following until the failure occurs?
