The other day I had to reinstall Linux Mint Debian Edition. The reinstall process went smoothly overall, with the only problem being, of all things, the driver for my Brother printer.
The Problem
The problem is that Brother’s official Linux printer drivers are all 32-bit, and don’t appear to play nicely with 64-bit Debian-based distributions.
When I tried installing the driver directly, I got an incompatible architecture error:
Now, the recommended way to resolve this is to use MultiArch, Debian’s system for handling applications and libraries of multiple architectures on one system. However, MultiArch is still rather immature, and whenever I’ve tried to use it I’ve ended up in an unresolvable dependency hell. I wanted to find a better way to deal with this.
My first instinct was to suppress the incompatible architecture error using --force-architecture
or --force-all
:
Hmm, no luck yet - it looks like the driver depends on the libc6:i386
package, which I can’t install without MultiArch.
Interestingly, the Brother official FAQ
suggests installing the lib32stdc++6
package (ia32-libs
on Ubuntu) and using --force-architecture
, but this still didn’t
work for me, even after installing lib32stdc++6
.
The Solution
Fortunately, a solution does exist, though it’s a bit hackish: you need to remove the libc
dependency from the package.
There are a few ways to do this:
Option 1: Manual modification of the package
Yousry Abdallah recommends
removing the libc
dependency from the driver:
dpkg -x [package].deb common
dpkg --control [package].deb
vim DEBIAN/control
- remove the
"Dependency: libc (..."
line (move to line than press'dd'
thanESC:x
)cp -a DEBIAN/ common/
dpkb -b common [package].deb
dpkg --force-all -i [package].deb
rm -rf common DEBIAN
Option 2: Official patch (Brother HL-2270DW only)
If you have a Brother HL-2270DW printer like me, then you’re in luck: Brother has released a patch to resolve the issue. You can follow the instructions here to use it.
Or you can simply download the already-patched CUPS driver, which has been patched by Chad Chenault. If you would rather use LPR, a patched LPR driver is also available.
Remember that you need to install the packages using the --force-all
option:
I’ve tested the CUPS driver on Linux Mint Debian and it works perfectly. Both drivers should also work on Ubuntu 11.04 and later.
Finishing the installation
If you’re using the printer via USB, then everything should work after installing the package. Make sure your printer is plugged in, then go to http://localhost:631/printers and try printing a test page.
However, if you’re using a network printer, then there are still a few steps left. You can follow this tutorial or watch this video (skip to the part after the package is installed).
Good luck!
Comments
blog comments powered by Disqus