Erlang can be installed on Ubuntu 25.04 or higher with apt by running this command:
sudo apt install erlang-dev rebar3
Earlier versions of Ubuntu have an older version of Erlang that are no longer supported by the Erlang team or by most Gleam package authors.