溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

使用zip出現(xiàn)No such file or directory報(bào)錯(cuò)怎么辦

發(fā)布時(shí)間:2022-01-17 14:31:21 來(lái)源:億速云 閱讀:484 作者:iii 欄目:建站服務(wù)器

本文小編為大家詳細(xì)介紹“使用zip出現(xiàn)No such file or directory報(bào)錯(cuò)怎么辦”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“使用zip出現(xiàn)No such file or directory報(bào)錯(cuò)怎么辦”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來(lái)學(xué)習(xí)新知識(shí)吧。

tar (child): bzip2: Cannot exec: No such file or directory 報(bào)錯(cuò)

問(wèn)題現(xiàn)象:

[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

問(wèn)題原因:

       沒(méi)有安裝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

驗(yàn)證:

       問(wèn)題已解決:

[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出現(xiàn)No such file or directory報(bào)錯(cuò)怎么辦”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識(shí)點(diǎn)還需要大家自己動(dòng)手實(shí)踐使用過(guò)才能領(lǐng)會(huì),如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

zip
AI