flutter doctor command failed to retrieve the Dart SDK on Ubuntu 18.04


$flutter doctor

Running this command produces this output –

Downloading Dart SDK from Flutter engine bdc9708d235e582483d299642ad8682826ebb90d...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:09 --:--:--     0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443 

Failed to retrieve the Dart SDK from: https://storage.googleapis.com/flutter_infra/flutter/bdc9708d235e582483d299642ad8682826ebb90d/dart-sdk-linux-x64.zip
If you're located in China, please see this page:

I am not from China, and it’s my first trial on setting up flutter so I can’t understand why this isn’t working.
Also I have added flutter to system variables using –

$nano ~/.bashrc


I later realized that storage.googleapis was blocked in Bangladesh that time, so just using a VPN worked.

Note: The site has been blocked yet again.

Answered By – Amani Saaduddin

Answer Checked By – Mary Flores (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *