I'm trying to install a
Canon MF4570dw in
CUPS on a
Raspberry Pi 3, but I can't make it work.
This is what I've tried so far:
1. Install the printer from PPD files
I've extracted the latest Canon driver for my printer
I've extracted \linux-UFRII-drv-v520-usen\Sources\cnrdrvcups-lb-5.20-1.tar.gz and took this 2 PPD files:
In CUPS admin page I see the printer
, but on the next screen the printer is not in the list of supported printers so I need to provide a PPD file.
I've tried both of the above files, but when I try to print a test page, nothing is printing.
The printer status seems to be always idle in CUPS.
2. Install the printer drivers
Extracting the same driver from above I got this \linux-UFRII-drv-v520-usen\32-bit_Driver\Debian\cnrdrvcups-ufr2-us_5.20-1_i386.deb Debian 32 bit driver.
I've tried to install it, but it's companying about
sudo apt install ./cnrdrvcups-ufr2-us_5.20-1_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'cnrdrvcups-ufr2-us:i386' instead of './cnrdrvcups-ufr2-us_5.20-1_i386.deb' 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: cnrdrvcups-ufr2-us:i386 : Depends: libcups2:i386 but it is not installable or libcupsys2:i386 (>= 1.2.7) but it is not installable E: Unable to correct problems, you have held broken packages.
I've tried this answer to enable the i386 packages installation, but I still get
has no installation candidate
sudo apt install libcups2:i386 libcupsys2:i386 Reading package lists... Done Building dependency tree Reading state information... Done Package libcups2:i386 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libcups2:i386' has no installation candidate E: Unable to locate package libcupsys2:i386
Installing the dev version of this packages,
libcupsys2-dev still dont allow me to install the above driver and I still get the same reason.
3. Installing cups-bjnp-2.0.tar.gz
I've followed this answer and extracted cups-bjnp-2.0.tar.gz, than run the config and make commands, but they don't seem to work under the current Raspbian OS
$ ./configure –prefix=/usr configure: error: invalid variable name: `–prefix' $ make make: *** No targets specified and no makefile found. Stop. $ sudo make install make: *** No rule to make target 'install'. Stop.
3.1. LATER EDIT
As suggested by @tttapa the correct configure command is
After this I got a make error
bjnp-commands.c: In function ‘bjnp_set_command_header’: bjnp-commands.c:40:5: error: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation] strncpy(cmd->header.BJNP_id, BJNP_STRING, sizeof(cmd->header.BJNP_id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I've solved this, by editing the
bjnp-commands.c file and replacing the
memcpy at line 40 as described in this solution
Then all went well and I was able to add the printer in CUPS admin page with bjnp://:9100, but I'm still asked to chose the printer from the list, and I can't find any MF4500 or MF4570 printer
4. Open Printing database
Searching the open printing database shows this printer is not yet supported.
Can you suggest something else, so I can install my printer in CUPS on the RPI3?