Apt-cacher-ng cacher qube creating errors

enmus via Qubes OS Forum qubes_os@forum.qubes-os.org writes:

qubesctl state.apply cacher.create (I think there is typo in the note,
containing extra period at the end of the command?)

yes

[user@dom0 ~]$ sudo qubesctl state.apply cacher.create
[ERROR ] Command ‘systemd-run’ failed with return code: 1
[ERROR ] stdout: Running scope as unit:
run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some
time…
Running ‘/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui
‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’
‘–action=install’ ‘debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1
[ERROR ] retcode: 1
[ERROR ] Error occurred installing package(s). Additional info follows:

errors:
- Running scope as unit: run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take
some time…
Running `/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui
‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’
–action=install’ 'debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1

Acoording to this @marmarek’s post here
Missing qubes-download-dom0-updates.sh - #5 by marmarek

how it is possible to use qubes-download-dom0-updates.sh to install debian-11-minimal if the scrip exist only in the updateVM, not in dom0?

What am I missing here?

I looks like a bug… But essentially, you should be able to install
that template manually with (and then salt will not try again to install
it) :

$ sudo qubes-dom0-update qubes-template-debian-11-minimal

I find ‘–exclude=qubes-template-*’ in your log suspicious.