Linux Lite Forums

Hardware - Support => Printing and Scanning => Topic started by: Jan on March 29, 2017, 10:29:01 PM

Title: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on March 29, 2017, 10:29:01 PM
Now that I've upgraded to Linux Lite 3.2, once again, my Canon ImageCLASS MF4500w printer is proving tricky to install, so I'm hoping someone on the forum here can point me in the right direction!   :)

The printer driver that is required is not listed under the Canon drivers, so when I plug my USB printer cable into the computer, I get the message, "Missing Printer Driver".  So, I went to the Canon website and downloaded the Linux_UFRII_PrinterDriver_V330_uk_EN.tar.gz  driver and then opened the Terminal inside the Downloads folder.  I entered the following commands:

tar -zxvf Linux_UFRII_PrinterDriver_V330_uk_EN.tar.gz

cd Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian

ls

sudo dpkg -i cndrvcups-common_3.70-1_i386.deb

After I entered the above command, this is what I got:

Selecting previously unselected package cndrvcups-common.
(Reading database ... 219163 files and directories currently installed.)
Preparing to unpack cndrvcups-common_3.70-1_i386.deb ...
Unpacking cndrvcups-common (3.70-1) ...
dpkg: dependency problems prevent configuration of cndrvcups-common:
 cndrvcups-common depends on libpango1.0-0 (>= 1.14. 8) ; however:
  Package libpango1.0-0 is not installed.

dpkg: error processing package cndrvcups-common (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cndrvcups-common
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$


What commands should I enter to correct the dependency problems and get the missing package? 
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on March 29, 2017, 11:10:40 PM
Hi Jan,

This should do the trick:
Code: [Select]
sudo apt-get install -f
Hope that helps :)
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on March 30, 2017, 10:15:45 AM
Good morning, LL-user  ...

Re:

Hi Jan,

This should do the trick:
Code: [Select]
sudo apt-get install -f
Hope that helps :)

Yes, your solution worked very nicely and I was able to continue the installation - Thank you!

The printer is printing now, but I still have a bit of a problem - I can only print about 3 or 4 print jobs - and then it stops working.  If I want to print a 5th document, I can only do so if I reboot the computer.  Its like the communication channel between the computer and printer gets "clogged" with residue from each print job, until finally the communication channel is shut off altogether.  Rebooting the computer cleans the channel enough to allow more print jobs through but, again, only maybe 3 or 4 at a time.  (I had this same problem with Linux Lite 2.8.) 
I think the problem is with the final command, which I haven't been able to figure out exactly.   This is what I've done so far:

 
Code: [Select]
sudo apt-get install -f

sudo dpkg -i cndrvcups-ufr2-uk_3.30-1_i386.deb

sudo /etc/init.d/cups restart

/usr/sbin/lpinfo -v
network beh
file cups-pdf:/
network ipp14
network http
network ipps
direct cnusb:/dev/usb/lp0
network socket
network lpd
network https
network ipp
direct usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1
direct usb://Canon/MF4500w%20Series%20FAX?serial=0122OB11185D&interface=2
network smb
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$

This now takes me to the final command, and this is what I can't quite figure out, and maybe is the reason for the communication channel getting clogged after only a few print jobs.  I've tried the following 4 different variations of the command.  The test page lists the driver as being CNM4500WZK.PPD.

sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500ZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1 -E
[1] 3927
-E: command not found

[1]+  Stopped                 sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500ZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$ sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500ZK.ppd -v usb:direct usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1 -E
[2] 3952
-E: command not found

[2]+  Stopped                 sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500ZK.ppd -v usb:direct usb://Canon/MF4500w%20Series?serial=0122OB11185D
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$ sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500WZK.ppd -v usb:direct usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1 -E
[3] 4092
-E: command not found

[3]+  Stopped                 sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500WZK.ppd -v usb:direct usb://Canon/MF4500w%20Series?serial=0122OB11185D
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$ sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500WZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1 -E
[4] 4104
-E: command not found

[4]+  Stopped                 sudo /usr/sbin/lpadmin -p Canon-MF4500w -m CNM4500WZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$

Any suggestions for the final command?  Or ideas for unclogging the channel? 
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: ralphy on March 30, 2017, 01:35:05 PM
You may want to check if libpango1.0-0 is installed in your system.

Code: [Select]
dpkg -s libpango1.0-0 | grep Status

If it is not installed, then install:

Code: [Select]
sudo apt install libpango1.0-0
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on March 30, 2017, 02:20:52 PM
Hi Ralphy,

You may want to check if libpango1.0-0 is installed in your system.

Code: [Select]
dpkg -s libpango1.0-0 | grep Status

If it is not installed, then install:

Code: [Select]
sudo apt install libpango1.0-0

Thanks for your suggestion.  I thought I had libpango1.0-0 installed, but just to be extra sure, I ran the above command, and yes, libpango1.0-0 IS installed. 
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on March 30, 2017, 08:56:08 PM
Hi Jan,

Try placing the "-E" flag before the "-p" flag, i.e. directly after the lpadmin command.

Hope that helps :)
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on March 31, 2017, 06:06:02 PM
Hello LL-user,

Thank you so much for taking the time to help me with this.  Much appreciated!

I re-entered the command sequence for installing the Canon MF4500w printer driver and just entered the final command, putting the "-E" directly after the "lpadmin" and before the "-p", as you suggested, but I've got an "unable to copy PPD file" message, as below:

sudo /usr/sbin/lpadmin -E -p Canon-MF4500w -m CNM4500WZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1
[1] 3954
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$ lpadmin: Unable to copy PPD file.

What do you think I should do?   Also, it seems like the Terminal might be hung up right now.  ???

Further to what I've just written, I tried re-entering the above command, but instead of using the small letters "ppd", I capitalized them to read "PPD", as below: 

sudo /usr/sbin/lpadmin -E -p Canon-MF4500w -m CNM4500WZK.PPD -v usb://Canon/MF4500w%20Series?serial=0122OB11185D&interface=1
[2] 4098
[1]   Exit 1                  sudo /usr/sbin/lpadmin -E -p Canon-MF4500w -m CNM4500WZK.ppd -v usb://Canon/MF4500w%20Series?serial=0122OB11185D
janlite@janlitea1030n:~/Downloads/Linux_UFRII_PrinterDriver_V330_uk_EN/32-bit_Driver/Debian$

....so, now I'm exited out of the command, showing the Terminal is at least not "hung up". 

Not sure what to do next though ...
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on April 01, 2017, 12:19:41 AM
Hi Jan,


Good on you for hanging in there!


Do I get that correctly that you run the command with the correct file name, and it did not come back with any error?


If that's the case, it's usually indicating that it run successfully, and that you can move on to the next step.


You will get there :)
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on April 02, 2017, 11:09:39 AM
Good morning LL-User,

Yes, the command I entered as noted above did not come back with an error message, it simply reverted me back to my Downloads folder.  Supposedly, it is the last command in the above sequence.

Unfortunately, insofar as print jobs getting through, things are still pretty plugged up here.  Its like a badly clogged drain - some print jobs slowly drip through while others don't get through at all. 

Any other ideas on how to solve this?

Just thought I would add that I also checked and my printer is connected to local host.  When I check the printer que for print status, all print jobs are listed and each one shows the status as being "completed", in spite of the fact that some jobs print while others don't.  I also ran the trouble shooting wizard and it could find nothing wrong. 

I'm wondering, since I entered a lot of invalid sudo commands while trying to figure things out, could this be part of the "clogging" problem?  Is there any way to clean up the terminal ... if that's part of the problem???
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on April 02, 2017, 06:11:13 PM
Hi Jan,

For quite a while I haven't been working with printers. Therefore I hope someone with the suitable commands on his/her finger tips will chirp in to troubleshoot this.

Just some thoughts:

If you actually can observe the print jobs in the queue one by one changing their status to "completed", I'd assume the transfers to the printer have been successfully completed.

Does your printer have a display that allows you to view some kind of log file to check for errors?

Also, you mention some documents getting printed, others not:
Is this independent of the document format? Or are certain document formats not printed while others come through without problem? If there is a problem with a certain format, it might occupy the printer till it times out, which would explain the "clogging".

Hope it will get you a step closer :)
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on April 04, 2017, 08:10:04 PM
Hi LL-User,

Yes, my printer does have a log to check for errors, but none are reported.  Also, the problem seems to be getting worse.  Whereas a few days ago I could run 3 or 4 print jobs before it would get clogged, now I can only run one print job at a time, after which I must reboot the computer to continue printing.  It doesn't matter whether I'm printing an article on the internet, or if I'm printing a Libre Office Writer document, or even that it's the exact same print job as before, I still can't get a second copy without rebooting the computer.   ???

 
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: firenice03 on April 04, 2017, 08:36:38 PM
Just gonna poke my head in with a question that may hopefully help..

When you notice the printer stops printing and system needs a reboot.. Has the PC recently woke from sleep/hibernate?? Or is a sleep and not waking?
Just a thought that may help???

I have an HP that doesn't like to print due to this at time but I have a different set up.. Hope it sheds a little light on things ??? ???
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on April 04, 2017, 09:58:29 PM
Hello firenice03,

Thanks for stopping by!   :)

No, the PC is fully awake for the duration, so it can't be that.   I dunno ... real head scratcher, this one!
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on April 04, 2017, 11:19:49 PM
Hi Jan,


Unfortunately I currently don't have any printer available and installed to test things out on my end.
I do hope some printing guru will join this thread to give you a hand solving this tricky one.
That it's obviously getting worse without you changing anything makes it even more odd.
I'd poke around on the command line to find out where there is the glitch.
Have you tried re-activating the printer, restarting the print queue and daemon, etc. to see whether that makes a difference? It's not a solution to the actual problem, rather intended to help trouble shooting.



Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on April 06, 2017, 10:00:14 PM
Hi LL-User,

I did indeed try re-activating the printer, as well as the print queue and daemon, but to no avail. 

But, going back to my last error message of the final command, i.e. "unable to copy the PPD file", do you think this issue might resolve if there was some kind of command to enable the copying of the PPD file?

Alternately, is there some kind of diagnostic command that would shed light on why the PPD file could not be copied? 
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: LL-user on April 07, 2017, 05:29:22 PM
Hi Jan,


What I tried to say is that when you run the command with the correct file name and therefore didn't any error output, I'd expect the file having been copied. But sure, in situations like this (troubleshooting) I would check, too :)


Unfortunately I won't have access to my systems for the next couple of weeks, so can't test, dig around and suggest anything further at the moment. Hope someone else comes on board to give you a hand.


All the best - and I hope it's solved by the time I come back :)
Title: Re: Canon MF4500w Printer Configuration Dependent on Missing Package
Post by: Jan on April 11, 2017, 10:49:54 AM
Hi LL-user,

I really appreciate the help you've provided.  Thanks so much!   :) 

In the meanwhile I'll continue to poke around here and will post my findings.

Have a great break!