How to configure mirrors for template installation


This post is related with the previous one entitled “SSL certificate error when I download a template” where I explained that I got an error trying to install the debian10-minimal-template because the certificate has expired.

I’ve made some research and I’ve found that there are other mirrors available, as you can see in the link: Download Qubes OS | Qubes OS

I suppose there is a way to configure what mirror to use for template installation, and even to set more than one mirror, with some priority. Maybe there is a file to modify the configuration.

In the official documentation I’ve found information about changing the repo with the --enablerepo option, but nothing about changing the mirror.

I’ll appreciate some information about the issue.


Many problems that people have in Qubes are actually not Qubes specific.
This is one of those.
You can find guides online to enabling specific mirrors in fedora, and those
should help you.

If you look at the definitions in /etc/yum.repos.d/qubes-templates.repo,
you will see:

# baseurl = ...
metalink = ...

The metalink entry provides (among other things) a list of repository
mirrors, one of which is then used - can be configured to be the fastest
The baseurl specifies just one repository mirror to use.

So if you want to use a specific mirror, put its details on the baseurl
line, uncomment that line by removing the #, and comment out the
metalink line, by prepending a #.

1 Like

Thank you unman

I’ll try it.

I suspected it was Fedora specific. I have no experience with Fedora, I’m used to Debian and Ubuntu, but as you say I can find guides online about repos and mirrors in Fedora.

I appreciate your help.

Thank you