but I didn’t have enough RAM during the “setting-up” of the new template so it had no apps. It may even be broken, I didn’t check. So seeing how it’s broken I ran:
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
qubes-template-debian-10-minimal
noarch 4.0.1-201912251612 @qubes-dom0-cached 986 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 986 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
usage: qvm-template-postprocess [--verbose] [--quiet] [--help] [--really]
[--skip-start] [--keep-source]
{post-install,pre-remove} name dir
qvm-template-postprocess: error: No Qube with this name exists
error: %preun(qubes-template-debian-10-minimal-4.0.1-201912251612.noarch) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package qubes-template-debian-10-minimal
Error in PREUN scriptlet in rpm package qubes-template-debian-10-minimal
qubes-template-debian-10-minimal-4.0.1-201912251612.noarch was supposed to be removed but is not!
Verifying : qubes-template-debian-10-minimal-4.0.1-201912251612.noarc 1/1
Removed:
qubes-template-debian-10-minimal.noarch 4.0.1-201912251612
Complete!
When I run sudo dnf remove qubes-template-debian-10-minimal
The reason you originally received “No match for argument qubes-template-debian-10-minimal” is because the package is still installed according to rpm. You can’t see it, but qubes-dom0-update runs dnf install --exclude=qubes-template-debian-10-minimal which makes the package invisible even if you specified it on the command line.
Oh no, for you have still sinned by removing a dnf-installed template using Qubes Manager. By doing this, you have prevented the template from being uninstalled properly by dnf.
However, there should be more done by Qubes OS to prevent you from believing this is the way to remove the template (user experience).
Once you try to remove the template from Qubes Manager and receive “error: template installed by package manager”, this should happen:
# user: "ok, I'll use the package manager"
sudo dnf remove qubes-template-debian-10-minimal