smlnl

smlnl

Ubuntu 20.04 LTS - Elixir version update

Hello everyone,

I’ve got a problem that I cannot rectify.

I work on WSL - Windows 10, Ubuntu 20.04 LTS and elixir version is at 1.9.1. When I try to update the elixir to the latest version, I see the message saying something like “elixir is on the latest version”.

Do you guys have any experience around this ?

Any help would be appreciated.
Thanks,

Marked As Solved

smlnl

smlnl

sudo apt-get update OR upgrade

didn’t lead to anywhere. So what I did was going through the following again;

wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt update
sudo apt install esl-erlang
sudo apt install elixir

as in original installation documents.

and now I have

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.12.2 (compiled with Erlang/OTP 22)

Also Liked

dimitarvp

dimitarvp

There’s no mystery, Ubuntu 20.04 LTS is quite old (as the name says: Long Term Release) so the Elixir version is quite conservatively set there: Ubuntu – Details of package elixir in focal

I suggest you use asdf if you want to install higher versions, which is what almost everyone is doing anyway. :slight_smile:

odix67

odix67

according to the packages index, the current version of elixir is 1.9.1.dfsg-1.3, there is no newer version in focal-update, nor in focal-backports. Your installed version (OTP24/Elixir 12.2) seems to come from elsewhere.

Sebb

Sebb

I was looking for a guide to help get started and found this one:

But another guide here: Installation — nerves v1.11.3 in addition says

It is important to update the versions of hex and rebar used by Elixir, even if you already had Elixir installed.

mix local.hex
mix local.rebar

Is this needed or not?

eksperimental

eksperimental

Correct.
Now that i check I installed it with the following commands:

wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt update
sudo apt install esl-erlang
sudo apt install elixir
dimitarvp

dimitarvp

I think OP was looking for a solution involving apt-get but if they can utilize your method then that’s a win as well.

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement