Qubes Updater: "jinja.py: No such file or directory"

When I’m trying to update all of my templates with Qubes Updater I have the following error :

Error on updating fedora-33: Command '['sudo', 'qubesctl', '--skip-dom0', '--targets=fedora-33', '--show-output', 'state.sls', 'update.qubes-vm']' returned non-zero exit status 2.
fedora-33:
  sed: can't read /usr/lib/python3*/site-packages/salt/utils/jinja.py: No such file or directory

Always (in such cases) try to install updates manually from dom0 terminal with

sudo qubes-dom0-update qubes-template-fedora-33

just to perform a next update with the Qubes Updater again.

So I tried it in my dom0 terminal :

sudo qubes-dom0-update qubes-template-fedora-33

Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0                    2.9 MB/s | 3.0 kB     00:00    
All matches were filtered out by exclude filtering for argument: qubes-template-fedora-33
Error: Unable to find a match: qubes-template-fedora-33
sudo qubes-dom0-update fedora-33

Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0                    2.9 MB/s | 3.0 kB     00:00    
No match for argument: fedora-33
Error: Unable to find a match: fedora-33

(updated the title to be more specific about the issue at hand)

This error comes from a fix in testing - Debian based qubes don’t use
site-packages so that call to sed fails. It’s a known issue.

If you want to update fedora-33, then either change the template for
your global management_dispvm to Fedora, or change the management_dispvm
for your fedora templates to a fedora based DisposableVM Template.

1 Like

Perfect thank you !