# Unable to install logstash on Ubuntu 18.0.4 LTS

**URL:** <https://discuss.elastic.co/t/unable-to-install-logstash-on-ubuntu-18-0-4-lts/229515>\
**Category:** Logstash\
**Created:** [April 23, 2020, 4:35pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-on-ubuntu-18-0-4-lts/229515 "2020-04-23T16:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbhaxor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbhaxor/32/63588_2.png) [@tbhaxor](https://discuss.elastic.co/u/tbhaxor)\
**Post date:** [April 23, 2020, 4:35pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-on-ubuntu-18-0-4-lts/229515/1 "2020-04-23T16:35:56Z")

</div>

I was installing logstash 7.6.1 for opendistro compatibility. After downling the package from elastic artifacts, I am getting this error

```auto
Errno::EISDIR: Is a directory - /etc/default/logstash
          write at org/jruby/RubyIO.java:3804
          write at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/installer.rb:32
  install_files at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/installer.rb:23
          yield at org/jruby/RubyYielder.java:117
          files at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/platform/systemd.rb:24
           each at org/jruby/RubyGenerator.java:104
  install_files at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/installer.rb:18
      run_human at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:185
        execute at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:141
            run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
            run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.30/lib/pleaserun/cli.rb:114
            run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
         <main> at /usr/share/logstash/lib/systeminstall/pleasewrap.rb:12

```

If I delete the `/etc/default/logstash` directory and then reinstall the logstash, I get the dpkg error and it expects me to execute `dpkg --configure -a`. Upon configuring the packages, I get `/etc/default/logstash` does not exist.

---

<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:** [May 21, 2020, 4:36pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-on-ubuntu-18-0-4-lts/229515/2 "2020-05-21T16:36:01Z")

</div>

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