tar (child) xz Cannot exec No such file or directory
July 10, 2023
The error:
tar (child): xz: Cannot exec: No such file or directory
Is majorly an issue with the xz
command not found on the host machine.
To verify, run:
whereis xz
Fix
To fix, use the installation command for your Linux distribution:
sudo apt-get install xz-utils # Debian / Ubuntusudo yum install xz # RHEL / CentOSsudo zypper in xz # OpenSuSEsudo pacman -S xz # Arch Linux
Then untar
again with:
tar -xf path_to_file.tar.xz
Ref: S/O
Dhanyavaad! 🙇
Edit on githubTweet