无法解压缩.tar.xz文件,从tar中获取“ xz:无法执行:没有这样的文件或目录”


55

我如何解压缩使用.xz的tarball?,我尝试过tar xf php-5.6.0RC4.tar.xztar -xJf php-5.6.0RC4.tar.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

就是这个php-5.6.0RC4.tar.xz

我正在运行Ubuntu 14.04 LTS。

怎么了?

Answers:


93

线

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

给你真正的错误。xz无法执行该程序,可能是因为未安装该程序。要安装xz(解压缩)工具,请发出

sudo apt-get install xz-utils
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.