使用zip出现No such file or directory报错怎么办
短信预约 -IT技能 免费直播动态提醒
本文小编为大家详细介绍“使用zip出现No such file or directory报错怎么办”,内容详细,步骤清晰,细节处理妥当,希望这篇“使用zip出现No such file or directory报错怎么办”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。
tar (child): bzip2: Cannot exec: No such file or directory 报错
问题现象:
[root@open_source ~]# tar -jxf postgresql-10.12.tar.bz2 tar (child): bzip2: Cannot exec: No such file or directorytar (child): Error is not recoverable: exiting nowtar: Child returned status 2tar: Error is not recoverable: exiting now
问题原因:
没有安装bzip2包
[root@open_source ~]# rpm -qa|grep bzipbzip2-libs-1.0.6-13.el7.x86_64
解决办法:
安装bzip包
[root@open_source ~]# yum install -y bzip2Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.Loading mirror speeds from cached hostfilebase | 2.8 kB 00:00:00 Resolving Dependencies--> Running transaction check---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed--> Finished Dependency Resolution Dependencies Resolved ===================================================================================================== Package Arch Version Repository Size=====================================================================================================Installing: bzip2 x86_64 1.0.6-13.el7 base 52 k Transaction Summary=====================================================================================================Install 1 Package Total download size: 52 kInstalled size: 86 kDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : bzip2-1.0.6-13.el7.x86_64 1/1 Verifying : bzip2-1.0.6-13.el7.x86_64 1/1 Installed: bzip2.x86_64 0:1.0.6-13.el7 Complete![root@open_source ~]# rpm -qa|grep bzipbzip2-1.0.6-13.el7.x86_64bzip2-libs-1.0.6-13.el7.x86_64
验证:
问题已解决:
[root@open_source ~]# tar -jxf postgresql-10.12.tar.bz2 [root@open_source ~]# ls -rld postgresql-10.12drwxrwxrwx 6 1107 1107 273 Feb 10 17:32 postgresql-10.12
读到这里,这篇“使用zip出现No such file or directory报错怎么办”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注编程网行业资讯频道。
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341