Flutter Doctor安装失败,原因是ubuntu 18.10上的lib32stdc ++ 6软件包

时间:2019-04-18 06:58:01

标签: ubuntu flutter

我想在Ubuntu 18.10上安装Flutter。我搜索了很多建议,但无法正常工作。从Flutter安装所需的软件包时,它失败了。我运行flutter doctor --verbose时的输出是这样的:

[!] Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
    • Flutter version 1.2.1 at /home/akhyar/flutter
    • Framework revision 8661d8aecd (9 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information
      On Debian/Ubuntu/Mint: sudo apt-get install lib32stdc++6
      On Fedora: dnf install libstdc++.i686
      On Arch: pacman -S lib32-libstdc++5 (you need to enable multilib: https://wiki.archlinux.org/index.php/Official_repositories#multilib)

然后我尝试使用sudo apt-get install lib32stdc++6安装软件包,但是ubuntu给了我这样的结果:

sudo apt-get install lib32stdc++6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 lib32stdc++6 : Depends: gcc-8-base (= 8.2.0-7ubuntu1) but 8.3.0-6ubuntu1~18.04 is to be installed
                Depends: lib32gcc1 (>= 1:4.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试sudo apt -f install,但是没有安装或删除任何东西。有人会遇到类似的问题吗?请帮助我

0 个答案:

没有答案
相关问题