赞
踩
[root@localhost opt]# tar xf httpd-2.4.29.tar.bz2
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命令造成的简单错误
可以使用以下命令查看bzip2命令的软件包
yum whatprovides bzip2
查看结果如下
[root@localhost opt]# yum whatprovides bzip2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
bzip2-1.0.6-13.el7.x86_64 : A file compression utility
Repo : centos
可以在倒数第二行看到bzip2的软件包名称。
看到软件包名称之后,输入命令:
yum -y install bzip2
即可解决问题
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。