Skip to content

Problems when installing on ubuntu 22.04 #92

@bogn83

Description

@bogn83

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions