Hot For Coding
bz2解压失败

解压bz2压缩包时提示错误:

[root@test01 e2e]# tar -jxf test.tar.bz2 
tar (child): bzip2: 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

看错误就知道bzip2系统不支持,安装所需的处理包,如CentOS下执行

[root@test01 e2e]# yum install bzip2 -y

再次解压

[root@test01 e2e]# tar -jxf test.tar.bz2

正常工作,错误已消失

TITLE: bz2解压失败

LINK: https://www.qttc.net/490_bz2_unpack_error.html

NOTE: 转载内容请注明出处