Documenting Problems That Were Difficult To Find The Answer To

Getting Canon MF8540Cdn Colour Laser to Work with Ubuntu 14.04.3 Trusty Tahr 64-Bit

I downloaded Canon UFRII/UFRII LT Printer Driver for Linux v3.00 from Canon Europe’s website.

After unzipping the zip file I installed the Debian packages:

# sudo dpkg -i cndrvcups-common_3.10-1_amd64.deb cndrvcups-ufr2-uk_3.00-1_amd64.deb

But after adding my printer I got the following message every time I tried to print:

Idle - src = libcanon_pdlwrapper.c, line = 514, err = 0¥nDEBUG: PID 5537 (gs) exited with no errors.

I wondered what might be missing. So I ran:

ldd =>  (0xf775b000) => /usr/lib/ (0xf76ef000) => /usr/lib/ (0xf76e8000) => not found => /usr/lib/ (0xf76b9000) => /usr/lib/ (0xf7642000) => /lib32/ (0xf7496000) => /lib32/ (0xf7450000) => /lib32/ (0xf744b000) => /lib32/ (0xf742f000) => /lib32/ (0xf7426000)
	/lib/ (0xf775c000)

I already had installed on the system at /usr/lib/x86_64-linux-gnu/ so why wasn’t it being found?

# file ELF 32-bit LSB  shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

Ah, even though I installed the 64-bit printer driver the libraries it installed were 32-bit. Now to install a 32-bit libxml2:

# sudo dpkg --add-architecture i386
# apt-get install libxml2:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gcc-4.9-base:i386 libc6:i386 libgcc1:i386 liblzma5:i386 zlib1g:i386
Suggested packages:
  glibc-doc:i386 locales:i386
Recommended packages:
The following NEW packages will be installed:
  gcc-4.9-base:i386 libc6:i386 libgcc1:i386 liblzma5:i386 libxml2:i386
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,753 kB of archives.
After this operation, 12.1 MB of additional disk space will be used.

# service cups restart

The next problem was that my Printer State would say:

Processing - Connected to printer.

… but never print. So I navigated to http://localhost:631/jobs/ and found the following message:

processing since Sun 20 Sep 2015 05:21:40 PM BST "src = bidiCommon.c, line = 1088, err = 0¥nDEBUG: Connecting to x.x.x.x:9100

According to this post the bjnp back end was needed.

# sudo apt-get install cups-backend-bjnp

But then I had a program spinning at 100% when I tried to make a test page print, cnpkmoduleufr2.

So I installed libstdc++6:i386 as recommended at this page.

# sudo apt-get install libstdc\+\+6:i386
# sudo service cups restart

And now I can finally print. Let me just say – spending 2 hours of my weekend trying to print to my expensive colour laser printer has been a most unsatisfying waste of time. Canon pretend to make 64-bit drivers available but, in truth, are old 32-bit relics from an age long since past. This was painful.

5 responses to “Getting Canon MF8540Cdn Colour Laser to Work with Ubuntu 14.04.3 Trusty Tahr 64-Bit

  1. Max Otto December 27, 2015 at 6:59 am

    Thanks of lot! That’s really help at last!!!

  2. Mags August 25, 2016 at 12:55 am

    Excellent work! Many Thanks.

  3. Dani Sarfati December 26, 2016 at 8:58 pm

    Brilliant! I can’t believe this driver is still using all of these 32-bit libraries even in 3.3. These instructions worked great on Debian 8.6; I spent too many hours try to get this printing to work, but finally got it thanks to this!

  4. Tero July 6, 2017 at 8:23 pm

    Ok, I never comment on any forums but this thing has bothered me for so long and this finally gave me an answer so I had to say THANK YOU for posting this!

    And to give more background:
    – device is a Canon iSensys MF8040Cn
    – running Ubuntu 16.04 LTS 64-bit
    – tried with all Canon drivers they have published within last couple of years, now with cndrvcups-common 3.71-1 and cndrvcups-ufr2-uk 3.31-1
    – getting the same note “Idle – src = libcanon_pdlwrapper.c, line = 514, err = 0¥nDEBUG: PID 5537 (gs) exited with no errors.”

    • Ivan Costa January 28, 2018 at 8:07 am

      Italian (original comment):

      in 16.04 con driver x86_64 380 non è cambiato nulla senza librerie 32 bit non si stampa.

      English (Google translated):

      in 16.04 with x86_64 380 driver nothing has changed without 32 bit libraries not printing.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: