Skip to content

wget fails to retrieve https due to GnuTLS #2400

@GloriousEggroll

Description

@GloriousEggroll

Came across this issue while fiddling with umu inside fex on aarch64 fedora 42:

GnuTLS: The request is invalid.
Unable to establish SSL connection.

WhitewaterFoundry/Fedora-Remix-for-WSL#10

Workaround works here:
Append '--secure-protocol tlsv1' to your wget command:

        elif [ "${WINETRICKS_DOWNLOADER}" = "wget" ] ; then
            # Use -nd to insulate ourselves from people who set -x in WGETRC
            # [*] --retry-connrefused works around the broken sf.net mirroring
            # system when downloading corefonts
            # [*] --read-timeout is useful on the adobe server that doesn't
            # close the connection unless you tell it to (control-C or closing
            # the socket)

            # shellcheck disable=SC2086
            winetricks_wget_progress \
                -O "${_W_file}" \
                -nd \
                -c\
                --read-timeout 300 \
                --retry-connrefused \
                --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
                --tries "${WINETRICKS_DOWNLOADER_RETRIES}" \
                --header "Accept: */*" \
                ${_W_cookiejar:+--load-cookies "${_W_cookiejar}"} \
                ${_W_agent:+--user-agent="${_W_agent}"} \
                --secure-protocol tlsv1 \
                "${_W_url}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions