Info: after fresh installation of Rocky Linux 9.2 and trying 'sudo dnf update' getting a 'Curl error (35): SSL connect error'

Maybe there are others as stupid as me and do not find an article, which fits their issue:

As i mentioned above, clean Rocky Linux 9.2 Server
Added proxy settings to /etc/environment
(while installation i was confused about ‘pac script’ - didn’t enter the proxy there…)

tried to perform ‘sudo dnf update’

getting the following error message:
Rocky Linux 9 - BaseOS 31 kB/s | 1.9 MB 01:01
Rocky Linux 9 - AppStream 0.0 B/s | 0 B 00:02
Errors during downloading metadata for repository ‘appstream’:

  • Curl error (35): SSL connect error for ‘not allowed to post more than two links’ [error:0A00010B:SSL routines::wrong version number]
    Fehler: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for 'not allowed to post more than two links’mirrorlist?arch=x86_64&repo=AppStream-9 [error:0A00010B:SSL routines::wrong version number]

In short:
Curl error (35): SSL connect error - ‘wrong version number’

adding the proxy settings to /etc/dnf/dnf.conf:

In case i am posting obvious or wrong information, feel free to correct or delete this post!
I am more or less a newbie and maybe there are others who benefit from this.

Have a great day - you are awesome!

Hey - good on you for learning, and solving it yourself!

Yeah, it’s a little confusing, while dnf uses curl under the covers, it still has a separate option you have to set up for proxies, outside of the standard http_proxy environment variable(s).

Well done, and thanks for posting about it for others!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.