I was wrong, it works if you install apt-transport-tor with default config. But install with --no-install-recommends so tor package won’t be installed as well:
The templates in Qubes OS are configured to work with apt-transport-tor by default:
$ cat /etc/apt/apt.conf.d/01qubes-proxy
### This file is automatically generated by Qubes (/usr/lib/qubes/update-proxy-configs script).
### All modifications here will be lost.
### If you want to override some of this settings, create another file under
### /etc/apt/apt.conf.d.
# Use Qubes Update Proxy
Acquire::http::Proxy "http://127.0.0.1:8082/";
Acquire::tor::proxy "http://127.0.0.1:8082/";
No, in your debian-12 template. You’ll need to remove the tor+ from the sources.lists first, install apt-transport-tor in debian-12 and then you can return tor+ in the sources.lists.
It’s a warning, not an error and it’s unrelated to your issue.
Try to update the debian-12 template using Qubes Update tool, will it have the same error?
Try to update your other templates using Qubes Update tool, will they be updated successfully?
Maybe there is some issue with your debian-12 template specifically.
If it’s an issue only with your debian-12 template then it’d be faster to just reinstall the debian-12 template.
Shutdown all qubes.
Clone the debian-12 template to debian-12-tmp.
Switch template from debian-12 to debian-12-tmp for all qiubes using Qubes Template Switcher.
Reinstall debian-12 template.
Switch template from debian-12-tmp to debian-12 for all qiubes using Qubes Template Switcher.