尝试在'sudo apt-get update'之后在Ubuntu 16.04.1 LTS中安装libstdc ++ 6:i386或ia32-libs软件包

时间:2017-05-03 20:26:33

标签: linux ubuntu

我想安装它的原因,是因为我在创建avd时遇到错误,idea.log显示'WARN - vdmanager.AvdManagerConnection - 无法在AVD文件夹中创建sdcard'

sudo apt-get install libstdc++6:i386
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:
 libstdc++6:i386 : Depends: libc6:i386 (>= 2.18) but it is not going to be installed
                   Depends: libgcc1:i386 (>= 1:4.2) but it is not installable
E: Unable to correct problems, you have held broken packages.

我尝试过的事情并没有使avd创造成为可能: -

sudo dpkg --add-architecture i386
sudo apt-get install -f
sudo rm -R -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
chmod -R 777 ../tools
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++
sudo apt-get install libgcc1:i386
sudo apt-get install libc6:i386 libstdc++6:i386
sudo apt-get install libbz2-1.0:i386

我得到的是:-Package''没有安装候选人

sudo apt-get install ia32-libs

显示

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ia32-libs

我的sources.list: -

# See sources.list(5) manpage for more information
# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.
deb http://us.archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu trusty main restricted

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted

deb http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted

此问题已在早些时候参加,但在ubuntu 16的更新软件包列表中,某些解决方案似乎对我无效。请让我知道我做错了什么或者有关错误的更多信息是需要的。

提前致谢。

1 个答案:

答案 0 :(得分:0)

我找到了一个解决方案,希望它也适用于其他人

访问此网站 - > https://repogen.simplylinux.ch/ 并选择您所在的国家'并且'发布'以及必要的分支机构'并且'更新'并转到页面的末尾,直到“生成列表”为止。按钮并单击它以获取新的sources.list

复制“来源列表”中的文字'在本地文件系统的/ etc / apt /中打开文本字段和打开sources.list文件并以可编辑模式打开,即在sudo模式下编辑,用新复制数据替换当前数据并保存

打开终端输入以下命令: sudo apt-get update sudo apt-get install lib32stdc ++ 6

你结束了。现在,只需检查制作AVD的问题是否已经消失。