Getting error: Unable to load crypto library.. OpenSSL might not be installed on this system

You have to learn to use asdf or mise or any other of this management tools anyway.

So even after a reinstallation, chances are that you will have the same problem with the same project, as the pinned tools didn’t actually change.

1 Like

I have read through what you sent me and it’s a lot of wonderful information that is very helpful. I’m now curious could it be possible to upgrade to 0.16.0 of asdf and fully upgrade applications like vsc which have been giving me problems.

Upgrading asdf is very likely possible. Details depends on how it got installed in the first place.

Also upgrades of other applications depends on how they initially got installed.

Most system software should be upgradeable through sudo apt-get update && sudo apt-get upgrade, but some software might have been installed by other means than apt. And that changes how the software gets updated.

This is really not within the scope of this forum.

1 Like

I will do that, I will let you know how it turns out of trying to update asdf and my applications. I have to keep reading about said tool manager, I also don’t know how it was installed.

dev@dev:~$ which asdf
/home/dev/.asdf/bin/asdf
dev@dev:~$ sudo apt update asdf
E: The update command takes no arguments
dev@dev:~$ sudo apt upgrade asdf
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package asdf
dev@dev:\~$ sudo apt full-upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
Get more security updates through Ubuntu Pro with ‘esm-apps’ enabled:
vlc-plugin-qt libvlc5 libpostproc-dev libzvbi-common vlc-data libvlccore9
vlc python3-virtualenv vlc-bin libcjson1 libavdevice60 libpostproc57
libswscale-dev libsvn1 libavdevice-dev libavcodec60
libgstreamer-plugins-bad1.0-0 libzvbi0t64 libavutil58 libswscale7
libavutil-dev libswresample4 vlc-plugin-video-output libavfilter-dev
rapidjson-dev 7zip libavformat60 gstreamer1.0-plugins-bad libvlccore-dev
libavformat-dev libavcodec-dev subversion libvlc-bin libvlc-dev
libswresample-dev vlc-plugin-base libavfilter9
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following upgrades have been deferred due to phasing:
bsdextrautils bsdutils eject fdisk libblkid-dev libblkid1 libfdisk1
libmbim-glib4 libmbim-proxy libmbim-utils libmount-dev libmount1
libnss-systemd libpam-systemd libpipewire-0.3-0t64 libpipewire-0.3-common
libpipewire-0.3-modules libsmartcols1 libspa-0.2-bluetooth
libspa-0.2-modules libsystemd-shared libsystemd0 libudev-dev libudev1
libuuid1 mount pipewire pipewire-bin pipewire-pulse rfkill systemd
systemd-dev systemd-resolved systemd-sysv systemd-timesyncd udev util-linux
uuid-dev uuid-runtime
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
dev@dev:~$ which asdf
/home/dev/.asdf/bin/asdf
dev@dev:~$ asdf --version
v0.15.0-31e8c93
dev@dev:~$ cd ~/,asdf
bash: cd: /home/dev/,asdf: No such file or directory
dev@dev:~$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.


git pull <remote> <branch>


If you wish to set tracking information for this branch you can do so with:


git branch --set-upstream-to=<remote>/<branch> master

dev@dev:~$ exec $shell
dev@dev:~$ asdf list
elixir
1.14
*1.14.3-otp-25
erlang
*25.2.3
dev@dev:~$ asdf latest elixir
1.19.4-otp-25
dev@dev:~$ asdf install elixir latest
==> Checking whether specified Elixir release exists…
==> Elixir version not found.

Hex.pm returned a 404 for the following URL:

https://builds.hex.pm/builds/elixir/v1.19.4-otp-25.zip

You can view a list of all Elixir releases by running ‘asdf list all elixir’.

Note: If you want to download a specific release of Elixir, please
specify the full version number (e.g. 1.2.1 instead of 1.3).
dev@dev:\~$ asdf global elixir latest
version 1.19.4-otp-25 is not installed for elixir

This is exactly what happened when i tried to update asdf

I see that you are overwhelmed by all the information. Maybe you want to take a step back and ask yourself do you really need asdf. Asdf is a tool to manage multiple erlang/elxir versions. Do you want to switch back and forth on elixir versions?

If you just want to get a phoenix dev system up, I suggest you to consider an easier path. You are on a fairly recent Ubuntu, and I am sure it comes with a decent Erlang (likely 26), which is just apt install erlang away. Elixir is more niche so the Ubuntu version might be quite old. However, Elixir is dead simple to compile: very few dependencies, only take a few minutes. Remember, you are on linux, the home court of free software. Everything is compile-able.

Also, you don’t need the latest and greatest of erlang or elixir. My production is still using erlang 25 and elixir 1.14 and I am in no hurry to upgrade.

I’ll take it into consideration and I’ll get back to you by the way I’m still learning about asdf and tool managers.

I will be thankful to anyone who can take their time to help me with this issue, I can’t do any web development unless I fix it. I have tried updating my asdf, I have tried to install and fix openssl multiple times.

You should follow the advice given above and read the documentation of asdf to understand how to use the tool properly.

You’re probably running an asdf version less than < 0.16.0 which uses bash scripts, after that it’s rewritten in golang and it’s a single binary that you can download from github releases. You should read the upgrade guide.

Even without that, it should be possible to install a new version of erlang. try

asdf install erlang 27.3.3

and

asdf install elixir 1.18.3

If they fail. you need to upgrade your asdf and install the proper extensions.

That being said, I recently compiled an app in Ubuntu 20.04 and tried to run it in Ubuntu 22.10 which gave me the same error. I installed libssl1.1 just for test (it’s not recommanded).

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo apt install ./libssl1.1_1.1.1f-1ubuntu2_amd64.deb

I have already tried to update Erlang and Elixir and it stated they were up to date. I have read the guide about the tool manager of Asdf, Now I can try to update it if that doesn’t work then I’m reformatting my PC.

  1. update asdf as per the instructions on their website
  2. update the erlang and elixir and maybe node plugins for asdf, such that they will then be aware of newer releases
  3. update the individual toolchains, but if there is a .tool-versions file in your project requesting certain versions, than that has very likely a reason, and before you update random things, you should be sure to udnerstand the consequences!

You are not understanding here I think. With asdf / mise you can install any version you like; you don’t tell those tools “please update Elixir”. You are saying you have read the documentation but it seems that this rather crucial aspect is still escaping you.

1 Like

It was an idea now I’m to the point of maybe reinstalling asdf as it could be botched