linux tar child returned status 2,linux解压文件报错:tar (child): bzip2: Cannot exec: No such file or direc...

[root@localhost src]# ll

total 528

-rw-r--r-- 1 root root 113561 Dec 8 15:54 mirror_choices?projectname=smbdaudit&filename=smbdaudit%2Fsmb_audit-0.3.7%2Fsmb_audit-0.3.7.i386.tar.bz2

drwxr-xr-x 2 root root 6 Dec 8 16:15 smb_audit-0.3.7

-rw-r--r-- 1 root root 424011 Dec 8 15:58 smb_audit-0.3.7.i386.tar.bz2

[root@localhost src]# pwd

/usr/local/src

[root@localhost src]# tar -jxvf smb_audit-0.3.7.i386.tar.bz2 -C /usr/local/src/smb_audit-0.3.7

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

[root@localhost src]# tar -jxf smb_audit-0.3.7.i386.tar.bz2 -C /usr/local/src/smb_audit-0.3.7

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

报错:

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

177b4bab84ce14092d9322af36e558cb.png

[root@localhost src]# tar jxf smb_audit-0.3.7.i386.tar.bz2

[root@localhost src]# ll

total 532

-rw-r--r-- 1 root root 113561 Dec 8 15:54 mirror_choices?projectname=smbdaudit&filename=smbdaudit%2Fsmb_audit-0.3.7%2Fsmb_audit-0.3.7.i386.tar.bz2

drwxr-xr-x 7 liulinfeng liulinfeng 4096 Aug 30 2008 smb_audit-0.3.7

-rw-r--r-- 1 root root 424011 Dec 8 15:58 smb_audit-0.3.7.i386.tar.bz2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值