The Computer Oracle

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

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2

--

Chapters
00:00 Question
00:48 Accepted answer (Score 188)
01:20 Thank you

--

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

Question links:
[How do I uncompress a tarball that uses .xz?]: https://askubuntu.com/a/107976
[this php-5.6.0RC4.tar.xz]: http://downloads.php.net/tyrael/php-5.6....

--

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