Это не полная ошибка вывода этой команды, это:
$ 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