LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2017, 02:09 PM   #1
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Rep: Reputation: Disabled
Printers will not work after installing drivers


I have installed canon MG5250 and samsung ML-2525W printers several times which i down loaded drivers from there official sites but when i click to print a test page nothing happens , i have a self built desktop with duel win10 and linux mint 18 ,please Help , ps when i had mint15 it found my printers easily without having to find drivers .
 
Old 08-26-2017, 08:53 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
So, when you installed the Canon printer driver packages did you run the included install.sh script (which takes care of the CUPS configuration) as well?

Report back with output from
Code:
lpstat -t
and this too
Code:
egrep "Model|Name|Filter" /etc/cups/ppd/*
 
Old 08-27-2017, 03:37 AM   #3
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
RE printer installing

Thank you for your quick reply please find info you asked for,

cheduler is running
system default destination: Canon-MG5200
device for Canon-MG5200: serial:/dev/ttyS0?baud=115200
device for MG5200-series: usb://Canon/MG5200%20series?serial=131B0C&interface=1
Canon-MG5200 accepting requests since Sat 26 Aug 2017 08:39:43 PM CEST
MG5200-series accepting requests since Sat 26 Aug 2017 08:40:27 PM CEST
printer Canon-MG5200 is idle. enabled since Sat 26 Aug 2017 08:39:43 PM CEST
printer MG5200-series is idle. enabled since Sat 26 Aug 2017 08:40:27 PM CEST
andrew@andrew-System-Product-Name ~ $ egrep "Model|Name|Filter" /etc/cups/ppd/*
grep: /etc/cups/ppd/Canon-MG5200.ppd: Permission denied
grep: /etc/cups/ppd/MG5200-series.ppd: Permission denied
 
Old 08-27-2017, 04:09 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Okay, so we're dealing with a USB-attached printer. You have two queues set up for the same printer, but only the USB one is valid. Perhaps you tried sending a pint job to the wrong queue and that's why it failed? A serial interface connected printer is very unlikely

Code:
device for Canon-MG5200: serial:/dev/ttyS0?baud=115200
device for MG5200-series: usb://Canon/MG5200%20series?serial=131B0C&interface=1
You should remove the first configuration...
Code:
sudo lpadmin -x Canon-MG5200
BTW, it looks like Mint needs administrator privileges to read /etc/cups/ppd/, so use sudo...
Code:
sudo egrep "Model|Name|Filter" /etc/cups/ppd/*
 
Old 08-27-2017, 06:26 AM   #5
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
i used the code to get the 2 lines of text but how do you remove the first config. and what does BTW stand for and do i just enter egrep command .
 
Old 08-27-2017, 02:27 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Quote:
how do you remove the first config.
You can remove the incorrectly defined printer using the lpadmin command I already gave you in the code box (post #4).

Alternatively, use Mint's printer config utility (system-config-printer?), or the CUPS web interface (via a browser)
http://localhost:631/printers
Select the printer concerned and delete it (via its administration menu).

Quote:
and what does BTW stand for
BTW means 'By the way'. (The real statement was about using sudo to run the command with root privileges.)

Quote:
and do i just enter egrep command
Just run the command as given in post #4.

Last edited by ferrari; 08-27-2017 at 02:33 PM.
 
Old 08-28-2017, 03:25 AM   #7
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok i thik i have deleted the lpadmin -x Canon-MG5200 line and used the command sudo egrep "Model|Name|Filter" /etc/cups/ppd/* I then tried to print a page but did not work, i have the result of the command as under

andrew@andrew-System-Product-Name ~ $ sudo lpadmin -x Canon-MG5200
[sudo] password for andrew:
lpadmin: The printer or class does not exist.
andrew@andrew-System-Product-Name ~ $ sudo egrep "Model|Name|Filter" /etc/cups/ppd/*
*PCFileName: "STP00539.PPD"
*ModelName: "Canon MG5200 series"
*ShortNickName: "Canon MG5200 series"
*NickName: "Canon MG5200 series - CUPS+Gutenprint v5.2.11"
*cupsFilter: "application/vnd.cups-raster 100 rastertogutenprint.5.2"
*StpDriverName: "bjc-MG5200-series"
*StpDriverModelFamily: "8005200_canon"
*ColorKeyWords: "ColorModel"
*OpenUI *ColorModel/Color Model: PickOne
*OPOptionHints ColorModel: "radiobuttons"
*OrderDependency: 2 AnySetup *ColorModel
*DefaultColorModel: RGB
*StpDefaultColorModel: RGB
*ColorModel Gray/Grayscale: "<</cupsColorSpace 0/cupsColorOrder 0>>setpagedevice"
*ColorModel Black/Inverted Grayscale: "<</cupsColorSpace 3/cupsColorOrder 0>>setpagedevice"
*ColorModel RGB/RGB Color: "<</cupsColorSpace 1/cupsColorOrder 0>>setpagedevice"
*ColorModel CMY/CMY Color: "<</cupsColorSpace 4/cupsColorOrder 0>>setpagedevice"
*ColorModel CMYK/CMYK: "<</cupsColorSpace 6/cupsColorOrder 0>>setpagedevice"
*ColorModel KCMY/KCMY: "<</cupsColorSpace 8/cupsColorOrder 0>>setpagedevice"
*CloseUI: *ColorModel
andrew@andrew-System-Product-Name ~ $

I tried the http://localhost:631/printers site but it would not accept my user name or pass word, perhaps you could tell me Howe to clear the printer installation and start a fresh
 
Old 08-28-2017, 04:33 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Code:
andrew@andrew-System-Product-Name ~ $ sudo lpadmin -x Canon-MG5200
[sudo] password for andrew:
lpadmin: The printer or class does not exist.
Maybe you ran this more than once, so it was already deleted when you got this result?

The PPD output suggests that you're using a gutenprint (open source) driver for your printer. Nothing wrong with that, but sometimes they are not compatible with a given printer model. This may (or may not) be the case with your printer. What I do know is this output confirms that you're not using the Canon proprietary driver which you claimed to have downloaded and installed. I think you should just start over. The proprietary driver includes an install.sh script which should take care of the necesary driver installation and CUPS configuration for you. Rather than re-invent the wheel, read this page...

https://askubuntu.com/questions/1680...-mg5200-series

Quote:
I tried the http://localhost:631/printers site but it would not accept my user name or pass word
You're not the first Mint user to struggle with using the CUPS web interface. I'm not a Mint user, so I'll leave that for others to advise.

This might be useful to you...
How to Configure Printers in Linux Mint
 
Old 08-28-2017, 09:41 AM   #9
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Yes i have run both printers numerous times with linux finding drivers as well of finding drivers from official sites i allso followed to the letter instructions from https://askubuntu.com/questions/1680...0-series,every time i click for a test print nothing happens ,
 
Old 08-28-2017, 02:48 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
The URL you posted doesn't point to a valid page. (I think you truncated it.)

We need to work logically here...

1. Please confirm that you have the 'cnijfilter-common' 'and 'cnijfilter-mg5200series' DEB packages installed?

Check with
Code:
dpkg -l cnijfilter-common
Code:
dpkg -l cnijfilter-mg5200series
Make sure that you using the appropriate 64-bit or 32-bit packages appropriate for your system.

2. Once the packages are installed via your package manager you can proceed with configuring your printer, using Mint's printer utility. I posted a link about that in my previous post.
 
Old 08-28-2017, 03:38 PM   #11
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
I did run 64 bit which is correct for my pc ,looking at what you asked for does not seem to be installed,

andrew@andrew-System-Product-Name ~ $ dpkg -l cnijfilter-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii cnijfilter-com 3.40-1 amd64 IJ Printer Driver for Linux.
andrew@andrew-System-Product-Name ~ $ dpkg -l cnijfilter-mg5200series
dpkg-query: no packages found matching cnijfilter-mg5200series
andrew@andrew-System-Product-Name ~ $

I do not know what i did wrong.
 
Old 08-28-2017, 03:44 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Locate the downloaded packages or download the archive package and extract again. Once you have navigated to the deb packages you can install them (common package first then the model specific package) with your package manager, or using the install script that's provided...
Code:
sudo sh install.sh
 
Old 08-28-2017, 04:17 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
If you run in to the libtiff dependency error, you can safely ignore that by using dpkg with the '--force-all' option.
Code:
dpkg --force-all -i cnijfilter-common_3.40-1_amd64.deb cnijfilter-mg5200series_3.40-1_amd64.deb
* Make sure you change directory to where the files are located before invoking the dpkg command.
 
Old 08-29-2017, 12:15 PM   #14
matchlessg50
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Yes i did get the dependency error ,how do you show the terminal where the DpKg file is located (in the downloads), will it matter that the common is already installed.
 
Old 08-29-2017, 02:08 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,276

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
Quote:
Yes i did get the dependency error ,how do you show the terminal where the DpKg file is located (in the downloads),
You change directory with 'cd' (change directory) command. Examples...
Code:
cd Downloads
Code:
cd /home/harry/Documents/work_stuff
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get my Dell or HP printers to load drivers or work. joeinslw Linux - Newbie 25 10-15-2015 09:13 PM
where can i find drivers for the following printers Brian1234 Linux - Newbie 5 11-20-2010 11:09 AM
Having trouble Installing Drivers and getting sound to work BurnM3W1thF1r3 Linux - Newbie 1 06-09-2008 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration