当前位置:   article > 正文

tar: Error is not recoverable: exiting now的解压失败问题解决方案_tar (child): error is not recoverable: exiting now

tar (child): error is not recoverable: exiting now

tar: Error is not recoverable: exiting now的解决方案

错误提示

[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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

过程分析

这是由于最小安装时没有bzip2命令造成的简单错误
可以使用以下命令查看bzip2命令的软件包

yum whatprovides bzip2
  • 1

查看结果如下

[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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

可以在倒数第二行看到bzip2的软件包名称。

解决方案

看到软件包名称之后,输入命令:
yum -y install bzip2
即可解决问题

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号