# Install logstash 5.1.2 from repository fails

**URL:** <https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547>\
**Category:** Logstash\
**Created:** [January 13, 2017, 4:59pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547 "2017-01-13T16:59:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asuhan](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@asuhan](https://discuss.elastic.co/u/asuhan)\
**Post date:** [January 13, 2017, 4:59pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547/1 "2017-01-13T16:59:18Z")

</div>

ubuntu 14.04  
configured logstash repo: deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main

apt-get install logstash  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
The following packages were automatically installed and are no longer required:  
linux-headers-3.13.0-105 linux-headers-3.13.0-105-generic  
linux-image-3.13.0-105-generic  
Use 'apt-get autoremove' to remove them.  
The following NEW packages will be installed:  
logstash  
0 upgraded, 1 newly installed, 0 to remove and 3 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 ... 155974 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/upstart.rb:10  
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-13T16:22:08.891000+0000", :message=\>"No platform selected. Autodetecting...", :platform=\>"upstart", :version=\>"1.12.1", :level=\>:warn}  
{:timestamp=\>"2017-01-13T16:22:08.942000+0000", :message=\>"Writing file", :destination=\>"/etc/init/.conf"}  
{:timestamp=\>"2017-01-13T16:22:08.951000+0000", :message=\>"Writing file", :destination=\>"/etc/default/"}  
Unable to install system startup script for Logstash.

# ls -la /etc/logstash

total 16  
drwxrwxr-x 3 root root 4096 Jan 13 16:56 .  
drwxr-xr-x 97 root root 4096 Jan 13 16:56 ..  
drwxrwxr-x 2 root root 4096 Jan 11 20:36 conf.d  
-rw-rw-r-- 1 root root 1334 Jan 11 20:31 log4j2.properties

---

<div class="post-metadata">

**Author:** ![asuhan](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@asuhan](https://discuss.elastic.co/u/asuhan)\
**Post date:** [January 13, 2017, 5:21pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547/2 "2017-01-13T17:21:35Z")

</div>

the ugly solution is to unpack /etc/logstash from deb file then apt-get install 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 13, 2017, 5:41pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547/3 "2017-01-13T17:41:58Z")

</div>

What was in `/etc/logstash` before you attempted the install? Was this an upgrade? Was there an older version of Logstash in place?

---

<div class="post-metadata">

**Author:** ![asuhan](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@asuhan](https://discuss.elastic.co/u/asuhan)\
**Post date:** [January 13, 2017, 5:56pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547/4 "2017-01-13T17:56:00Z")

</div>

initially system was running an old 2.3 version , cleaned apt-get remove and also any custom config , changed repo, apt-get update , then apt-get install .  
Maybe the deb format is not good for the version of ubuntu in my case.

---

<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 10, 2017, 5:56pm UTC](https://discuss.elastic.co/t/install-logstash-5-1-2-from-repository-fails/71547/5 "2017-02-10T17:56:06Z")

</div>

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