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: 原创内容,转载请注明出自琼台博客