linux下unzip命令出錯問題
linux下用unzip加壓一個zip格式的壓縮檔案,出現如下報錯:
[oracle@DB ~]$ unzip guotai_customer.zip
Archive: guotai_customer.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of guotai_customer.zip or
guotai_customer.zip.zip, and cannot find guotai_customer.zip.ZIP, period.
不知道是什麼原因,查了google,發現是因為壓縮檔案大於2G的緣故,使用
jar命令來解壓即可:
jar xvf guotai_customer.zip
執行,發現報錯:
[root@DB ~]# jar
-bash: jar: command not found
要安裝這個包:
java-1.6.0-openjdk-devel
使用yum,內網連不上rh的資源庫。只好自己想辦法從iso安裝包中取。還好,找dvd版的iso中找到了,執行安裝:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
java-1.6.0-openjdk = 1:1.6.0.0-1.2.b09.el5 is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
libjli.so is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
libjli.so(SUNWprivate_1.1) is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
還是報錯,還要依賴其他包,於是把所有可能的都找了出來,然後首先把相近的安裝上去:
[root@DB ~]# rpm -i java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
再試試看:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
ok,成功了。
然後執行解壓:
jar xvf guotai_customer.zip
參考連結:
http://hi.baidu.com/dudangyimian/blog/item/66e5c0cdd270a70b01e9289a.html
[oracle@DB ~]$ unzip guotai_customer.zip
Archive: guotai_customer.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of guotai_customer.zip or
guotai_customer.zip.zip, and cannot find guotai_customer.zip.ZIP, period.
不知道是什麼原因,查了google,發現是因為壓縮檔案大於2G的緣故,使用
jar命令來解壓即可:
jar xvf guotai_customer.zip
執行,發現報錯:
[root@DB ~]# jar
-bash: jar: command not found
要安裝這個包:
java-1.6.0-openjdk-devel
使用yum,內網連不上rh的資源庫。只好自己想辦法從iso安裝包中取。還好,找dvd版的iso中找到了,執行安裝:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
java-1.6.0-openjdk = 1:1.6.0.0-1.2.b09.el5 is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
libjli.so is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
libjli.so(SUNWprivate_1.1) is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
還是報錯,還要依賴其他包,於是把所有可能的都找了出來,然後首先把相近的安裝上去:
[root@DB ~]# rpm -i java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
再試試看:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
ok,成功了。
然後執行解壓:
jar xvf guotai_customer.zip
參考連結:
http://hi.baidu.com/dudangyimian/blog/item/66e5c0cdd270a70b01e9289a.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12932950/viewspace-714447/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux - unzip命令Linux
- Linux基礎命令---unzipLinux
- Loongxin下使用SSL出錯問題
- Linux下zip壓縮和unzip解壓縮命令全解Linux
- linux下幾個問題的除錯Linux除錯
- 基於linux下unzip離線安裝Linux
- 【系統】Linux下 zip 和 unzip的用法Linux
- Linux 解壓zip檔案詳解之unzip命令!Linux
- tar/gzip/unzip命令詳解
- 執行npm update等命令出錯後如何分析問題根源NPM
- Appium 命令列模式下遇到的問題總結及解決方案 npm ERR! tar.unpack unzip(或者untar) errorAPP命令列模式NPMError
- linux下datastage問題LinuxAST
- linux例行性命令問題!(轉)Linux
- 解壓命令unzip常用方法彙總
- sessionbean +bmp取值出錯的問題SessionBean
- Linux:-bash: unzip: command not foundLinux
- DEDECMS在linux下問題Linux
- CodeMan的Linux問題解決與技巧集錦:Linux Shell下命令su出現authentication failure解決方法...LinuxAI
- Linux Shell命令換行問題(轉)Linux
- hadoop命令報錯:許可權問題Hadoop
- ftp下載的時候用mget命令出錯FTP
- pyplot latex顯示中文出錯問題
- 問題小結:Linux下oracle常見安裝錯誤總結LinuxOracle
- linux下啟動監聽器出現問題的解決Linux
- linux下今天遇到的問題Linux
- linux 下chrome 聲音問題LinuxChrome
- 急:linux下轉碼問題Linux
- linux下使用rman的問題Linux
- 用linux man命令,自己解決問題Linux
- Linux 黑乎乎的命令列下,如何除錯 Python?Linux命令列除錯Python
- CodeMan的Linux問題解決集錦:Linux下解除安裝檔案的命令Linux
- 請教:除錯時出現的問題除錯
- Linux MIPI 除錯中常見的問題Linux除錯
- Linux下的JavaC,問題請教LinuxJava
- Excel 向程式傳送命令時出現問題Excel
- linux處理oracle問題常用命令LinuxOracle
- linux sed 命令引起的^M問題解決Linux
- 10 個 Linux ls 命令的面試問題(二)Linux面試