When trying to update Dom0 from cli - Unable to detect release version error appeared

When I try to run sudo qubes-dom0-update, am receiving:

Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time…
Unable to detect release version (use ‘–releasever’ to specify release version)
Fedora 37 - x86_64 11 kB/s | 22 kB 00:01
Fedora 37 - x86_64 - Updates 13 kB/s | 21 kB 00:01
Qubes Host Repository (updates) 1.9 kB/s | 2.7 kB 00:01
Dependencies resolved.
Nothing to do.
Complete!
Qubes OS Repository for Dom0 2.3 MB/s | 3.0 kB 00:00
Qubes OS Repository for Dom0 46 kB/s | 1.8 kB 00:00

When I try sudo qubes-dom0-update --releasever=4.2, I am getting:

Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time…
Unable to detect release version (use ‘–releasever’ to specify release version)
Fedora 37 - x86_64 8.6 kB/s | 22 kB 00:02
Fedora 37 - x86_64 - Updates 9.9 kB/s | 21 kB 00:02
Qubes Host Repository (updates) 975 B/s | 2.7 kB 00:02
Dependencies resolved.
Nothing to do.
Complete!
Qubes OS Repository for Dom0 2.9 MB/s | 3.0 kB 00:00
Qubes OS Repository for Dom0 51 kB/s | 1.8 kB 00:00

When I try sudo qubes-dom0-update --releasever=r4.2, I am receiving:

Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time…
Unable to detect release version (use ‘–releasever’ to specify release version)
Fedora 37 - x86_64 18 kB/s | 22 kB 00:01
Fedora 37 - x86_64 - Updates 18 kB/s | 21 kB 00:01
Qubes Host Repository (updates) 28 B/s | 153 B 00:05
Errors during downloading metadata for repository ‘qubes-dom0-current’:
- Status code: 404 for https://yum.qubes-os.org/rr4.2/current/host/fc37/repodata/repomd.xml.metalink (IP: 147.75.102.29)
Error: Failed to download metadata for repo ‘qubes-dom0-current’: Cannot prepare internal mirrorlist: Status code: 404 for https://yum.qubes-os.org/rr4.2/current/host/fc37/repodata/repomd.xml.metalink (IP: 147.75.102.29)

The minor version of Fedora I have in Qubes 4.2 is 38, and I already installed 39- template, and I do not use neither actually - all of my Qubes are based on Bookworm …

Why qubes-dom0-update is looking into the older version of Fedora as in Global Configuration my default Templates (and PHVs) are based on Debian 12?

Please, help to resolve.

Thanks,

Mara

dom0 deliberately uses an older version of Fedora. You just need to update your templates to a newer version because that’s where your application are and everything network related will happen.

Thanks a ton @DVM !