Closed
Description
Using WSL on Windows 10 I am unable to run/install flutter via the master channel; whereas I have no issues with the latest stable release. Running any flutter command from master fails with:
Building flutter tool...
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
I've reviewed similar issues, however none produced satisfactory results. I tried reproducing the issue directly on an Ubuntu server and everything ran fine; it would seem it is a WSL related issue.
System Information
System information:
Windows 10 Pro 1809 17763.737
Linux <Hostname> 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce
Before either I ensured I had prerequisites installed and my system fully upgraded:
sudo apt update
sudo apt upgrade
sudo apt install curl git unzip xz-utils libglu1-mesa curl
Method One: SDK Install
wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.9.1+hotfix.4-stable.tar.xz
tar xvf flutter_linux_v1.9.1+hotfix.4-stable.tar.xz
# flutter commands work now
./flutter/bin/flutter config --no-analytics # this should be the default setting btw
./flutter/bin/flutter --version
# lets switch over to master
./flutter/bin/flutter channel master
# fails
./flutter/bin/flutter upgrade
# any flutter command will now fail since switching to master channel
./flutter/bin/flutter --version # fails
./flutter/bin/flutter doctor # fails
Method Two: Git Install
git clone -b master https://github.com/flutter/flutter.git
# any flutter command will now fail:
./flutter/bin/flutter --version
./flutter/bin/flutter upgrade
./flutter/bin/flutter doctor
Logs
Method One Logs:
$ git clone -b master https://github.com/flutter/flutter.git
$ ./flutter/bin/flutter --version
Downloading Dart SDK from Flutter engine 49815128157d80803da9f36c69493b2a09aacd03...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 259M 100 259M 0 0 29.9M 0 0:00:08 0:00:08 --:--:-- 31.5M
Building flutter tool...
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
#... just keeps failing
Method Two Logs:
$ wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.9.1+hotfix.4-stable.tar.xz
$ tar xvf flutter_linux_v1.9.1+hotfix.4-stable.tar.xz
# ... long but nominal output
$ ./flutter/bin/flutter --version
Flutter 1.9.1+hotfix.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision cc949a8e8b (4 days ago) • 2019-09-27 15:04:59 -0700
Engine • revision b863200c37
Tools • Dart 2.5.0
$ ./flutter/bin/flutter channel master
Switching to flutter channel 'master'...
git: From https://github.com/flutter/flutter
git: * [new branch] dnfield-patch-1 -> origin/dnfield-patch-1
git: * [new branch] jiahaog-manual-roll-engine -> origin/jiahaog-manual-roll-engine
git: 2de1e4f4a..c9d920f30 master -> origin/master
git: Switched to a new branch 'master'
git: Branch 'master' set up to track remote branch 'master' from 'origin'.
$ ./flutter/bin/flutter upgrade
Downloading Dart SDK from Flutter engine 49815128157d80803da9f36c69493b2a09aacd03...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 259M 100 259M 0 0 29.8M 0 0:00:08 0:00:08 --:--:-- 30.7M
Building flutter tool...
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
# ... just keeps failing