Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve host when initializing flutter #35

Closed
agucova opened this issue Mar 10, 2021 · 2 comments
Closed

Could not resolve host when initializing flutter #35

agucova opened this issue Mar 10, 2021 · 2 comments

Comments

@agucova
Copy link

agucova commented Mar 10, 2021

I'm copying the issue I made on the main flutter repo.

When installing the Flutter snap and initializing it through any command, the line curl: (6) Could not resolve host: stable appears, with no clear side effect.

Checking DNS logs show indeed failed A and AAAA DNS requests for stable and stable.lan.

Steps to Reproduce

  1. Install Flutter using snap. snap install --classic flutter
  2. Run flutter doctor

This is on Pop_OS! 20.10 (Ubuntu derivative).

Logs

Logs
➜ sudo snap install flutter --classic
flutter 0+git.0a044ad from Flutter Team✓ installed

➜ flutter doctor -v
Initializing Flutter
Downloading https://storage.googleapis.com/flutter_infra/releases/beta/linux/flutter_linux_2.0.1-beta.tar.xz
stable/linux/flutter_linux_2.0.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  58.4M      0  0:00:09  0:00:09 --:--:-- 64.3M
curl: (6) Could not resolve host: stable
Flutter initialized
Flutter 2.0.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (3 days ago) • 2021-03-04 09:47:48 -0800
Engine • revision 40441def69
Tools • Dart 2.12.0
Running "flutter pub get" in flutter_tools...                      11.3s
[✓] Flutter (Channel beta, 2.0.1, on Linux, locale en_US.UTF-8)
    • Flutter version 2.0.1 at /home/agucova/snap/flutter/common/flutter
    • Framework revision c5a4b4029c (3 days ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0
    • Flutter download mirror https://storage.googleapis.com

[!] Android toolchain - develop for Android devices
    • Android SDK at /usr/lib/android-sdk
    ✗ 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.

    ✗ No valid Android SDK platforms found in /usr/lib/android-sdk/platforms.
      Directory was empty.
    • Try re-installing or updating your Android SDK,
      visit https://flutter.dev/docs/get-started/install/linux#android-setup for
      detailed instructions.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for
      detailed instructions).

[✓] VS Code (version 1.53.2)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.50 beta

! Doctor found issues in 2 categories.

@agucova
Copy link
Author

agucova commented Mar 10, 2021

This only happens when installing via snap.

@MarcusTomlinson
Copy link
Contributor

Thanks for the detailed report @agucova. This is now fixed in the latest snap release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants