Error installing latest Fedora template - Errno 13 permission denied

Hi,

I was in the middle of installing a new Fedora template by the command

sudo qubes-dom0-update qubes-template-fedora-41-xfce

My internet then cut out so I tried to reinstall

When I try now I get this error:

ERROR: [Errno 13] Permission denied: '/var/tmp/qvm-template.lck'

I tried removing the template with qvm-template remove fedora-41-xfce but it says no domain found.

Any ideas? Thank you

1 Like

You could try removing that file, and then repeating the install.
Also, for templates qubes-dom0-update just calls qvm-template, so
you would be better to use qvm-template directly - or the GUI
version.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

2 Likes

Hi,

That remove did work, however now I get stuck on this:

 sudo qubes-dom0-update qubes-template-fedora-41-xfce
 Using sys-whonix as UpdateVM for Dom0
 Downloading packages. This may take a while...
 Redirecting to 'qvm-template install  fedora-41-xfce'
 ^CTraceback (most recent call last):
   File "/usr/bin/qvm-template", line 5, in <module>
     sys.exit(main())
              ^^^^^^
   File "/usr/lib/python3.11/site-packages/qubesadmin/tools/qvm_template.py", line 1714, in main
     install(p_args, app)
   File "/usr/lib/python3.11/site-packages/qubesadmin/tools/qvm_template.py", line 973, in wrapper
     return func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/site-packages/qubesadmin/tools/qvm_template.py", line 1072, in install
     dl_list = get_dl_list(args, app, version_selector=version_selector)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/site-packages/qubesadmin/tools/qvm_template.py", line 855, in get_dl_list
     query_res = qrexec_repoquery(args, app, PACKAGE_NAME_PREFIX + template)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/site-packages/qubesadmin/tools/qvm_template.py", line 534, in qrexec_repoquery
     stdout = proc.stdout.read(1 << 20).decode('ascii', 'strict')

Nothing happens after I run that command, I get the above when I Ctrl + C

I do try to use template manager but it rarely ever loads templates. Just a blank screen most of the time.

1 Like

I can’t speak on much else in your post, but I will say that the Template Manager takes a long time to load for everyone, at least, from what I’ve read on this forum over time.

You just have to let it sit in the background and load. Check on it after about 10-15 minutes, maybe even 20, but I don’t think I’ve ever actually waited that long. This seems to be a persistent (bug?) across multiple upgrades of Qubes.

1 Like

Not for me, or any of the folk I support.
That’s over Tor (but not using sys-whonix).
Usability and Timings are similar to qubes-dom0-update.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

1 Like

Would you care to expand on that, please?

1 Like

Really not sure what to do. Template manager never loads and never really has done, it only has once. Just waited 20 mins for it.

Still getting the error I posted above - seems I can’t even install a standalone new fedora template.

1 Like

Me?
I use a Tor proxy, based on a Debian template.
The source is here, with
instructions, and the package on 3isec

I see no issues with the CLI or GUI application over Tor.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

2 Likes

Has anyone got any idea? I might have to just do a total qubes reinstall which would be a massive pain.

A quick tip I just picked up from @rustybird is to:

sudo nano /etc/qubes/repo-templates/qubes-templates.repo

from dom0.

Once there you’ll see three mirrors for each repo you have access to: one clearnet, one .onion, and one clearnet xml metalink. Comment out the metalink (by adding # before the line, in case you don’t know), and uncomment (remove #) either the .onion or regular clearnet. When I just made this switch, I went from waiting forever to waiting less than a full second.

If you use sys-whonix for your UpdateVM, then you may as well use the onion. If you use sys-firewall, it would have to use the clearnet link.

In regard to your ‘massive pain’ comment, I honestly think you’ll appreciate the experience. I myself have reinstalled Qubes a number of times over the years, and I learn more about it each time.

Also, I didn’t read that you’d tried to delete by using the Qube Manager. Is that not possible for you?