Ubuntu16 64位安装android studio的32位库 sudo apt-get install lib32bz2-1.0失败

Ubuntu16 64位安装android studio时需要使用以下命令安装一些 32 位库:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

但安装时出现错误:
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'

解决方法,使用以下命令进行安装:

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

参考:
1、 https://developer.android.com/studio/install.html

2、https://askubuntu.com/questions/637113/unable-to-locate-package-lib32bz2-1-0

你可能感兴趣的:(Linux,Android学习笔记)