bzip2 Cannot exec No such file or directory

原因

​ 在纯净的centos环境下,对xxxx.bz2文件进行解压的时候,报出一下错误:

1
2
3
4
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

​ 这里显示,tar找不到可执行文件,即lbzip2;

解决办法:

1
2
# 安装bzip
yum install -y bzip2

参考链接:

博客链接

文章作者: TangLyan
文章链接: https://toheart.github.io/2019/06/17/运维/bzip2-error/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 荦彦的博客
打赏一下