Rocky 9 yum update Curl error

Hi,

I’m having an issue using yum/dnf on a new install of rocky.

Errors during downloading metadata for repository 'baseos':
  - Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Interrupted by signal

My internet connection is fine. I tried un-commenting the baseurl lines to no avail. Looks most similar to this post

You can test that specific url using curl direct

curl -v "https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9"

Looks like that also times out

* Failed to connect to mirrors.rockylinux.org port 443: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to mirrors.rockylinux.org port 443: Connection timed out

Do you have a network proxy or special firewall?

would an http proxy server affect this? is there a way to still use yum with that in place? apologies, still figuring this out.

Hi, added my proxy server to /etc/yum.conf config- found this link, thanks for your help pointing me in the right direction.

Caleb

Hi, I installed Rocky 9 and while doing dnf update or installing any package I am getting the below error

Error: Failed to download metadata for repo ‘baseos’: Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [error:0A00010B:SSL routines::wrong version number]

I found this topic to be related to my error.

Please do let me know if any information is available