Do you have other templates except for fedora?
What if you change your sys-net to debian template or use sys-whonix for default update proxy for templates instead of sys-net? Will you have the same issue?
Yesterday, for some reason if I was using sys-cacher updates would fail almost immediately. If I deactivated the cacher (a process which involves both making changes to dom0 and to the template being updated, unfortunately), things would work again. I only had time to update about half of my templates once I did all of that.
A few hours later I was able to turn the cacher on and update everything the normal (for me) way.
This was worked!! If I change sys-net to debian template, I can update my qubes. If I switch back, it is the same but for now I can update. Thank you!!
Still have to solve this thing, but it is much less urging now.
You can install new fedora 40 template using Qubes Template Manager and try to use it for your sys-net. Maybe you’ve changed something in your fedora 39 template which is causing this issue.
I have a similar issue. Over the past few days I cannot update any Fedora or Debian templates. My update proxy is sys-net, which is a disposable based on fedora-39-xfce.
First I changed the sys-net template to debian 12 xfce. From there, I installed Fedora 40 xfce and changed everything to there. Now everything works flawlessly again, except one thing: I cannot reinstall debian 12 xfce template. I can update everything, I can reinstall all template, except that.
I’m relieved (thanks for the help!), but still 10% puzzled.
Maybe it’s used by one of the qubes so it can’t be reinstalled?
You can try to switch the qubes from debian 12 xfce template to some other template using Qubes Template Switcher tool and then try to reinstall the debian 12 xfce template.
Then you have the same problem that was reported in the github issue that I’ve linked previously.
Run this command in sys-net template ( fedora-39-xfce):
My output after the above command is;
ls: cannot access ‘/etc/qubes-…’: No such file or directory.
I ran cmd as root too. All my templates are not showing. Help please.