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
- 呼叫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
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- 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
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- 編譯Redis時報錯: jemalloc/jemalloc.h: No such file or directory編譯Redis
- tar解包時報錯
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- go呼叫python報錯pkg-config: exec: "pkg-config": executable file not found in %PATH%GoPython
- 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
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- Mac Iterm2 連結伺服器報:LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決方案Mac伺服器
- docker容器掛載 No such file or directoryDocker
- tar解壓報錯——Not found in archive tar: Exiting with failure status due to previous errorsHiveAIError
- allowedOrigins cannot contain the gateway 報錯AIGateway
- pg_basebackup 報錯could not create directory
- 錯誤:-bash: ./how_paras.sh: /bin/bash^M: bad interpreter: No such file or directory
- scp 報錯 not a regular file
- iostat -n來統計NFS讀寫資訊時碰到了Cannot open /proc/self/mountstats: No such file or directoryiOSNFS
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- gitbook no such file or directory 怎麼解決Git
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- gateway 報錯 allowedOrigins cannot contain the specialGatewayAI
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- 前端報錯:cannot read property length of undefined前端Undefined
- 關閉tomcat報錯Cannot allocate memoryTomcat
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- querydsl報錯: Attempt to recreate a file for type
- 頁面報錯 No input file specified
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- 在 Linux 中執行.sh 指令碼 No such file or directoryLinux指令碼
- cannot find trajectory file at ./examples/trajectory.txt
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject