小编Sea*_*ett的帖子

tar.xz 提取错误“xz: (stdin): 文件格式无法识别”

我正在尝试.tar.xz在我的 Ubuntu Mate 计算机上提取一个文件。无论我做什么,我都会收到此错误:

xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)

我做了以下事情(尽管我反复尝试规避错误可能会凸显我的无知):

tar xf file.tar.xz
Run Code Online (Sandbox Code Playgroud)

然后,

unxz file.tar.xz #results in file.tar
Run Code Online (Sandbox Code Playgroud)

那一次,我遇到了类似的错误:

unxz: file.tar.xz: File format not recognized
Run Code Online (Sandbox Code Playgroud)

然后,我这样做了:

tar -xJf file.tar.xz
Run Code Online (Sandbox Code Playgroud)

等等...

我尝试使用更新/安装 tar 和 xz-utils

sudo apt-get install xz-utils
Run Code Online (Sandbox Code Playgroud)

对于x-utils, 和

sudo apt-get install tar
Run Code Online (Sandbox Code Playgroud)

tar。他们都成功更新/安装,但是当我再次执行上述操作时,我遇到了相同的错误。

编辑一个

当我使用:

file file.tar.xz
Run Code Online (Sandbox Code Playgroud)

我得到

file.tar.xz: HTML document, UTF-8 Unicode text, with very long lines …
Run Code Online (Sandbox Code Playgroud)

tar ubuntu-mate

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

tar ×1

ubuntu-mate ×1