The Computer Oracle

Cannot decompress .tar.xz file, getting "xz: Cannot exec: No such file or directory" from tar

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3 Looping

--

Chapters
00:00 Cannot Decompress .Tar.Xz File, Getting &Quot;Xz: Cannot Exec: No Such File Or Directory&Quot; From
00:33 Accepted Answer Score 214
00:58 Thank you

--

Full question
https://superuser.com/questions/801159/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #ubuntu #compression #tar #xz

#avk47



ACCEPTED ANSWER

Score 214


The line

tar (child): xz: Cannot exec: No such file or directory

gives you the real error. The xz programm cannot be executed, probably because it is not installed. To install the xz (de)compression tools, issue one of the following commands depending on your distibution:

sudo apt-get install xz-utils # Debian / Ubuntu
sudo yum install xz # RHEL / CentOS
sudo zypper in xz # OpenSuSE
sudo pacman -S xz # Arch Linux