Linux 16.04 - 无法安装 Android Studio?

Linux 16.04 - 无法安装 Android Studio?

我正在关注官方指导

$ sudo apt-get install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package zlib.i686
E: Couldn't find any package by glob 'zlib.i686'
E: Couldn't find any package by regex 'zlib.i686'
E: Unable to locate package ncurses-libs.i686
E: Couldn't find any package by glob 'ncurses-libs.i686'
E: Couldn't find any package by regex 'ncurses-libs.i686'
E: Unable to locate package bzip2-libs.i686
E: Couldn't find any package by glob 'bzip2-libs.i686'
E: Couldn't find any package by regex 'bzip2-libs.i686'

甚至还有:

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

结果:

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

尝试

sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6

对我来说,这个方法有效。如果你没有启用多架构支持,你需要运行

sudo dpkg --add-architecture i386
sudo apt-get update

相关内容