irmoah80
irmoah80

Reputation: 393

Flutter Error : .../packages/flutter_tools: No such file or directory - install

I just want to install flutter correctly on linux , many time I get this Errors:

/home/beit/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/beit/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

I saw some solutions for this problem such as deleting the "bin" folder, run pub repair, and stuff but they could not solve the problem

I just want to start Flutter

note: I download the Dart SDK package many times, and use "flutter doctor"

I use the following command line for installation (as Linux install doc in flutter.dev):

sudo snap install flutter --classic

Upvotes: 2

Views: 677

Answers (1)

irmoah80
irmoah80

Reputation: 393

i found the solution , use manually install to solve this problem 1- first delete your previous version of flutter use :

snap remove flutter

2- next , download flutter SDK from here: please download stable channel

3- follow this link: if you use Linux

4 - do the optionally step:

flutter precache

done! , you can use "flutter doctor" command line to check other things.

Upvotes: 1

Related Questions