最终目标是让我的 Raspberry Pi 作为打印服务器工作,为他们已有的 Brother DCP-195C 打印机提供 AirPrint。
我正在尝试跟随关于如何实现这一目标的答案。
我已经安装好了打印机驱动程序,但由于该驱动程序仅以编译形式提供,适用于 32 位 x86。因此我尝试安装 Qemu 以便能够使用这些驱动程序。
我陷入了
$ sudo apt 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.
更多信息:
$ sudo aptitude install libc6:i386
The following NEW packages will be installed:
gcc-6-base:i386{ab} libc6:i386 libgcc1:i386{ab}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,698 kB of archives. After unpacking 10.2 MB will be used.
The following packages have unmet dependencies:
gcc-6-base : Breaks: gcc-6-base:i386 (!= 6.3.0-18+rpi1+deb9u1) but 6.3.0-18+deb9u1 is to be installed
gcc-6-base:i386 : Breaks: gcc-6-base (!= 6.3.0-18+deb9u1) but 6.3.0-18+rpi1+deb9u1 is installed
libgcc1 : Breaks: libgcc1:i386 (!= 1:6.3.0-18+rpi1+deb9u1) but 1:6.3.0-18+deb9u1 is to be installed
libgcc1:i386 : Breaks: libgcc1 (!= 1:6.3.0-18+deb9u1) but 1:6.3.0-18+rpi1+deb9u1 is installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) gcc-6-base:i386 [Not Installed]
2) libc6:i386 [Not Installed]
3) libgcc1:i386 [Not Installed]
Accept this solution? [Y/n/q/?] n
*** No more solutions available ***
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) gcc-6-base:i386 [Not Installed]
2) libc6:i386 [Not Installed]
3) libgcc1:i386 [Not Installed]
Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
How can I either make this work or is there another way to get the printer working?
答案1
我设法使 DCP-197C 工作:
我不知道我是否遗漏了什么,因为我尝试了很多次,但当它最终起作用时,我想在某处写下我今天所做的事情:
安装所有必需的东西
apt-get install qemu binfmt-support qemu-user-static cups a2ps
添加架构
dpkg --add-architecture i386
下载适用于 i386 的 libc6(我在这里找到的)
wget old.kali.org/kali-security/pool/main/e/eglibc/libc6_2.13-38+deb7u8_i386.deb
如果你尝试安装它,你将会搞乱 apt,所以我们将提取 deb 并手动复制这些文件
dpkg -x libc6_2.13-38+deb7u8_i386.deb data
sudo cp -r data/lib/* /lib
sudo cp -r data/usr/* /usr
sudo cp -r data/etc/* /etc
运行此命令并将其添加到 bashrc 以便在每次重启时运行
EXTRA_OPTS="-L /lib/i386-linux-gnu"
下载并安装您的驱动程序-对我来说例如:
wget https://download.brother.com/welcome/dlf005405/dcp197ccupswrapper-1.1.3-1.i386.deb
wget https://download.brother.com/welcome/dlf005403/dcp197clpr-1.1.3-1.i386.deb
sudo dpkg -i dcp197ccupswrapper-1.1.3-1.i386.deb
sudo dpkg -i dcp197clpr-1.1.3-1.i386.deb