使用qemu Raspbian:安装libc6:i386失败

时间:2017-12-01 10:00:57

标签: raspberry-pi raspbian qemu

这是我在这个论坛上的第一篇文章。

我正在尝试在我的Raspberry Pi 3上运行Raspbian拉伸运行qemu。我的兄弟DCP-350C扫描仪驱动程序仅在x86上预编译。 我添加了sudo dpkg --add-architecture i386的i386拱门 并安装了qemu-user binfmt-support。没问题。

但每次我尝试安装libc6:i386时都会出现安装错误:

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.

我不知道如何修复它。我尝试了各种各样的存储库,但这似乎不是存储库问题。

我不知道如何解决这个问题。

我希望任何人都可以提供帮助。

1 个答案:

答案 0 :(得分:0)

那种错误(" libgcc1:i386 Breaks:libgcc1(!= 1:6.3.0-18)但是1:6.3.0-18 + rpi1将被安装"和&#34 ; libgcc1:中断:libgcc1:i386(!= 1:6.3.0-18 + rpi1)但是要安装1:6.3.0-18")是因为对Debian和Debian衍生产品的multiarch支持需要所有版本您安装的每个体系结构的软件包必须具有完全匹配的版本。所以你可以将libgcc1:i386 1:6.3.0-18和libgcc1:armhf 1:6.3.0-18一起安装,因为版本匹配,但不是libgcc1:i386 1:6.3.0-18和libgcc1:armhf 1: 6.3.0-18 + rpi1(因为版本不完全匹配)。

这里的问题是raspbian rebuilds包,这就是为什么他们在版本的末尾有+ rpi1标签。所以你需要的是

  • 一个存储库,其中为i386构建了raspbian版本的软件包 - 这可能根本不存在
  • 或运行纯粹的上游Debian而不是Raspbian - 你可能不想在此时交换
  • 或者自己重建i386的所有软件包 - 如果你不知道自己在做什么,这可能很容易出错。

如果有任何安慰,我会不确定QEMU是否可以有效地处理模拟硬件特定的代码片段,如扫描仪驱动程序(可能是CUPS或其他系统软件的插件)。< / p>

扫描仪型号名称的快速谷歌提出了这个网页:http://support.brother.com/g/b/downloadlist.aspx?c=us_ot&lang=en&prod=dcp350c_all&os=128,其中包括扫描仪驱动程序和CUPS包装驱动程序源代码的下载。如果我是你,我会尝试以原则为手臂建造。