我正试图在我的Ubuntu伙伴计算机上提取一个.tar.xz文件。不管我做什么,我都会犯这样的错误:
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now我做了以下几件事(尽管我多次试图避免这一错误可能会突出我的无知):
tar xf file.tar.xz然后,
unxz file.tar.xz #results in file.tar那次,我得到了一个类似的错误:
unxz: file.tar.xz: File format not recognized然后,我做了这个:
tar -xJf file.tar.xz等等..。
我尝试使用以下方法更新/安装tar和xz-utils
sudo apt-get install xz-utils对于x-utils,以及
sudo apt-get install tar为了tar。它们都成功地进行了更新/安装,但是当我再次执行上述操作时,我得到了相同的错误。
编辑一
当我使用:
file file.tar.xz我得到了
file.tar.xz: HTML document, UTF-8 Unicode text, with very long lines当我尝试用Engrampa打开它时,
engrampa file.tar.xz我得到了上面提到的同样的错误。
我在Raspberry Pi 3上运行Ubuntu伙伴16.04。
输出.
apt list xz-utils是
Listing... Done
xz-utils/xenial,now 5.1.1alpha+20120614-2ubuntu2 armhf [installed]输出.
xz --version是
xz (XZ Utils) 5.1.0alpha
liblzma 5.1.0alpha输出.
tar --version是
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.我使用命令行获得了这个文件(pepper v.20.0.0.228r1.tar.xz)。
wget http://dl.free.fr/qVkzvqSiB -O pepper-flash-v20.0.0.228-r1.tar.xz编辑二
谢谢你的回答。这个问题已经结束了。
发布于 2017-01-21 15:36:56
file.tar.xz: HTML document, UTF-8 Unicode text, with very long lines指示我下载了一个网站。这就是为什么它不能提取。
发布于 2017-01-21 22:12:44
请不要从随机网站下载文件。那个文件的内容可能会被修改来破坏你的系统。
正确的下载位置是debian wiki页面,您可以从他们的跟踪器站点下载它,这里是直接下载。它将下载pepperflashplugin-nonfree_1.8.1+deb8u1.tar.xz,下载后您可以使用tar命令解压缩它。
但是,要安装,我建议使用普通的Ubuntu安装。在软件和更新中启用“规范合作伙伴”,然后运行..。
sudo apt update
sudo apt install adobe-flashplugin这将安装闪光灯和胡椒闪光灯插件。
发布于 2023-03-18 18:57:17
在我的示例中,由于证书错误,指定的归档文件没有正确下载。从-q中删除wget,以查看您是否可能有相同的问题。
https://askubuntu.com/questions/874519
复制相似问题