DNF issue: fails fetching repositories in dom0

Hello. While trying to execute dnf commands on a freshy installed (without templates) Qubes,
I recieve a following error output:

Qubes OS Repository for Dom0

Errors duing downloading metadata for repository 'qubes-dom0-cached':

- Curl error (37): Couldn't read file:// or file:///var/lib/qubes/updates/repodata/repomd.xml [Couldn't open file /var/lib/qubes/updates/repodata/repomd.xml]

Error: Metadata downloading for repository qubes-dom0-cached failed: Can't download repmod.xml: All mirrors were tried.
Ignoring repositories: qubes-dom0-cached
Disolved the dependencies.
Nothing to do.

Be careful to install OS that you do not know much about in advance. It is quite different from GNU/Linux.

If you have no templates on a fresh installation, then presumably you chose the “expert” installation option, which means you have no sys-net or sys-firewall. Without these qubes, dom0 will not be able to install or update any packages. Indeed, the system as a whole will not have any network access.

1 Like

Hello. The dicumentation seem to have missing a part of installing and configuring internet connections (cable and wifi) in case of not having the templates installed.

The “expert” option intentionally doesn’t configure anything so that the expert user can configure things however he or she likes. It sounds like you should simply not choose the expert option and let the installer set things up normally. Then you should have Internet access out of the box without having to do anything.