1

This is the error log am getting when i try to upgrade flutter

[flutter] flutter upgrade
ProcessException: Process exited abnormally:
remote: Repository not found.
fatal: repository 'https://github.com/marzookavc/flutter.git/' not found
Command: git fetch --tags
exit code 1

flutter.git is not my project name how to change the url

committing and pushing is working perfectly! and cannot change the channel also

Marzook
  • 371
  • 1
  • 5
  • 20

5 Answers5

5

It looks like you may have cloned a fork of the Flutter repository and then subsequently deleted it. Assuming you made no changes/commits, you should be able to fix it by updating the remote to the official Flutter repo:

# In your *Flutter SDK* folder (not your project) in a terminal
git remote set-url origin https://github.com/flutter/flutter.git
flutter upgrade
Danny Tuppeny
  • 40,147
  • 24
  • 151
  • 275
  • mine does show the right git repo, but still not able to upgrade `unable to access 'https://github.com/flutter/flutter.git/': Recv failure: Connection was reset` and I do have connection – Omar Qataberi Aug 03 '23 at 06:14
1

I think you are trying to upgrade your flutter version, but the current folder that store your flutter framework is pointing to 'https://github.com/marzookavc/flutter.git/', maybe you forked a repository from the original Flutter repo before, but it's not accessible now.

To use and upgrade Flutter correctly, the fastest way is just to redownload the Flutter package from here. It will have correct config that save you time in debugging the correct origin link of the repo

Bach
  • 2,928
  • 1
  • 6
  • 16
0

Between Bach and dm_tr, they have what I think is the correct answer. It looks like you have installed flutter from https://github.com/marzookavc/flutter.git/.

Which means when you run flutter upgrade it is trying to connect to that repository to pull in the latest changes. So if you do not want to do as Bach suggests and simply reinstall flutter on your machine as per the recommended methods.

You can change the remote for your flutter install. So for example if you have flutter installed at. ~/flutter You will need to go to that directory, check the git remotes and change them accordingly.

As an example in the directory where I have flutter installed, the remotes look like: enter image description here

Chad Lamb
  • 564
  • 3
  • 9
0

I had the same problem and I solved this by forking to this link: flutter

after that run again: flutter upgrade in your project terminal

0
  1. Download the following installation bundle to get the latest stable release of the Flutter SDK: https://docs.flutter.dev/get-started/install/windows
  2. Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK (for example, C:\src\flutter).
  3. cd C:\src\flutter
  4. git remote set-url origin https://github.com/flutter/flutter.git
  5. flutter upgrade
  6. flutter pub get

done.

Ravshan
  • 471
  • 5
  • 2