tar (child): xz: Cannot exec: No such file or directory = Install xz-utils package

Thanks for taking the time to read this, I seem to be getting this error when trying to move the whonix workstation qcow2:
mv: cannot stat ‘Whonix-Workstation*.qcow2’: No such file or directory

I’ve been following the official instructions from /wiki/KVM. I’m using ubuntu 22.04.
I’ve downloaded and decompressed the tarball from /wiki/KVM several times and every single time there is no workstation qcow2. All the other files seem to be there.

Could there be anything that I’m missing? Or is it not in there?

1 Like

Used extraction command from wiki?

I used “tar -xvf Whonix*.libvirt.xz”, the exact command from the wiki. Copied and pasted.

What’s happening when you run that command?

Did you verify the file? If not, try.

How many such files do you have? Try.

ls Whonix*.libvirt.xz

I’m having a similar issue. I’ve attempted to download and install Whonix on Virtmanager, but the qcow2 image for the workstation appears to be nonexistant.

Then why don’t you answer above questions?

Because xz-utils not installed on your systems:

sudo apt install xz-utils

Before installation:

user@host:~/Downloads$ ls
Whonix-Xfce-17.2.0.7.Intel_AMD64.qcow2.libvirt.xz
user@host:~/Downloads$ tar -xvf Whonix*.libvirt.xz
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
user@host:~/Downloads$

After Installation:

user@host:~/Downloads$ tar -xvf Whonix*.libvirt.xz
WHONIX_BINARY_LICENSE_AGREEMENT
WHONIX_DISCLAIMER
Whonix-Gateway.xml
Whonix-Workstation.xml
Whonix_external_network.xml
Whonix_internal_network.xml
Whonix-Gateway-Xfce-17.2.0.7.Intel_AMD64.qcow2
Whonix-Workstation-Xfce-17.2.0.7.Intel_AMD64.qcow2
user@host:~/Downloads$

Adjusted the wiki to address this issue:

2 Likes