Can't install any new software. Error: Failed to download metadata for repo 'updates': Yum repo downloading error

sudo dnf install restic

Fedora 33 - x86_64 - Updates 53 kB/s | 422 kB 00:07
Errors during downloading metadata for repository 'updates':
- Status code: 404 for https://mirror.dogado.de/fedora/linux/updates/33/Everything/x86_64/repodata/8a003d2f567957a45a6582ff855f6cb8a2a68034d297fff788600a3e4dfef071-prestodelta.xml.gz (IP: 185.3.234.216)
- Status code: 404 for http://fedora.mirror.wearetriple.com/linux/updates/33/Everything/x86_64/repodata/8a003d2f567957a45a6582ff855f6cb8a2a68034d297fff788600a3e4dfef071-prestodelta.xml.gz (IP: 93.187.10.106)
- Status code: 404 for https://fr2.rpmfind.net/linux/fedora/linux/updates/33/Everything/x86_64/repodata/84d14a6353d2405f70c26a4b87af6db301877c31199ce36da48ae1b29b3c4349-updateinfo.xml.xz (IP: 195.220.108.108)
...
Error: Failed to download metadata for repo 'updates': Yum repo downloading error: Downloading error(s): repodata/f88a7237fb0cff8664462050e150c9112f7f7d40b07fece52db400fd7280c0ea-primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/512365f80468f1e935096506390e29e2c014e0eeab4ba4ca07542e0aeaeacc74-filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/8a003d2f567957a45a6582ff855f6cb8a2a68034d297fff788600a3e4dfef071-prestodelta.xml.gz - Cannot download, all mirrors were already tried without success; repodata/84d14a6353d2405f70c26a4b87af6db301877c31199ce36da48ae1b29b3c4349-updateinfo.xml.xz - Cannot download, all mirrors were already tried without success

Contents of dnf.conf:

cat /etc/dnf/dnf.conf

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
zchunk=False

dnf clean fails with the same error:

sudo dnf clean all; sudo dnf makecache --refresh -v

Error: Failed to download metadata for repo 'updates': Yum repo downloading error: Downloading error(s): repodata/f88a7237fb0cff8664462050e150c9112f7f7d40b07fece52db400fd7280c0ea-primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/512365f80468f1e935096506390e29e2c014e0eeab4ba4ca07542e0aeaeacc74-filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/8a003d2f567957a45a6582ff855f6cb8a2a68034d297fff788600a3e4dfef071-prestodelta.xml.gz - Cannot download, all mirrors were already tried without success; repodata/84d14a6353d2405f70c26a4b87af6db301877c31199ce36da48ae1b29b3c4349-updateinfo.xml.xz - Cannot download, all mirrors were already tried without success

May try to add this in (/etc/dnf/dnf.conf):
fastestmirror=True

dnf upgrade and see if there is still an error.

Status code: 404 means cant find the Servers website.
Check also if DNS is correct and working.

1 Like

cat /etc/dnf/dnf.conf

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
zchunk=False
fastesmirror=True

sudo dnf upgrade

The same error:

Fedora 33 - x86_64 - Updates 56 kB/s | 422 kB 00:07
Errors during downloading metadata for repository ‘updates’:

What does the command resolvectl show. DNS is ok?

Looks ok.

resolvectl

Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.0.1
DNS Servers: 192.168.0.1

Link 3 (wlo1)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.0.1
DNS Servers: 192.168.0.1

Link 4 (virbr0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 5 (virbr0-nic)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

dig yahoo.com

; <<>> DiG 9.11.28-RedHat-9.11.28-1.fc33 <<>> yahoo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62500
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:

;; ANSWER SECTION:
yahoo.com. 593 IN A 74.6.231.21

;; Query time: 1 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Fri Mar 26 11:08:11 MSK 2021
;; MSG SIZE rcvd: 134

Ok.
sudo reboot changes nothing. Multiple reboots useless too.
But sudo shutdown, then wait for 9 hours, then power on the computer fixes the problem.

this is supposed to be fastestmirror=True (I fixed @dalto 's typo)

if you get a 404 on three different domains, I assume this was a DNS or general connectivity issue.

To try new mirors, it often helps to run dnf clean all, then dnf update

2 Likes

Thank you.

DNS looks ok, and internet works.

For me it not looks ok, generally you enter 2 DNS servers, when 1 not resolves the second serves as backup. Just put once DNS servers like 1.1.1.1, 1.0.0.1 to see if it works.

Afterwards you can change it again just check pls.

Like that?

$ cat /etc/resolv.conf

# nameserver 127.0.0.53
nameserver 1.1.1.1
options edns0 trust-ad

$ resolvectl

Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.0.1
DNS Servers: 192.168.0.1

Link 3 (wlo1)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.0.1
DNS Servers: 192.168.0.1

Link 4 (virbr0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 5 (virbr0-nic)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

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