Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 扑动医生投掷错误';curl:(6)无法解析主机:storage.googleapis.com';_Flutter_Curl - Fatal编程技术网

Flutter 扑动医生投掷错误';curl:(6)无法解析主机:storage.googleapis.com';

Flutter 扑动医生投掷错误';curl:(6)无法解析主机:storage.googleapis.com';,flutter,curl,Flutter,Curl,我已使用以下命令在我的Ubuntu-16.04 LTS机器上安装了颤振: sudo按扣安装颤振——经典版 然后我运行命令:flatterdoctor 我得到以下错误: (base) mickey@KRY:~$ flutter doctor Initializing Flutter Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.ta

我已使用以下命令在我的
Ubuntu-16.04 LTS
机器上安装了颤振:

sudo按扣安装颤振——经典版

然后我运行命令:
flatterdoctor

我得到以下错误:

(base) mickey@KRY:~$ flutter doctor
Initializing Flutter
Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 51  510M   51  263M    0     0   213k      0  0:40:47  0:21:02  0:19:45     0
curl: (56) **OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 113**
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Flutter initialized
Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to install Flutter, see the instructions at:
       https://flutter.dev/get-started
Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to install Flutter, see the instructions at:
       https://flutter.dev/get-started


(base) mickey@KRY:~$ flutter doctor
Initializing Flutter
Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0**curl: (6) Could not resolve host: storage.googleapis.com**
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Flutter initialized
Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to install Flutter, see the instructions at:
       https://flutter.dev/get-started
Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to install Flutter, see the instructions at:
       https://flutter.dev/get-started
(base) mickey@KRY:~$
我是个新手,刚开始学。我哪里做错了? 有人能帮我解决这个问题吗

谢谢,,
Kishor。

颤振脚本检查工作目录中是否有
.git
目录。如果此目录不存在,最好重新克隆

git克隆-b测试版https://github.com/flutter/flutter.git


然后尝试打开
flatter\u console.bat
并运行任何flatter命令以检查其是否工作。

感谢您对上述查询的回答。我试图再次运行命令“颤振医生”。问题解决了。我想问题是由于网络速度。我重新运行了命令,它成功了。非常感谢您的快速回答。还有一件事是,即使我使用“sudo snap install flatter--classic”进行安装,我也应该在我的工作目录中检查.git目录吗?是的。如果我的回答解决了您的问题,您可以单击勾号将其标记为已接受