# Debian installation error

**URL:** <https://discuss.elastic.co/t/debian-installation-error/72432>\
**Category:** Logstash\
**Created:** [January 23, 2017, 5:38am UTC](https://discuss.elastic.co/t/debian-installation-error/72432 "2017-01-23T05:38:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_Sand](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jimmy\_Sand](https://discuss.elastic.co/u/Jimmy_Sand)\
**Post date:** [January 23, 2017, 5:38am UTC](https://discuss.elastic.co/t/debian-installation-error/72432/1 "2017-01-23T05:38:03Z")

</div>

Hi!  
I'm trying to install Logstash from online repository. Source added and key added too.  
Successfully downloaded and unpacked.  
When setup tries to set up logstash there many errors. I already spend 2 days for diggin it - no answers.  
Any help any suggestions?

> Debian 8.7

> :~$ java -version  
> java version "1.8.0\_121"  
> Java(TM) SE Runtime Environment (build 1.8.0\_121-b13)  
> Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

```
sudo apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  logstash
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/95.3 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Selecting previously unselected package logstash.
(Reading database ... 43711 files and directories currently installed.)
Preparing to unpack .../logstash_1%3a5.1.2-1_all.deb ...
Unpacking logstash (1:5.1.2-1) ...
Setting up logstash (1:5.1.2-1) ...
sed: can't read /etc/logstash/logstash.yml: No such file or directory
/etc/logstash/startup.options is not a file path
Errno::EISDIR: Is a directory - /etc/default/
          write at org/jruby/RubyIO.java:4058
          write at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:32
  install_files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:23
           call at org/jruby/RubyProc.java:281
          yield at org/jruby/RubyYielder.java:81
          files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/platform/systemd.rb:24
           call at org/jruby/RubyProc.java:281
           each at file:/usr/share/logstash/vendor/jruby/lib/jruby.jar!/jruby/kernel/jruby/generator.rb:246
  install_files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:18
      run_human at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/cli.rb:174
        execute at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/cli.rb:130
            run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
            run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132
         (root) at /usr/share/logstash/lib/systeminstall/pleasewrap.rb:12
{:timestamp=>"2017-01-23T10:28:14.019000+0500", :message=>"No platform selected. Autodetecting...", :platform=>"systemd", :version=>"215", :level=>:warn}
{:timestamp=>"2017-01-23T10:28:14.062000+0500", :message=>"Writing file", :destination=>"/etc/default/"}
Unable to install system startup script for Logstash.

```

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 23, 2017, 7:23am UTC](https://discuss.elastic.co/t/debian-installation-error/72432/2 "2017-01-23T07:23:13Z")

</div>

You have something very unusual going on in your system, as Logstash installs just fine for me on Debian and Ubuntu.

```auto
sed: can't read /etc/logstash/logstash.yml: No such file or directory
/etc/logstash/startup.options is not a file path

```

These lines indicate that the package did not install any files. The files were simply not found. I don't know if it was improperly downloaded or cached, or what, but it's certainly not working.

---

<div class="post-metadata">

**Author:** ![Jimmy\_Sand](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jimmy\_Sand](https://discuss.elastic.co/u/Jimmy_Sand)\
**Post date:** [January 25, 2017, 4:25am UTC](https://discuss.elastic.co/t/debian-installation-error/72432/3 "2017-01-25T04:25:16Z")

</div>

problem was in write access for some folders running under sudo.

---

<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:** [February 22, 2017, 4:25am UTC](https://discuss.elastic.co/t/debian-installation-error/72432/4 "2017-02-22T04:25:26Z")

</div>

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