title: Problems installing Nginx+Rtmp on ubuntu 14.04
body: <p>Unsuccessfully can't complete the installation using this guide: <code>https://docs.peer5.com/guides/setting-up-hls-live-streaming-server-using-nginx/</code> 
  I always when to try push stream from other server using FFmpeg I get TCP&amp;RTMP error.</p>
  
  <p><a href="https://i.stack.imgur.com/fZDrH.png" rel="nofollow noreferrer">The Error screenshot</a></p>
  
  <p>I'm installing nginx using these commands:</p>
  
  <pre><code>    apt-get update
  
      sudo apt install nginx
  
      sudo apt install libnginx-mod-rtmp
  
      apt install git
  
      cd /usr/src
      git clone git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
  
  sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
  
  wget http://nginx.org/download/nginx-1.10.1.tar.gz
  tar -xf nginx-1.10.1.tar.gz
  cd nginx-1.10.1
  
  ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module
  make -j 1
  sudo make install
  
  conf file
  
      nano /etc/nginx/nginx.conf
  </code></pre>
  
  <p>for this command <code>sudo apt install libnginx-mod-rtmp</code> i get this error `E: Unable to locate package libnginx-mod-rtmp</p>
  
  <p>And here is my Nginx conf file very simple:</p>
  
  <pre><code>worker_processes  auto;
  events {
      worker_connections  1024;
  }
  
  # RTMP configuration
  rtmp {
      server {
          listen 1935; # Listen on standard RTMP port
          chunk_size 4000;
  
          application show {
              live on;
              # Turn on HLS
              hls on;
              hls_path /mnt/hls/;
              hls_fragment 3;
              hls_playlist_length 60;
              # disable consuming the stream from nginx as rtmp
              deny play all;
          }
      }
  }
  
  http {
      sendfile off;
      tcp_nopush on;
      directio 512;
      default_type application/octet-stream;
  
      server {
          listen 8080;
  
          location / {
              # Disable cache
              add_header 'Cache-Control' 'no-cache';
  
              # CORS setup
              add_header 'Access-Control-Allow-Origin' '*' always;
              add_header 'Access-Control-Expose-Headers' 'Content-Length';
  
              # allow CORS preflight requests
              if ($request_method = 'OPTIONS') {
                  add_header 'Access-Control-Allow-Origin' '*';
                  add_header 'Access-Control-Max-Age' 1728000;
                  add_header 'Content-Type' 'text/plain charset=UTF-8';
                  add_header 'Content-Length' 0;
                  return 204;
              }
  
              types {
                  application/dash+xml mpd;
                  application/vnd.apple.mpegurl m3u8;
                  video/mp2t ts;
              }
  
              root /mnt/;
          }
      }
  }
  </code></pre>
  
  <p>Asking for your expertise to guide me the right solution, regards</p>