Unable to upgrade Flutter: no upstream repository configured.

1,173 views
Skip to first unread message

Michael Tawiah Sowah

unread,
Feb 2, 2018, 1:30:29 PM2/2/18
to Flutter Dev
Hi, When I run flutter upgrade on the dev channel I get:
Unable to upgrade Flutter: no upstream repository configured.

Ian Hickson

unread,
Feb 2, 2018, 3:33:10 PM2/2/18
to Michael Tawiah Sowah, Flutter Dev
How did you download flutter originally?

On Fri, Feb 2, 2018 at 10:30 AM Michael Tawiah Sowah <michael...@gmail.com> wrote:
Hi, When I run flutter upgrade on the dev channel I get:
Unable to upgrade Flutter: no upstream repository configured.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸

Michael Tawiah Sowah

unread,
Feb 2, 2018, 3:35:33 PM2/2/18
to Flutter Dev

Michael Tawiah Sowah

unread,
Feb 2, 2018, 3:38:22 PM2/2/18
to Flutter Dev
 I even just deleted and did it again just a few minutes ago...git clone -b dev https://github.com/flutter/flutter.git
and I just did flutter upgrade on the master channel and got same response...


On Friday, February 2, 2018 at 8:33:10 PM UTC, Ian Hickson wrote:

Ian Hickson

unread,
Feb 2, 2018, 3:41:12 PM2/2/18
to Michael Tawiah Sowah, Flutter Dev
I just tried this and it worked for me:

Cloning into 'flutter'...
remote: Counting objects: 111246, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 111246 (delta 16), reused 24 (delta 9), pack-reused 111189
Receiving objects: 100% (111246/111246), 33.14 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (83019/83019), done.
$ cd flutter/
$ bin/flutter --version
Downloading Dart SDK 2.0.0-dev.16.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 70.1M  100 70.1M    0     0  50.0M      0  0:00:01  0:00:01 --:--:-- 50.1M
Building flutter tool...
Flutter 0.0.22 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 3001b3307d (3 days ago) • 2018-01-30 11:37:15 -0800
Engine • revision 8f2d72b183
Tools • Dart 2.0.0-dev.16.0
$ bin/flutter upgrade
Upgrading Flutter from /usr/local/google/home/ianh/dev/temp/flutter...
Already up to date.
Current branch dev is up to date.

Upgrading engine...
Downloading Material fonts...
Downloading package sky_engine...
Downloading common tools...
Downloading linux-x64 tools...
Downloading linux-x64 tools...
Downloading android-arm-profile/linux-x64 tools...
Downloading android-arm-release/linux-x64 tools...
Downloading android-x86 tools...
Downloading android-x64 tools...
Downloading android-arm tools...
Downloading android-arm-profile tools...
Downloading android-arm-release tools...
Downloading Gradle Wrapper...

Flutter 0.0.22 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 3001b3307d (3 days ago) • 2018-01-30 11:37:15 -0800
Engine • revision 8f2d72b183
Tools • Dart 2.0.0-dev.16.0

Running flutter doctor...
[...]
$

...are you sure you're running the "flutter" tool from the same repository that you're trying to upgrade?

Michael Tawiah Sowah

unread,
Feb 2, 2018, 4:40:45 PM2/2/18
to Flutter Dev
C:\WINDOWS\system32>flutter upgrade
Unable to upgrade Flutter: no upstream repository configured.

this is mine and still having the problem...am using windows 10 os

C:\Windows\System32>flutter channel
Flutter channels:
  alpha
  beta
  dev
  engine_pre_roll_sivachandra_12_12_17
  hackathon
* master
  mehmetf-fix-cache
  pre_roll_engine
  revert-14392-fix-generic
  strong-option
  updated_tool_test_inst

C:\Windows\System32>d:

D:\>cd flutter

D:\flutter>flutter upgrade
Unable to upgrade Flutter: no upstream repository configured.

Greg Spencer

unread,
Feb 2, 2018, 5:08:55 PM2/2/18
to Michael Tawiah Sowah, Flutter Dev
Michael, you still may be using the wrong flutter executable, because you're not giving the full path when you run it, and another one might be in your PATH.

Try these commands in a clean directory:
cd .\flutter
.\bin\flutter.bat upgrade

And see if that works.

-Greg.

Michael Thomsen

unread,
Feb 2, 2018, 5:14:51 PM2/2/18
to Greg Spencer, Michael Tawiah Sowah, Flutter Dev
You can also run this command to see which flutter command is in path:

where flutter

Ian Hickson

unread,
Feb 2, 2018, 5:18:59 PM2/2/18
to Michael Thomsen, Greg Spencer, Michael Tawiah Sowah, Flutter Dev
What do you see if you run flutter doctor?

Michael Tawiah Sowah

unread,
Feb 2, 2018, 5:20:52 PM2/2/18
to Flutter Dev
it worked finally and I switched to master and while trying to switch back to dev:

D:\>flutter channel dev
Switching to flutter channel 'dev'...
git: fatal: A branch named 'dev' already exists.
Switching channels failed with error code 128.

Michael Tawiah Sowah

unread,
Feb 2, 2018, 5:23:55 PM2/2/18
to Flutter Dev
D:\flutter\bin>flutter.bat upgrade
Unable to upgrade Flutter: no upstream repository configured.



Michael Tawiah Sowah

unread,
Feb 2, 2018, 11:07:00 PM2/2/18
to Flutter Dev
any updates on this

Ian Hickson

unread,
Feb 3, 2018, 1:25:21 AM2/3/18
to Michael Tawiah Sowah, Flutter Dev
Please try running the following commands and for each one tell us what it says:

flutter doctor

where flutter

Michael Tawiah Sowah

unread,
Feb 3, 2018, 1:30:00 AM2/3/18
to Flutter Dev
ok here its is:
[√] Flutter (on Microsoft Windows [Version 10.0.16299.125], locale en-US, channel dev)
    • Flutter version 0.0.22 at D:\flutter
    • Framework revision 3001b3307d (3 days ago), 2018-01-30 11:37:15 -0800
    • Engine revision 8f2d72b183
    • Tools Dart version 2.0.0-dev.16.0
    • Engine Dart version 2.0.0-edge.7af4db0ea091dddca6b2da851e6dda8d7f9467e8

[√] Android toolchain - develop for Android devices (Android SDK 27.0.0)
    • Android SDK at C:\Users\MichaelSowah\AppData\Local\Android\android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.0
    • ANDROID_HOME = C:\Users\MichaelSowah\AppData\Local\Android\android-sdk
    • Java binary at: C:\Program Files\Android\Android Studio Preview\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1012-b01)

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio Preview
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1012-b01)

[√] IntelliJ IDEA Community Edition (version 2017.3)
    • Flutter plugin version 21.0.3
    • Dart plugin version 173.4301.22

[-] Connected devices
    • None


D:\flutter>where flutter
D:\flutter\bin\flutter
D:\flutter\bin\flutter.bat

Ian Hickson

unread,
Feb 3, 2018, 1:36:39 AM2/3/18
to Michael Tawiah Sowah, Flutter Dev
What does it say if you run:

git rev-parse @{u}

Michael Tawiah Sowah

unread,
Feb 3, 2018, 5:39:35 PM2/3/18
to Flutter Dev

D:\flutter>git rev-parse @{u}
3001b3307dc1d47fcde9697dd2a82b77450c2a57

Michael Tawiah Sowah

unread,
Feb 5, 2018, 9:56:35 AM2/5/18
to Flutter Dev
Ian Hickson and Michael Thomsen

I am still getting this  

D:\flutter>flutter upgrade
Unable to upgrade Flutter: no upstream repository configured.

D:\flutter>flutter channel dev
Switching to flutter channel 'dev'...
git: fatal: A branch named 'dev' already exists.
Switching channels failed with error code 128.



Ian Hickson

unread,
Feb 5, 2018, 8:25:24 PM2/5/18
to Michael Tawiah Sowah, Flutter Dev
I don't understand how that is possible.

Can you try adding a printTrace(e) in packages/flutter_tools/lib/src/commands/upgrade.dart just after the first "catch" in the file, and then deleting your flutter/bin/cache directory, and then trying again, with --verbose set? What is the output?
--

--
Ian Hickson

😸

Michael Tawiah Sowah

unread,
Feb 5, 2018, 8:58:41 PM2/5/18
to Flutter Dev
Ian Hickson this is the output

PS D:\> flutter upgrade --verbose
[  +14 ms] [D:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +130 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +11 ms] fatal: no upstream configured for branch 'master'
[   +1 ms] [D:\flutter\] git rev-parse --abbrev-ref HEAD
[ +120 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] master
[   +1 ms] [D:\flutter\] git log -n 1 --pretty=format:%H
[ +116 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] 3001b3307dc1d47fcde9697dd2a82b77450c2a57
[        ] [D:\flutter\] git log -n 1 --pretty=format:%ar
[ +101 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 6 days ago
[   +2 ms] [D:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +97 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v0.0.22-0-g3001b3307
[ +213 ms] [D:\flutter\] git rev-parse @{u}
[ +117 ms] fatal: no upstream configured for branch 'master'
[  +16 ms] "flutter upgrade" took 187ms.
Unable to upgrade Flutter: no upstream repository configured.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1      UpgradeCommand.runCommand (package:flutter_tools/src/commands/upgrade.dart:37)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#3      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:219)
<asynchronous suspension>
#4      CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#5      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284)
<asynchronous suspension>
#6      CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#7      new Future.sync (dart:async/future.dart:222)
#8      CommandRunner.run (package:args/command_runner.dart:109)
#9      FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#10     run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#11     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#12     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#13     _rootRun (dart:async/zone.dart:1126)
#14     _CustomZone.run (dart:async/zone.dart:1023)
#15     runZoned (dart:async/zone.dart:1501)
#16     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#17     run (package:flutter_tools/runner.dart:60)
<asynchronous suspension>
#18     main (package:flutter_tools/executable.dart:44)
<asynchronous suspension>
#19     main (file:///D:/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#20     _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:275)
#21     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)


[ +261 ms] ensureAnalyticsSent: 251ms
[   +6 ms] exiting with code 1

Michael Tawiah Sowah

unread,
Feb 5, 2018, 9:15:29 PM2/5/18
to Flutter Dev
PS D:\flutter> flutter --version
Flutter 0.0.22 • channel unknown • unknown source
Framework • revision 3001b3307d (6 days ago) • 2018-01-30 11:37:15 -0800
Engine • revision 8f2d72b183
Tools • Dart 2.0.0-dev.16.0



Michael Tawiah Sowah

unread,
Feb 5, 2018, 9:27:15 PM2/5/18
to Flutter Dev
thats the output

D:\flutterapps>flutter upgrade --verbose
Checking Dart SDK version...
Downloading Dart SDK 2.0.0-dev.16.0...
Unzipping Dart SDK...
Updating flutter tool...
[  +15 ms] [D:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +162 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] fatal: no upstream configured for branch 'alpha'
[   +1 ms] [D:\flutter\] git rev-parse --abbrev-ref HEAD
[ +129 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] alpha
[   +1 ms] [D:\flutter\] git log -n 1 --pretty=format:%H
[ +153 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] 3001b3307dc1d47fcde9697dd2a82b77450c2a57
[        ] [D:\flutter\] git log -n 1 --pretty=format:%ar
[  +99 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 6 days ago
[   +1 ms] [D:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +120 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v0.0.22-0-g3001b3307
[ +236 ms] [D:\flutter\] git rev-parse @{u}
[ +117 ms] fatal: no upstream configured for branch 'alpha'
[   +3 ms] Exit code 128 from: git rev-parse @{u}:
           fatal: no upstream configured for branch 'alpha'
[  +14 ms] "flutter upgrade" took 190ms.
Unable to upgrade Flutter: no upstream repository configured.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1      UpgradeCommand.runCommand (package:flutter_tools/src/commands/upgrade.dart:38)

Ian Hickson

unread,
Feb 5, 2018, 9:30:38 PM2/5/18
to Michael Tawiah Sowah, Flutter Dev
What happens if you run "git remote -v"?

Michael Tawiah Sowah

unread,
Feb 5, 2018, 9:32:21 PM2/5/18
to Flutter Dev
D:\flutter>git remote -v

Ian Hickson

unread,
Feb 5, 2018, 9:36:54 PM2/5/18
to Michael Tawiah Sowah, Flutter Dev
How about "git branch -vv"?

I wonder if the problem is related to https://github.com/flutter/flutter/pull/14450

Michael Tawiah Sowah

unread,
Feb 5, 2018, 9:39:56 PM2/5/18
to Flutter Dev
D:\flutter>git branch -vv
* alpha  3001b3307 Try to make transitioning channels actually work. (#14353)
  dev    3001b3307 [origin/dev] Try to make transitioning channels actually work. (#14353)
  master 3001b3307 Try to make transitioning channels actually work. (#14353)

Ian Hickson

unread,
Feb 5, 2018, 10:10:34 PM2/5/18
to Michael Tawiah Sowah, Flutter Dev
interesting. try "git checkout -B dev", that should get you into a working state again. Not sure why you ended up in a bad state though...

Michael Tawiah Sowah

unread,
Feb 5, 2018, 10:15:04 PM2/5/18
to Flutter Dev
what about this 

D:\flutter>flutter channel master
Switching to flutter channel 'master'...
git: fatal: A branch named 'master' already exists.
Switching channels failed with error code 128.

Ian Hickson

unread,
Feb 5, 2018, 11:11:28 PM2/5/18
to Michael Tawiah Sowah, Flutter Dev
Yeah, that's definitely the bug I cited before. If anyone knows about git, we're looking for advice on how to fix it, see https://github.com/flutter/flutter/pull/14450 .

Michael Tawiah Sowah

unread,
Feb 6, 2018, 9:25:53 AM2/6/18
to Flutter Dev
Is there any work around for this at the moment?

Michael Thomsen

unread,
Feb 6, 2018, 9:45:49 AM2/6/18
to Michael Tawiah Sowah, Flutter Dev
As a work around, you can clone a new repo from the desired branch (e.g., for dev use: git clone -b dev https://github.com/flutter/flutter.git).

That should give you the same as upgrading an existing repo.

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

Michael Tawiah Sowah

unread,
Feb 6, 2018, 11:30:57 AM2/6/18
to Flutter Dev
and if I want to be on the master branch?

Michael Thomsen

unread,
Feb 6, 2018, 11:32:06 AM2/6/18
to Michael Tawiah Sowah, Flutter Dev
Then just:
git clone https://github.com/flutter/flutter.git

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

Michael Tawiah Sowah

unread,
Feb 6, 2018, 11:46:51 AM2/6/18
to Flutter Dev
and to update the branch when there's something new?

Michael Thomsen

unread,
Feb 6, 2018, 12:19:58 PM2/6/18
to Michael Tawiah Sowah, Flutter Dev
You should be able to just:
git pull


To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

Michael Tawiah Sowah

unread,
Feb 7, 2018, 11:08:43 AM2/7/18
to Flutter Dev
what's the latest version of Flutter on both master and dev? is it 0.0.22 or 0.0.23?

Michael Tawiah Sowah

unread,
Feb 7, 2018, 11:35:04 AM2/7/18
to Flutter Dev
cool, noticed this fix https://github.com/flutter/flutter/pull/14507 fixes the Flutter channel issues...
Reply all
Reply to author
Forward
0 new messages