Orphan fedora-33-dvm-vm and whonix-ws-15-dvm-vm menu entries after updating

Hello everybody,
After searching in the forums and on the net I haven’t found any clear solution to this problem : after upgrading in place from fedora-33 template to fedora-34 template and updating whonix ws 15 to 16 there are still two menu entries named fedora-33-dvm-vm and whonix-ws-15-dvm-vm with in each only “start qubes”.
How to get rid of them ?
Thanks in advance for your help !

if you already have fedora-34-dvm and whonix-ws-16-dvm ready and working (even changed the settings in the Qubes Manager settings for “disposable VM” on each qube), then both dvm-qubes can be removed with

qvm-template dnf remove fedora-33-dvm whonix-ws-15-dvm

in dom0 terminal

Thanks for your quick answer ! I use Qubes 4.0 and when I try this command I get : qvm-template command not found. And these old templates that I want to delete are not visible in the Qubes Manager…
Maybe you will have another advice ;-))

it’s

sudo dnf remove -y fedora-33-dvm whonix-ws-15-dvm

on 4.0

Thanks ! when I execute your command I get :

Unable to detect release version (use ‘–releasever’ to specify release version)
Fedora 25 - x86_64 - Updates 1.1 MB/s | 24 MB 00:20
Fedora 25 - x86_64 2.2 MB/s | 50 MB 00:23
Qubes OS Contrib Repository for dom0 (updates) 46 kB/s | 76 kB 00:01
Qubes Dom0 Repository (updates) 1.0 MB/s | 5.8 MB 00:05
determining the fastest mirror (15 hosts)… done.-- B/s | 0 B --:-- ETA
Qubes Templates repository 1.6 kB/s | 6.5 kB 00:04
Package dnf-1.1.10-7.fc25.noarch is already installed.
No match for argument: remove
No match for argument: fedora-33-dvm
No match for argument: whonix-ws-15-dvm
Error: Unable to find a match: remove fedora-33-dvm whonix-ws-15-dvm

I have executed this command (your first edit) :slight_smile: sudo qubes-dom0-update dnf remove fedora-33-dvm whonix-ws-15-dvm.

I just saw that your second edit is sudo dnf remove -y fedora-33-dvm whonix-ws-15-dvm. So I will do that now :slight_smile:

with sudo dnf remove -y fedora-33-dvm whonix-ws-15-dvm I get :slight_smile:
No match for argument: fedora-33-dvm
No match for argument: whonix-ws-15-dvm
Error: No packages marked for removal.

Hard to remember, which was the correct command some month ago, when I was also using Q4.0
Have you tried this one also:

sudo dnf remove qubes-template-fedora-33-dvm qubes-template-whonix-ws-15-dvm

You have got another try :slight_smile:
sudo dnf remove qubes-template-fedora-33-dvm qubes-template-whonix-ws-15-dvm
No match for argument: qubes-template-fedora-33-dvm
No match for argument: qubes-template-whonix-ws-15-dvm
Error: No packages marked for removal.

Maybe it is only a menu problem ?

or the names of your disp qubes are different…
What if you try to open the Qubes Manager and right clicking the correct dvm qube and choose Delete ?

As I have written upper these appvms are invisible in the Qubes Manager…
In the menu they are named :

  • fedora-33-dvm-vm with the command fedora-33 -dvm : start qubes and
  • whonix-ws-15-dvm-vm with the command whonix-15-dvm : start qubes…
    I don’t understand the meaning of these *-vm ?

Okay, sorry - didn’t understand this -vm in the names first… So try it with:

sudo dnf remove -y qubes-template-fedora-33-dvm-vm qubes-template-whonix-ws-15-dvm-vm

or

sudo dnf remove -y fedora-33-dvm-vm whonix-ws-15-dvm-vm

The result of each version :slight_smile:

user@dom0 ~]$ sudo dnf remove qubes-template-fedora-33-dvm-vm qubes-template-whonix-ws-15-dvm-vm
No match for argument: qubes-template-fedora-33-dvm-vm
No match for argument: qubes-template-whonix-ws-15-dvm-vm
Error: No packages marked for removal.

[user@dom0 ~]$ sudo dnf remove fedora-33-dvm-vm whonix-15-dvm-vm
No match for argument: fedora-33-dvm-vm
No match for argument: whonix-15-dvm-vm
Error: No packages marked for removal.

Sorry, now I’ve got it fully. You were refering to “menu entries” and I was missing this during the first read.

So the Qubes already are removed from Qubes Manager (and the reason, you don’t have them in the qubes list anymore).

So you need just to remove them from the xfce menu. Need to search for this a while and will come back soon and edit my post, if someone isn’t quicker with an answer.
You need to do this in the dom0 terminal…

Thanks for your help ! I am not in a hurry with this little problem ! You are welcome to come back in a while !

got it. So info is coming from here:

For example, suppose you’ve deleted whonix-ws-15-dvm-vm , but there is a leftover Application Menu shortcut, and you find a related file in ~/.local/share/applications/ . In dom0:

$ rm -i ~/.local/share/applications/whonix-ws-15-dvm-vm-*

As a result :slight_smile:

[user@dom0 ~]$ rm -i ~/.local/share/applications/whonix-ws-15-dvm-vm
rm: cannot remove ‘/home/user/.local/share/applications/whonix-ws-15-dvm-vm’: No such file or directory

Sorry…

Thats correct, cause you first have to give us the output from:

cd ~/.local/share/applications/

followed by

ls -la *whonix-ws-15*

and for

ls -la *fedora-33*

I find these two files :
fedora-33-dvm-qubes-start.desktop
whonix-ws-15-dvm-qubes-start.desktop

so I suppose these are the ones to delete ?

this should work then:

$ rm -i ~/.local/share/applications/fedora-33-dvm-*
$ rm -i ~/.local/share/applications/whonix-ws-15-dvm-*