在Ubuntu 16.4 LTS上安装32位软件包(lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc ++ 6)的命令


8

我想在我的Ubuntu 16.4 LTS 64位上安装android studio 2.1,所以我按照google ..提供的android开发人员指南网站上的说明进行操作,他们说我应该安装32位库,因为android studio使用它们。

我的问题是当我键入命令时:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

我收到此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'

1
别。更好的方法:安装virtualbox并在其中安装32位版本的Ubuntu,然后使用该版本对其进行编码。这远没有麻烦。
Rinzwind '16

看看我的答案是否有效。我没有可以测试是否安装了android studio的系统(请评论/ pm我,我会添加更多内容)。
Rinzwind '16

Answers:


11

您应该使系统不受32位软件的影响。32位即将淘汰,再也不会回来。习惯于64位。如果可能,请忽略32位软件。现在我的意见在这里...

最好的方法是安装virtualBox或VM Ware Player,然后在其中安装32位Ubuntu(链接到32位16.04.1的洪流)。然后安装android studio。它比将其与当前安装混淆起来更好。


如果您仍要在当前系统中安装它,那么安装32位的方法应该是添加体系结构,更新,然后应该已经导入了32位软件包,

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

这将显示...

...
The following additional packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libgcc1:i386 libgpm2:i386 libtinfo5:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libc6:i386 libgcc1:i386 libgpm2:i386
  libncurses5:i386 libstdc++6:i386 libtinfo5:i386
0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
Need to get 2960 kB of archives.
After this operation, 12,9 MB of additional disk space will be used.

并且应该安装android studio所需的32位组件。


我将使用一个虚拟机,以防止混合的32位与64位包
A.Youssouf
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.