Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when installing on ubuntu 22.04 #92

Open
bogn83 opened this issue Jun 15, 2024 · 0 comments
Open

Problems when installing on ubuntu 22.04 #92

bogn83 opened this issue Jun 15, 2024 · 0 comments

Comments

@bogn83
Copy link

bogn83 commented Jun 15, 2024

Thanks for your work on the postgres plugin.

I got rather confused and spent some time debugging when calling the following:

$ asdf install postgres 14
** Resuming transfer from byte position 146
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   146    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/home/bogn/.asdf/plugins/postgres/bin/download: line 38: fail: command not found

First I focused on the fail command which was a bit of a dead end. After some time I found out the file is a HTML page with a 404 text in it. Then I looked at the actually available versions and noticed that there's no notion of latest minor of a given version and specified one from asdf list-all postgres which made it work. Other plugins handle a wrongly passed version with a helpful error message like this:

ruby-build: definition not found: 3

Regarding the fail command please note:
The fail command which is called in the download bin (see error message in above code block), is not installed in ubuntu 22.04 and there are actually no package candidates for it. It's also not findable via dedicated search in the packages site.

tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"

I couldn't actually find out, where this command exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant