tar (child): bzip2: Cannot exec: 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 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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-2678745/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- 自定義容器啟動指令碼報錯:exec user process caused "no such file or directory"指令碼
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- mha_replication_check Can't exec "mysqlbinlog": No such file or directoryMySql
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- 記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directoryLDAObject
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- (問題解決)Cannot set LC_CTYPE to default locale: No such file or directory
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- 高德地圖使用cocoapods No such file or directory錯誤地圖
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- Oracle ASM File DirectoryOracleASM
- Linux 格式化分割槽 報錯Could not stat /dev/sda3 --- No such file or directoryLinuxdev
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- centos7.6 容器執行報錯 /etc/rc.d/init.d/functions: No such file or directoryCentOSFunction
- opensuse13.1 安裝chrome報 error while loading shared libraries:libudev.so.0:cannot open shared object file:no file or directoryChromeErrorWhiledevObject
- python unix :No such file or directoryPython
- 執行exec dbms_logmnr_d.build('Logminer.ora','file directory'),提示下標超界UI
- Mac Iterm2 連結伺服器報:LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決方案Mac伺服器
- pg_basebackup 報錯could not create directory
- 500 OOPS: cannot change directory:/home/OOP
- Linux格式化分割槽報錯Could not start /dev/sda No such file or directory 解決辦法Linuxdev
- Shell指令碼報錯:-bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory指令碼
- tar解壓報錯——Not found in archive tar: Exiting with failure status due to previous errorsHiveAIError
- docker容器掛載 No such file or directoryDocker
- go呼叫python報錯pkg-config: exec: "pkg-config": executable file not found in %PATH%GoPython
- Linux精講——打包和壓縮tar、gzip、bzip2、xz、zipLinux
- 500 OOPS: cannot change directory問題OOP
- Oracle Expdp報 ORA-19505, ORA-27037 No such file or directoryOracle
- 【tomcat報錯】A child container failed during startTomcatAI