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

问题描述 投票:0回答:3

我想安装这个的原因是因为我在创建 avd 时遇到错误,idea.log 显示“警告 - 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

我的来源.列表:-

# 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 的更新包列表中似乎对我不起作用。请让我知道我做错了什么或需要有关错误的更多信息。

提前致谢。

linux ubuntu
3个回答
0
投票

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

访问此网站 -> https://repogen.simplylinux.ch/ 并选择您的“国家/地区”和“发布”以及必要的“分支”和“更新”,然后转到页面末尾直到“生成列表”按钮,然后单击它以获取新的来源。列表

复制“sources list”文本字段中的文本,然后打开本地文件系统中/etc/apt/中的sources.list文件,并以可编辑模式打开,即以sudo模式进行编辑,用新复制的数据替换当前数据并保存它

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

你完成了。现在,检查制作 AVD 的问题是否消失了。


0
投票
sudo apt-get install -y libstdc++6-i386-cross

此版本的

ibstdc++6-i386-cross
- GNU 标准 C++ 库 v3 (i386) 适用于我


0
投票

尝试这个命令:

sudo apt install gcc-multilib g++-multilib libc6-dev-i386

© www.soinside.com 2019 - 2024. All rights reserved.