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
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
You might be able to set it in ~/curlrc, though I never did it, as I consider it a risk.
NobbZ
If manually installing kerl as suggested by Adam does not work, please check ownership of the folder mentionend and its parents.
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?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









