dnf remove lies to me (removing whonix-15 templates)

16 views
Skip to first unread message

Ulrich Windl

unread,
Nov 20, 2021, 7:55:49 PM11/20/21
to qubes...@googlegroups.com
Hi!

Following the instructions how to remove obsolete templates, I have a
problem with both old whonix templates. The problem goes like this:
[master@dom0 ~]$ rpm -qa qubes-template-\*
qubes-template-debian-10-4.0.1-201912251612.noarch
qubes-template-whonix-ws-15-4.0.1-201910102356.noarch
qubes-template-whonix-gw-16-4.0.6-202109211111.noarch
qubes-template-whonix-gw-15-4.0.1-201910102356.noarch
qubes-template-whonix-ws-16-4.0.6-202109211111.noarch
[master@dom0 ~]$ sudo dnf remove qubes-template-whonix-ws-15
Dependencies resolved.
========================================================================================================================================
Package Arch
Version Repository Size
========================================================================================================================================
Removing:
qubes-template-whonix-ws-15 noarch
4.0.1-201910102356 @anaconda 2.1 G

Transaction Summary
========================================================================================================================================
Remove 1 Package

Installed size: 2.1 G
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-whonix-ws-15-4.0.1-201910102356.noarch)
scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package qubes-template-whonix-ws-15
Error in PREUN scriptlet in rpm package qubes-template-whonix-ws-15
qubes-template-whonix-ws-15-4.0.1-201910102356.noarch was supposed to be
removed but is not!
Verifying : qubes-template-whonix-ws-15-4.0.1-201910102356.noarch
1/1

Removed:
qubes-template-whonix-ws-15.noarch 4.0.1-201910102356


Complete!
[master@dom0 ~]$
----
Specifically: Even when saying "Removed: ...", the package was *not*
removed.

Same for the "whonix-gw-15" package.

Regards,
Ulrich

awokd

unread,
Nov 21, 2021, 3:39:33 PM11/21/21
to qubes...@googlegroups.com
Ulrich Windl:
> qvm-template-postprocess: error: No Qube with this name exists

Maybe try to fake it out by cloning some other template to
"whonix-ws-15", then run again?

--
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots

Ulrich Windl

unread,
Nov 30, 2021, 1:22:15 PM11/30/21
to qubes...@googlegroups.com
On 11/21/21 9:39 PM, 'awokd' via qubes-users wrote:
> Ulrich Windl:
>> qvm-template-postprocess: error: No Qube with this name exists
>
> Maybe try to fake it out by cloning some other template to
> "whonix-ws-15", then run again?
>

Hmm: The template is no longer visible in Qubes Mangager (I think I had
deleted it from there).

[master@dom0 ~]$ rpm -ql
qubes-template-whonix-ws-15-4.0.1-201910102356.noarch
/var/lib/qubes/vm-templates/whonix-ws-15
/var/lib/qubes/vm-templates/whonix-ws-15/apps
/var/lib/qubes/vm-templates/whonix-ws-15/apps.tempicons
/var/lib/qubes/vm-templates/whonix-ws-15/apps.templates
/var/lib/qubes/vm-templates/whonix-ws-15/clean-volatile.img.tar
/var/lib/qubes/vm-templates/whonix-ws-15/icon.png
/var/lib/qubes/vm-templates/whonix-ws-15/netvm-whitelisted-appmenus.list
/var/lib/qubes/vm-templates/whonix-ws-15/private.img
/var/lib/qubes/vm-templates/whonix-ws-15/root.img
/var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.00
/var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.01
/var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.02
/var/lib/qubes/vm-templates/whonix-ws-15/vm-whitelisted-appmenus.list
/var/lib/qubes/vm-templates/whonix-ws-15/volatile.img
/var/lib/qubes/vm-templates/whonix-ws-15/whitelisted-appmenus.list
[master@dom0 ~]$ rpm -V
qubes-template-whonix-ws-15-4.0.1-201910102356.noarch
missing /var/lib/qubes/vm-templates/whonix-ws-15
missing /var/lib/qubes/vm-templates/whonix-ws-15/apps
missing /var/lib/qubes/vm-templates/whonix-ws-15/apps.tempicons
missing /var/lib/qubes/vm-templates/whonix-ws-15/apps.templates
missing /var/lib/qubes/vm-templates/whonix-ws-15/clean-volatile.img.tar
missing /var/lib/qubes/vm-templates/whonix-ws-15/icon.png
missing
/var/lib/qubes/vm-templates/whonix-ws-15/netvm-whitelisted-appmenus.list
missing /var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.00
missing /var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.01
missing /var/lib/qubes/vm-templates/whonix-ws-15/root.img.part.02
missing
/var/lib/qubes/vm-templates/whonix-ws-15/vm-whitelisted-appmenus.list
missing
/var/lib/qubes/vm-templates/whonix-ws-15/whitelisted-appmenus.list

Reply all
Reply to author
Forward
0 new messages