解压缩 tar.bz2失败 提示错误 tar (child): bzip2: Cannot exec: No such file or directory

今天用tar命令解压文件的时候出错了,信息如下:

tar (child): lbzip2: 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就行了,yum安装的命令如下:

yum -y install bzip2

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注