Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save caisback/171650fdf4a7ed5a2d29a97aaef42d8d to your computer and use it in GitHub Desktop.

Select an option

Save caisback/171650fdf4a7ed5a2d29a97aaef42d8d to your computer and use it in GitHub Desktop.
Flutter - How to install on Ubuntu 21.04
  • $ sudo snap install flutter --classic
flutter 0+git.e75662a from Flutter Team✓ installed
  • $ flutter sdk-path
Initializing Flutter
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  136k  100  136k    0     0   123k      0  0:00:01  0:00:01 --:--:--  123k
Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.2.1-stable.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  573M  100  573M    0     0  6219k      0  0:01:34  0:01:34 --:--:-- 5677k
Flutter initialized
  ╔════════════════════════════════════════════════════════════════════════════╗
  ║ A new version of Flutter is available!                                     ║
  ║                                                                            ║
  ║ To update to the latest version, run "flutter upgrade".                    ║
  ╚════════════════════════════════════════════════════════════════════════════╝


Flutter 2.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 02c026b03c (4 weeks ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝


/home/bboy/snap/flutter/common/flutter
  • $ flutter upgrade
Upgrading Flutter to 2.2.2 from 2.2.1 in
/home/bboy/snap/flutter/common/flutter...
Downloading Dart SDK from Flutter engine 91c9fc8fe011352879e3bb6660966eafc0847233...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0  199M    0 17969    0     0  17261      0  3:21:38  0:00:01  3:21:37 17261
  2  199M    2 5838k    0     0  2869k      0  0:01:11  0:00:02  0:01:09 2867k
  6  199M    6 12.3M    0     0  4169k      0  0:00:48  0:00:03  0:00:45 4168k
  9  199M    9 19.0M    0     0  4827k      0  0:00:42  0:00:04  0:00:38 4825k
 12  199M   12 25.6M    0     0  5220k      0  0:00:39  0:00:05  0:00:34 5469k
 16  199M   16 32.3M    0     0  5485k      0  0:00:37  0:00:06  0:00:31 6623k
 19  199M   19 38.2M    0     0  5562k      0  0:00:36  0:00:07  0:00:29 6659k
 22  199M   22 44.8M    0     0  5718k      0  0:00:35  0:00:08  0:00:27 6659k
 25  199M   25 51.5M    0     0  5840k      0  0:00:34  0:00:09  0:00:25 6657k
 29  199M   29 58.1M    0     0  5933k      0  0:00:34  0:00:10  0:00:24 6652k
 32  199M   32 64.7M    0     0  6011k      0  0:00:33  0:00:11  0:00:22 6646k
 35  199M   35 70.6M    0     0  6011k      0  0:00:33  0:00:12  0:00:21 6643k
 38  199M   38 77.3M    0     0  6074k      0  0:00:33  0:00:13  0:00:20 6646k
 42  199M   42 83.9M    0     0  6127k      0  0:00:33  0:00:14  0:00:19 6646k
 45  199M   45 90.6M    0     0  6173k      0  0:00:33  0:00:15  0:00:18 6653k
 48  199M   48 97.2M    0     0  6213k      0  0:00:32  0:00:16  0:00:16 6659k
 51  199M   51  103M    0     0  6203k      0  0:00:32  0:00:17  0:00:15 6665k
 55  199M   55  109M    0     0  6237k      0  0:00:32  0:00:18  0:00:14 6662k
 58  199M   58  116M    0     0  6267k      0  0:00:32  0:00:19  0:00:13 6662k
 61  199M   61  123M    0     0  6295k      0  0:00:32  0:00:20  0:00:12 6662k
 64  199M   64  129M    0     0  6296k      0  0:00:32  0:00:21  0:00:11 6563k
 67  199M   67  135M    0     0  6290k      0  0:00:32  0:00:22  0:00:10 6587k
 71  199M   71  141M    0     0  6287k      0  0:00:32  0:00:23  0:00:09 6468k
 74  199M   74  147M    0     0  6285k      0  0:00:32  0:00:24  0:00:08 6351k
 77  199M   77  153M    0     0  6287k      0  0:00:32  0:00:25  0:00:07 6258k
 79  199M   79  159M    0     0  6262k      0  0:00:32  0:00:26  0:00:06 6120k
 83  199M   83  165M    0     0  6266k      0  0:00:32  0:00:27  0:00:05 6163k
 86  199M   86  171M    0     0  6280k      0  0:00:32  0:00:28  0:00:04 6245k
 89  199M   89  177M    0     0  6273k      0  0:00:32  0:00:29  0:00:03 6214k
 92  199M   92  183M    0     0  6271k      0  0:00:32  0:00:30  0:00:02 6188k
 95  199M   95  189M    0     0  6267k      0  0:00:32  0:00:31  0:00:01 6295k
 98  199M   98  196M    0     0  6266k      0  0:00:32  0:00:32 --:--:-- 6264k
100  199M  100  199M    0     0  6267k      0  0:00:32  0:00:32 --:--:-- 6191k
Building flutter tool...

Upgrading engine...
Downloading android-arm-profile/linux-x64 tools...               1,096ms
Downloading android-arm-release/linux-x64 tools...                 913ms
Downloading android-arm64-profile/linux-x64 tools...               563ms
Downloading android-arm64-release/linux-x64 tools...             1,340ms
Downloading android-x64-profile/linux-x64 tools...                 942ms
Downloading android-x64-release/linux-x64 tools...                 690ms
Downloading android-x86 tools...                                    3.7s
Downloading android-x64 tools...                                    3.8s
Downloading android-arm tools...                                 1,927ms
Downloading android-arm-profile tools...                           976ms
Downloading android-arm-release tools...                            3.5s
Downloading android-arm64 tools...                               2,535ms
Downloading android-arm64-profile tools...                       1,317ms
Downloading android-arm64-release tools...                       1,135ms
Downloading android-x64-profile tools...                         1,146ms
Downloading android-x64-release tools...                         1,907ms
Downloading android-x86-jit-release tools...                     1,409ms
Downloading Web SDK...                                              5.7s
Downloading package sky_engine...                                  812ms
Downloading flutter_patched_sdk tools...                           736ms
Downloading flutter_patched_sdk_product tools...                   881ms
Downloading linux-x64 tools...                                      4.6s
Downloading linux-x64/font-subset tools...                         663ms

Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d79295af24 (11 days ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2, on Linux, locale en_PH.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.57.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment