Dnf update error

I use

NAME="Fedora Linux"
VERSION="42 (Workstation Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=42
VERSION_CODENAME=""
PLATFORM_ID="platform:f42"
PRETTY_NAME="Fedora Linux 42 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:42"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f42/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=42
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=42
SUPPORT_END=2026-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation

but I see

sudo dnf update -y 
Updating and loading repositories:
 Copr repo for distrobox owned by alciregi                                                                                                                                  100% | 146.0   B/s | 632.0   B |  00m04s
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/alciregi/distrobox/fedora-42-x86_64/repodata/repomd.xml (IP: 18.66.161.11) - https://download.copr.fedorainfracloud.org/results/alciregi
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/alciregi/distrobox/fedora-42-x86_64/repodata/repomd.xml (IP: 18.66.161.11) - https://download.copr.fedorainfracloud.org/results/alciregi
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/alciregi/distrobox/fedora-42-x86_64/repodata/repomd.xml (IP: 18.66.161.11) - https://download.copr.fedorainfracloud.org/results/alciregi
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/alciregi/distrobox/fedora-42-x86_64/repodata/repomd.xml (IP: 18.66.161.11) - https://download.copr.fedorainfracloud.org/results/alciregi
>>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried                                                                                                          
 Jenkins-stable                                                                                                                                                             100% |  13.1 KiB/s |  25.1 KiB |  00m02s
 Kubernetes                                                                                                                                                                 100% |   5.4 KiB/s |   6.4 KiB |  00m01s
>>> Status code: 403 for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml (IP: 142.250.185.46) - https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/rep
>>> Status code: 403 for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml (IP: 142.250.185.46) - https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/rep
>>> Status code: 403 for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml (IP: 142.250.185.46) - https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/rep
>>> Status code: 403 for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml (IP: 142.250.185.46) - https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/rep
>>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried                                                                                                          
 Fedora 42 - x86_64 - Updates                                                                                                                                               ???% |   0.0   B/s |   0.0   B |  00m00s
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 28 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 28 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 29 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 30 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 28 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 28 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 28 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 27 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 26 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 27 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 29 ms: Could not
>>> Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 26 ms: Could not
>>> Librepo error: Cannot prepare internal mirrorlist: Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirror
Failed to download metadata (metalink: "https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64") for repository "updates"
 Librepo error: Cannot prepare internal mirrorlist: Curl error (7): Could not connect to server for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 26 ms: Could not connect to server]

and this is my dnf.conf

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
fastestmirror=false
deltarpm=true

likely related to Fedora repos down and #F42 Error 503 when trying to update

see issue report here: Issue #12528: Cannot update software due to 503 on https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64 - fedora-infrastructure - Pagure.io

2 Likes

Use ipv4 to update

sudo dnf --setopt=ip_resolve=4 update
2 Likes