MENU

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

August 5, 2020 • 已被 353 位童鞋围观过 • 代码分享,系统运维

今天用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
Last Modified: September 28, 2023