1 回答

TA貢獻1812條經驗 獲得超5個贊
這不是該命令的完整錯誤輸出,這是:
$ unzip "gradle-2.10-bin.zip"
Archive: gradle-2.10-bin.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 gradle-2.10-bin.zip or
gradle-2.10-bin.zip.zip, and cannot find gradle-2.10-bin.zip.ZIP, period.
如果我們檢查它,該文件是空的。如果我們curl -I在該 url 上執行操作,我們會得到 301,因此您需要添加-L到該 curl 命令以遵循重定向:
curl -L https://services.gradle.org/distributions/gradle-2.10-bin.zip
添加回答
舉報