Fedora 34 sudo dnf upgrade fails

Hi,

When I go through the Qubes Updater, this happens:

Updating fedora-34

Error on updating fedora-34: Command '['sudo', 'qubesctl', '--skip-dom0', '--targets=fedora-34', '--show-output', 'state.sls', 'update.qubes-vm']' returned non-zero exit status 20
fedora-34:
-----------
ID: dnf-and-rpm
Function: pkg.installed
Result: True
Comment: All specified packages are already installed and are the desired version
Started: 21:28:39.563557
Duration: 1074.881 ms
Changes:
----------
ID: /usr/lib/rpm/macros.d/macros.qubes
Function: file.absent
Result: True
Comment: File /usr/lib/rpm/macros.d/macros.qubes is not present
Started: 21:28:40.642151
Duration: 0.908 ms
Changes:
----------
ID: dnf-makecache
Function: cmd.script
Result: False
Comment: Could not create DNF metadata cache
Started: 21:28:40.644067
Duration: 2299.092 ms
Changes:
----------
ID: update
Function: cmd.run
Name: /usr/lib/qubes/upgrades-status-notify
Result: False
Comment: Command "/usr/lib/qubes/upgrades-status-notify" run
Started: 21:28:42.944768
Duration: 2748.059 ms
Changes:
----------
pid: 1785
retcode: 1
stderr:
Error: Failed to download metadata for repo 'updates': Cannot prepare internal mirrorlist: Curl error (56) Failure when receiving data from the peer for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f34&arch=q86_64 [Recv failure: Connection reset by peer]
stdout:

Summary for fedora-34
----------
Succeeded: 2 (changed=1)
Failed: 3
----------
Total states run: 5
Total run time: 6.123 s

And when I go to terminal, I get this.

[user@fedora-34 ~]$ sudo dnf upgrade
Fedora 34 - x86_64 - Updates                    0.0  B/s |   0  B     00:01    
Errors during downloading metadata for repository 'updates':
  - Curl error (56): Failure when receiving data from the peer for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f34&arch=x86_64 [Recv failure: Connection reset by peer]
Error: Failed to download metadata for repo 'updates': Cannot prepare internal mirrorlist: Curl error (56): Failure when receiving data from the peer for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f34&arch=x86_64 [Recv failure: Connection reset by peer]

pls help
Thank you

I renamed the sys qubes and that turned out to be the issue.
Don’t do that.

2 Likes