提取 *.tar.bz2 文件?

sup*_*tah 7 linux tar bzip2 ubuntu ubuntu-14.04

我总是使用这个命令从 bzip2 tar ball 中提取文件:

tar xjvf file.tar.bz2
Run Code Online (Sandbox Code Playgroud)

但是现在在 Ubuntu 14.04 上,我收到此错误:

tar: Conflicting compression options
Try 'tar --help' or 'tar --usage' for more information.
Run Code Online (Sandbox Code Playgroud)

有什么改变还是这是一个错误?

编辑:我认为可能存在错误。我只是尝试先运行它bunzip2,然后从生成的焦油球中提取所有内容,然后得到:

$ tar xvf file.tar
tar (child): pbzip2: 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
Run Code Online (Sandbox Code Playgroud)

EDIT2:这是我安装后得到的pbzip2

$ tar xf file.tar
pbzip2: producer_decompress: *ERROR: when reading bzip2 input stream
Terminator thread: premature exit requested - quitting...
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)

Ber*_*ert 8

您必须组合-z-j 压缩选项。第一种用途gzip,第二种用途bzip。该命令tar xjvf不会给你那个错误。


sup*_*tah 2

我的解决方案是安装bsdtar. 我不知道为什么常规程序tar不起作用,但我要提交错误报告。