Перейдите на https://www.scala-lang.org/files/archive/scala-2.12.0.tgz, и вы не будете загружать архив.
Или вот расшифровка curl:
$ curl -Lvs -o /dev/null https://www.scala-lang.org/files/archive/scala-2.12.0.tgz
* Trying 128.178.154.159...
* Connected to www.scala-lang.org (128.178.154.159) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: *.scala-lang.org
* Server certificate: Gandi Standard SSL CA 2
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
> GET /files/archive/scala-2.12.0.tgz HTTP/1.1
> Host: www.scala-lang.org
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 16 Nov 2016 01:32:33 GMT
< Server: Apache
< Location: http://www.scala-lang.org
< Content-Length: 302
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
{ [302 bytes data]
* Connection #0 to host www.scala-lang.org left intact
* Issue another request to this URL: 'http://www.scala-lang.org'
* Rebuilt URL to: http://www.scala-lang.org/
* Found bundle for host www.scala-lang.org: 0x7fa37ac10170
* Trying 128.178.154.159...
* Connected to www.scala-lang.org (128.178.154.159) port 80 (#1)
> GET / HTTP/1.1
> Host: www.scala-lang.org
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 16 Nov 2016 01:32:33 GMT
< Server: Apache
< Last-Modified: Sat, 12 Nov 2016 18:05:12 GMT
< ETag: "1179a-5411e72afe53a"
< Accept-Ranges: bytes
< Content-Length: 71578
< Vary: Accept-Encoding
< Content-Type: text/html
<
{ [3864 bytes data]
* Connection #1 to host www.scala-lang.org left intact
Обратите внимание, что при перенаправлении нигде нет пути, и в итоге он возвращает text / html (домашнюю страницу).
@fsalvi - это то, к чему можно обратиться с вашей стороны ...?
Теперь все в порядке.
чудесно, спасибо, Фабьен!
Самый полезный комментарий
Теперь все в порядке.