Fl4m3Ph03n1x

Fl4m3Ph03n1x

Installing erlang via asdf on Ubuntu fails after "Downloading kerl"

Background

I have a Ubuntu and I am trying to install erlang 22.2.8 via the asdf-erlang plugin.

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

Problem

In fact, I want to install any version of erlang, but none works.

$ asdf install erlang 22.2.8
Downloading kerl...
$

It stops after “Downloading kerl” and then nothing happens. Its like it fnished.
I have followed the steps before-asdf-install also before installing the plugin, but non the less this does not prevent the error.

How can I fix this?

Marked As Solved

Fl4m3Ph03n1x

Fl4m3Ph03n1x

First I tried adding the company certificates to my ssl permissions as described in this post:

However, even after that, it didn’t work. So I eventually decided to go with the risky option, which was to use the ~/.curlrc as you mentioned.

https://ec.haxx.se/cmdline/cmdline-configfile#default-config-file

After setting up this file and adding the -k option in it, it worked. I can now finally install the elixir and erlang versions I need to work.

It should be noted, as @NobbZ mentioned, this is a risk. In fact, this is a workaround and not really a solution.

However, for the time being, I will happily take it.

Also Liked

NobbZ

NobbZ

You might be able to set it in ~/curlrc, though I never did it, as I consider it a risk.

NobbZ

NobbZ

If manually installing kerl as suggested by Adam does not work, please check ownership of the folder mentionend and its parents.

adamzapasnik

adamzapasnik

Add -v (verbose) to curl -Lsov and see why it fails. I guess you have a problem with certs. At least, it would explain why your browser complaints.
Could you run sudo apt-get install -y ca-certificates?

NobbZ

NobbZ

You might try the manual installation and add -k to make curl continue even on insecure connections.

Where Next?

Popular in Questions Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
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
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
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
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
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
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
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New

We're in Beta

About us Mission Statement