Trying to install i386 package libc6:i386 on Raspberry Pi 3 B+ fails

1

The end goal is to get my Raspberry Pi to work as a print server providing AirPrint for a Brother DCP-195C printer they already have.

I'm trying to follow this answer on how to achive that.

So I already got to the point of where I installed the printer driver, but since that is only provided in compiled form for 32bit x86. So I tried to install Qemu to be able to use those.

I'm getting stuck on

$ 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.

A bit more information:

$ 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?

usbpc102

Posted 2018-12-25T17:10:18.640

Reputation: 117

Why can't libgcc1:i386 be installed (first)? – Xen2050 – 2018-12-25T20:11:32.640

I added aptitude output. – usbpc102 – 2018-12-25T23:01:59.870

The RaspPi has an ARM architecture, not i386. To be able to install libraries for multiple architectures on Debian, you need the multiarch version of some packages (in particular dpkg and apt). If it's a dependency problem, use aptitude, and see what exactly the problem is, and if you need to upgrade some (seemingly unrelated) packages.

– dirkt – 2018-12-26T07:03:25.083

dpkg is multiarch for sure: dpkg --print-foreign-architecturesprints i386 I'm not sure how to check with apt. And as you can see above I provided aptitude output and if I understand it correctly it tells me the i386 versions can't be installed because of the arm versions of the same packages. – usbpc102 – 2018-12-26T17:41:50.220

Answers

-1

I'm having the very same issue. From what I can tell there is not really a way to fix it at the moment. libc6:armhf can be installed alongside the i386 version if they are the exact same version. Because however, all raspbian packages have "rpi#" (# will be your version of the pi, so e.g. 1 for rpi 1/zero, 2 for 2 etc.) added into their version number, the versions will never line up correctly. This basically means that i386 can't be installed on raspbian (I have literally no idea how the guy from the post you referenced got it working).

I have found this post on a German forum saying that multiarch is working properly on Ubuntu Mate (which, unfortunately for me isn't available for RPi 1 and Zero) so it might be worth a shot to try this whole thing through Ubuntu.

toasty

Posted 2018-12-25T17:10:18.640

Reputation: 1