title: Erlang dependencies issue while installing RabbitMq on Ubuntu
body: <p>I am trying to install rabbitmq on my ubuntu version 16.04.5 machine.</p>
  
  <p>I followed multiple ways to install but getting some dependencies issues every time.</p>
  
  <p>I followed</p>
  
  <p><a href="https://tecadmin.net/install-erlang-on-ubuntu/" rel="nofollow noreferrer">https://tecadmin.net/install-erlang-on-ubuntu/</a></p>
  
  <p>and</p>
  
  <p><a href="https://stackoverflow.com/questions/44685813/how-do-i-install-a-specific-version-of-erlang/54474164#54474164">How do I install a specific version of erlang?</a></p>
  
  <p>Every time I am getting same error:</p>
  
  <pre><code>You might want to run 'apt-get -f install' to correct these:
  The following packages have unmet dependencies:
   erlang : Depends: erlang-diameter but it is not going to be installed
            Depends: erlang-eldap but it is not going to be installed
            Depends: erlang-ftp but it is not going to be installed
            Depends: erlang-tftp but it is not going to be installed
            Recommends: erlang-jinterface but it is not going to be installed
            Recommends: erlang-ic-java but it is not going to be installed
            Recommends: erlang-mode but it is not going to be installed
            Recommends: erlang-src but it is not going to be installed
            Recommends: erlang-examples but it is not going to be installed
   esl-erlang : Depends: libwxbase2.8-0 but it is not installable or
                         libwxbase3.0-0 but it is not installable or
                         libwxbase3.0-0v5 but it is not going to be installed
                Depends: libwxgtk2.8-0 but it is not installable or
                         libwxgtk3.0-0 but it is not installable or
                         libwxgtk3.0-0v5 but it is not going to be installed
                Depends: libsctp1 but it is not going to be installed
                Recommends: erlang-mode but it is not going to be installed
   rabbitmq-server : Depends: erlang-base (&gt;= 1:20.3) but it is not going to be installed or
                              erlang-base-hipe (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-crypto (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-eldap (&gt;= 1:20.3) but it is not going to be installed or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-inets (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-mnesia (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-os-mon (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-parsetools (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-public-key (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-runtime-tools (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-ssl (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-syntax-tools (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-tools (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: erlang-xmerl (&gt;= 1:20.3) or
                              esl-erlang (&gt;= 1:20.3)
                     Depends: socat but it is not going to be installed
  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
  </code></pre>