解決Linux使用解壓命令unzip報錯:unzip:cannot find zipfile directory in one of xxx.zip問題
Linux unzip:cannot find zipfile directory in one of xxx.zip
在linux服務(wù)器下使用rz上傳壓縮文件,用unzip命令解壓zip包
#xxx.zip 壓縮的包名
unzip xxx.zipArchive: QY.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 QY.zip or
QY.zip.zip, and cannot find xxx.zip.ZIP, period.
出現(xiàn)這種錯誤的原因
說明在文件上傳或下載的過程中出現(xiàn)了文件丟失的情況
需要使用sftp或scp重新上傳文件到服務(wù)器
然后使用unzip命令或jar命令解壓壓縮文件
解決過程
#方法一 unzip xxx.zip #方法二 jar -xvf xxx.zip
總結(jié)
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關(guān)文章
關(guān)于linux權(quán)限s權(quán)限和t權(quán)限詳解
本文介紹了linux系統(tǒng)內(nèi)的2個特殊權(quán)限s權(quán)限和t權(quán)限,簡單易懂,大家可以詳細看看2018-03-03
Linux 下載安裝VSCode 使用編程輸出當前時間的方法
這篇文章主要介紹了Linux 下載安裝VSCode 使用編程輸出當前時間,本文通過圖文并茂的形式給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-06-06
LNMP下FTP服務(wù)器的安裝與使用方法(Pureftpd和Proftpd)
FTP是網(wǎng)站文件維護中使用比較多的,目前LNMP一鍵安裝包中有Pureftpd和Proftpd服務(wù)器安裝腳本2013-06-06
安裝Debian12后Linux啟動SMTP服務(wù)的詳細指南
這篇文章主要為大家詳細了在 Win10 上 WSL 安裝 Debian 12 后,Linux 如何啟動 SMTP 服務(wù),文中的示例代碼簡潔易懂,有需要的可以了解下2025-06-06

