Restore R4.0 to R4.1rc1 TemplateVM repo issue

TemplateVM’s backed up from Qubes OS R4.0.4 and that are restored on R4.1rc1 have Qubes specific repositories active that are meant for R4.0. This cause TemplateVMs to have older Qubes specific packages installed that may not be compatible with R4.1.

For example: sys-firewall based on (restored from 4.0) fedora-33 isn’t able to install new TemplateVM’s via qvm-template install... command

Location of these repos are:
for Fedora TemplateVM: /etc/yum.repos.d/qubes-r4.repo
for Debian TemplateVM: /etc/apt/sources.list.d/qubes-r4.repo

Example of restored TemplateVM

# Main qubes updates repository
deb [arch=amd64] https://deb.qubes-os.org/r4.0/vm bullseye main
#deb-src https://deb.qubes-os.org/r4.0/vm bullseye main

Exampe of installed by default/installed on R4.1

# Main qubes updates repository
deb [arch=amd64] https://deb.qubes-os.org/r4.1/vm bullseye main
#deb-src https://deb.qubes-os.org/r4.1/vm bullseye main

Is this wanted behavior?

Is this wanted behavior?

That’s a fine question.
“Wanted”? probably not, for most users.

Qubes restore doesn’t (currently) dig in to the contents of what is being
restored, so it is up to the user to change the repo definition, update,
and install 4.1 packages.
I don’t see this as any different from restoring a template from 4.0 to a
4.0.4 system - the user will have to update the packages in that case
too.

1 Like