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

I am not sure if I messed up the asdf installation, or if this is now showing the real problem:

$ chmod -R u+rwx ~/.asdf/
$ asdf install erlang 22.2.8
/home/user/.asdf/lib/commands/command-install.bash: line 111: get_plugin_path: command not found
/home/user/.asdf/lib/commands/command-install.bash: line 112: check_if_plugin_exists: command not found
/home/user/.asdf/lib/commands/command-install.bash: line 147: get_install_path: command not found
/home/user/.asdf/lib/commands/command-install.bash: line 149: get_download_path: command not found
mkdir: cannot create directory ‘’: No such file or directory
/home/user/.asdf/lib/commands/command-install.bash: line 188: asdf_run_hook: command not found
/bin/install: /bin/install: cannot execute binary file