*** UPDATE ***
Even after a complete reinstall of QubesOS and starting clean, I am unable to download ANY template.
The post below shows fedora-35-minimal but I also just tried debian-11-minimal and the error is the same.
I even tried installing the kernel-latest weekly build by fepitre : QubesOS 4.1 (alpha) Signed Weekly Builds
Note: the updatevm doesn’t make a difference (tried sys-firewall, sys-whonix, sys-vpn)
Old post below:
I tried the following commands (as well as qvm-template
directly) but they always result in the error message reported below.
[user@dom0 ~]$ sudo qubes-dom0-update --enablerepo=qubes-templates-itl-testing qubes-template-fedora-35-minimal
[user@dom0 ~]$ sudo qubes-dom0-update --action=reinstall --enablerepo=qubes-templates-itl-testing qubes-template-fedora-35-minimal
Installing template 'fedora-35-minimal'...
fedora-35-minimal: Importing data
Traceback (most recent call last):
File "/usr/bin/qvm-template-postprocess", line 5, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 430, in main
loop.run_until_complete(post_install(args))
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/lib/python3.8/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 296, in post_install
import_root_img(vm, args.dir)
File "/usr/lib/python3.8/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 110, in import_root_img
raise qubesadmin.exc.QubesException(
qubesadmin.exc.QubesException: root.img extraction failed
ERROR: Command '['qvm-template-postprocess', '--really', '--no-installed-by-rpm', 'post-install', 'fedora-35-minimal', '/var/tmp/tmp2_t8ydzq/var/lib/qubes/vm-templates/fedora-35-minimal']' returned non-zero exit status 1.
I’ve tried to investigate QubesException: root.img extraction failed
and found this, but it does NOT work for me: Errors trying to install Debian 11 (Bullseye) template from testing - #6 by mig5
I then tried to install the fedora-34-minimal
AND then the fedora-34
templates from the stable repo, and I got the same root.img extraction failed
error as before.