Failed to download metadata repo qubes-vm-r4.2-current

“Hi everyone”.

Few days ago I made a clean instalation of qubes 4.2.1 with deafault options with no errors but when I try to update fedora 39 or debian 12 I got errors:

In fedora 39 xfce: I get:
Error:Failed to download metadata for repo ‘qubes-vm-r4.2-current’ Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.

In Debian 12 xfce. I get:
Refreshing package info
Refreshing packages.
Fail to refresh InRelease: Index of /r4.2/vm/ bookworm InRelease from https://deb.qubes-os.org/r4.2/vm/dists/bookworm/InRelease
Refreshed.
W:Repository ‘Index of /debian bookworm InRelease’ changed its version value from ‘12.5’ to ‘12.6’, E:Failed to fetch https://deb.qubes-os.org/r4.2/vm/dists/bookworm/InRelease Reading from proxy faled-select (115:Operation now in progress)
[IP:127.0.0.1 8082] E:Some index files failed to download. they have been ignored, or old ones used instead.

What do I need to do?

Thanks for your valuable help.

Try to set the update proxy for your templates to sys-firewall if it’s set to sys-net (default).
Q → Qubes Global Config → Updates tab → Default update proxy
Maybe it’s an issue with IPv6 address assigned to your network interface in sys-net:

Thanks apparatus,
If I set sys-firewall to update templates may affect the security of the dom0 updates or does not affect it?

It shouldn’t affect it. The downloaded updates are checked in dom0 anyway.

Thank you very much “apparatus”

I change from sys-net to sys-firewall update proxy and that worked for me, now I can update templates. I also think it is an issue with IPv6 in sys-net network interface, it would be interesting to know how to fix this issue or in a future update.

Thanks ever so much.

If anyone figures out how/why IPv6 causes problems here, please let me know. It’s low on my research list, but I am still curious.

I guess the update proxy is configured to work only over IPv4 by default and sys-net is preferred to use IPv6 by default which is causing a mismatch and maybe for it to work you need to enable IPv6 in the qube:

But it’s just a guess, maybe enabling IPv6 won’t fix the issue because IPv6 support is missing in the update proxy.

On second thought the repository info from deb.debian.org was downloaded successfully so maybe it’s some issue with IPv6 on deb.qubes-os.org.