共計 2090 個字符,預計需要花費 6 分鐘才能閱讀完成。
本文丸趣 TV 小編為大家詳細介紹“使用 zip 出現 No such file or directory 報錯怎么辦”,內容詳細,步驟清晰,細節處理妥當,希望這篇“使用 zip 出現 No such file or directory 報錯怎么辦”文章能幫助大家解決疑惑,下面跟著丸趣 TV 小編的思路慢慢深入,一起來學習新知識吧。
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 directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
問題原因:
沒有安裝 bzip2 包
[root@open_source ~]# rpm -qa|grep bzip
bzip2-libs-1.0.6-13.el7.x86_64
解決辦法:
安裝 bzip 包
[root@open_source ~]# yum install -y bzip2
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
base | 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 k
Installed size: 86 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running 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 bzip
bzip2-1.0.6-13.el7.x86_64
bzip2-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.12
drwxrwxrwx 6 1107 1107 273 Feb 10 17:32 postgresql-10.12
讀到這里,這篇“使用 zip 出現 No such file or directory 報錯怎么辦”文章已經介紹完畢,想要掌握這篇文章的知識點還需要大家自己動手實踐使用過才能領會,如果想了解更多相關內容的文章,歡迎關注丸趣 TV 行業資訊頻道。
正文完