Basically you have a three ways for Erlang install:
1 - U can try install Erlang by apt-get
, but for Ubuntu the version Erlang will be - 18:
$ sudo apt-get install esl-erlang
1.1 - If u cannot install Erlang, try remove Erlang from your computer before installing:
$ sudo apt-get remove esl-erlang
$ sudo apt-get install esl-erlang
2 - U can try download and install any Erlang versions, use Erlang Solutions https://www.erlang-solutions.com/resources/download.html, but you should know that in version 19+ you can receive the error WX Failed loading
- this mean that Erlang will be work but WX cannot be worked, but this can be also fixed, please follow the link https://elixirforum.com/t/observer-start-is-not-working-on-ubuntu/6018
3 - U can try use http://erlang.org/doc/installation_guide/INSTALL.html follow step by step, but please be sure that you downloaded the version for installation under the architecture of your processor - in other case you will can experience installation problems