Templates incorrectly think they're not connected to a Whonix gateway.

Try this.

Workaround:

sudo touch /var/run/qubes-service/whonix-secure-proxy

Or.

sudo apt-get.anondist-orig ...

Both options work. Thank you.