首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用qemu :安装libc6 6:i 386失败

使用qemu :安装libc6 6:i 386失败
EN

Stack Overflow用户
提问于 2017-12-01 10:00:57
回答 1查看 1.7K关注 0票数 0

这是我在这个论坛上的第一篇帖子。

我正试图让qemu在我的Raspberry Pi 3上运行,并安装了Raspbian拉伸。我的兄弟DCP-350 C扫描仪驱动程序只能在x86上预编译。我增加了i386 arch与sudo dpkg --add-architecture i386,并安装了qemu-用户binfmt支持。那里没问题。

但是,每次我试图安装libc6 6:i 386时,都会得到一个安装错误:

代码语言:javascript
复制
pi@raspberrypi:/etc/apt $ sudo apt-get install libc6: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:
 libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:/etc/apt $ sudo apt-get install libgcc1: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:
 debconf : PreDepends: perl-base (>= 5.20.1-3~) but it is not going to be installed
           Recommends: apt-utils (>= 0.5.1) but it is not going to be installed
           Recommends: debconf-i18n but it is not going to be installed
 dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
        PreDepends: liblzma5 (>= 5.2.2) but it is not going to be installed
        PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
        Depends: tar (>= 1.28-1)
 libgcc1 : Breaks: libgcc1:i386 (!= 1:6.3.0-18+rpi1) but 1:6.3.0-18 is to be installed
 libgcc1:i386 : Depends: gcc-6-base:i386 (= 6.3.0-18) but it is not going to be installed
                Breaks: libgcc1 (!= 1:6.3.0-18) but 1:6.3.0-18+rpi1 is to be installed
 libselinux1 : Depends: libpcre3 but it is not going to be installed
 libx11-6 : Depends: libxcb1 (>= 1.11.1) but it is not going to be installed
 libxext6 : PreDepends: multiarch-support
 lxlock : Depends: light-locker but it is not going to be installed or
                   xscreensaver but it is not going to be installed or
                   gnome-screensaver but it is not going to be installed or
                   i3lock but it is not going to be installed or
                   suckless-tools but it is not going to be installed or
                   slim but it is not going to be installed
 systemd-sysv : PreDepends: systemd
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我不知道怎么修好它。我尝试过各种存储库,但这似乎不是存储库的问题。

我不知道该怎么解决这个问题了。

我希望任何人都能帮忙。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-04 11:52:32

这种错误( "libgcc1 1:i 386断开: libgcc1 (!= 1:6.3.0-18),但需要安装1:6.3.0-18+rpi1 1“和”libgcc1:突破口:libgcc1 1:i 386 (!= 1:6.3.0-18 +rpi1 1)“)是因为对Debian和Debian衍生产品的多重支持要求您所安装的每个体系结构的所有版本都必须具有完全匹配的版本。因此,您可以将libgcc1 1:i 386 1:6.3.0-18和libgcc1 1:armhf 1:6.3.0-18安装在一起,因为版本匹配,而不是libgcc1 1:i 386 1:6.3.0-18和libgcc1 1:armhf 1:6.3.0-18+rpi1 1(因为版本不完全匹配)。

这里的问题是raspbian重新构建包,这就是为什么它们的版本末尾有+rpi1 1标记的原因。所以你需要的是

  • 为i386构建raspbian版本包的存储库--这很可能不存在。
  • 或者运行纯上游Debian,而不是Raspbian --您可能不想在这一点上进行交换。
  • 或者自己为i386重建所有的包--如果你不知道自己在做什么,这可能会很痛苦,也很容易出错。

如果有任何安慰的话,我会对QEMU是否能有效地处理一段特定于硬件的代码(比如扫描仪驱动程序(它可能是CUPS或其他系统软件的插件)有一定的不确定性。

一个快速谷歌的扫描仪模型名称提到了这个网页:all&os=128,其中包括一个下载的源代码扫描仪驱动程序和CUPS包装驱动程序。如果我是你的话,我会尝试用这种方法来为手臂设计。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47590880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档