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

Sea*_*ett 9 tar ubuntu-mate

我正在尝试.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)

当我尝试使用 Engrampa 打开它时

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

我得到了上面提到的相同错误。

我在 Raspberry Pi 3 上运行 Ubuntu Mate 16.04。

的输出

apt list xz-utils
Run Code Online (Sandbox Code Playgroud)

Listing... Done
xz-utils/xenial,now 5.1.1alpha+20120614-2ubuntu2 armhf [installed]
Run Code Online (Sandbox Code Playgroud)

的输出

xz --version
Run Code Online (Sandbox Code Playgroud)

xz (XZ Utils) 5.1.0alpha
liblzma 5.1.0alpha
Run Code Online (Sandbox Code Playgroud)

的输出

tar --version
Run Code Online (Sandbox Code Playgroud)

tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
Liscense GPLv3+: GNU GPL version 3 or later <http://gnu.org/lisenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Run Code Online (Sandbox Code Playgroud)

我使用命令行获取了文件 (pepper-flash-v.20.0.0.228r1.tar.xz)

wget http://dl.free.fr/qVkzvqSiB -O pepper-flash-v20.0.0.228-r1.tar.xz
Run Code Online (Sandbox Code Playgroud)

编辑两个

感谢您的所有回答。此问题已关闭。

Sea*_*ett 7

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

表示我下载了一个网站。这就是它不会提取的原因。