Can't get Lexmark Printer to work in Mint 17.3 x64 - CUPS Problem?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't get Lexmark Printer to work in Mint 17.3 x64 - CUPS Problem?
Hello LQ!
I'm pretty new here, having just very recently made the leap from windows ( :-O ) to Linux Mint. I'm currently in the process of getting things working that worked before in windows, and I'm obviously on a HUGE learning curve, so I'm like a newbie poking about the shell, everything is unfamiliar. Anyway, to my current problem.
I have a Lexmark E330 laser printer, which is connected via parallel port to my PC (the USB is on the fritz), and I realised today when I went to print something, it wasn't set up. I tried the printers control panel first, and couldn't add a printer cos it didn't even see the parallel port. Some googling ensued, and some terminal poking about involving LSMOD, grep, Modprobe (i think this was the command that fixed it) and localhost 631 in the browser, and suddenly the port appeared, along with my printer.
Only problem, I downloaded the software lexmark recommended, but cannot find my exact model in the list! I plumped for the nearest model I could find in the same family of printers, the E230 driver, there seems to be about 5 different versions, I've tried the PCL5 HPLJ4 some pxlmono driver, anyway All fail. First I got some filter failed error, changing drivers got it to sitting processing in the job queue, but it just sits there, and never prints.
Being a newbie, I'm now stuck! I have no idea where its falling over, or how the print subsystem is set up and interacts. I can see CUPS seems to be in overall control (is it equivalent to the windows print spooler?) but i've no idea how the rest all tie together.
1) You can get a better idea of what is failing by putting CUPS in to debug mode with
Code:
cupsctl --debug-logging
Try to print a test page, and examine /var/log/messages/error_log for errors. If you need help with analysing the output, you can upload to http://pastebin.com/ and post the link that it generates here.
2) Since you're connected by parallel port, I wonder if there is an issue here. you might want to check the BIOS parallel port settings eg ECP/EPP. BTW, how is the printer reported by the following?
Code:
/usr/lib/cups/backend/parallel
Code:
lpinfo -v
3) You could try using another driver. This E330 blog might be helpful to you. It suggests that the printer is PCL5e compatible, and the writer chose 'Generic PCL Laser Printer'. I note that CUPS offers 'Generic PCL 5e Printer CUPS + Gutenprint' and I have foomatic drivers as well.
1) You can get a better idea of what is failing by putting CUPS in to debug mode with
Code:
cupsctl --debug-logging
Try to print a test page, and examine /var/log/messages/error_log for errors. If you need help with analysing the output, you can upload to http://pastebin.com/ and post the link that it generates here.
2) Since you're connected by parallel port, I wonder if there is an issue here. you might want to check the BIOS parallel port settings eg ECP/EPP. BTW, how is the printer reported by the following?
Code:
/usr/lib/cups/backend/parallel
Code:
lpinfo -v
3) You could try using another driver. This E330 blog might be helpful to you. It suggests that the printer is PCL5e compatible, and the writer chose 'Generic PCL Laser Printer'. I note that CUPS offers 'Generic PCL 5e Printer CUPS + Gutenprint' and I have foomatic drivers as well.
I have a lexmark printer. No linux compatibility at all. And even the windows drivers are hit and miss. I think the windows driver worked once when it was initially installed. And then never again. Granted that it's been a few years since I've tried. Mostly it's a photo copier not connected to any computer these days. And it's not so good at that either. Model x5470.
I have a lexmark printer. No linux compatibility at all. And even the windows drivers are hit and miss. I think the windows driver worked once when it was initially installed. And then never again. Granted that it's been a few years since I've tried. Mostly it's a photo copier not connected to any computer these days. And it's not so good at that either. Model x5470.
First, I don't think the E320 driver will do, everything I've found in the past about this printer has it in a family with the E230, E232, E330(mine) and E332n which is the network capable version of mine. Thats why I was tempted with the E230 driver, rather than the E320, but I suppose there is no harm in trying it.
@ferrari Top Instructions! I think you've helped me find the problem, though I'm still not 100% sure how to fix it. I didn't want to post the whole log, it's huge! but here I think is the relevant part from trying to print a test page. :
Quote:
D [12/May/2016:04:35:21 +0100] cupsd is not idle any more, canceling shutdown.
D [12/May/2016:04:35:21 +0100] [CGI] /usr/share/cups/drivers/pscript5.dll: No such file or directory
D [12/May/2016:04:35:21 +0100] cupsd is not idle any more, canceling shutdown.
D [12/May/2016:04:35:21 +0100] [Client 20] POST / HTTP/1.1
D [12/May/2016:04:35:21 +0100] cupsdSetBusyState: newbusy="Active clients and printing jobs", busy="Active clients and printing jobs"
D [12/May/2016:04:35:21 +0100] [Client 20] No authentication data provided.
D [12/May/2016:04:35:21 +0100] [Client 20] 2.0 Get-Subscriptions 1
D [12/May/2016:04:35:21 +0100] Get-Subscriptions ipp://localhost/
D [12/May/2016:04:35:21 +0100] [Client 20] Returning IPP successful-ok for Get-Subscriptions (ipp://localhost/) from localhost
D [12/May/2016:04:35:21 +0100] [Client 20] Content-Length: 257
It looks like it can't find the pscript5.dll (probably related to the fact I tried PCL5e driver first). Also I see lots of entries mentioning "No Authentication data provided", so could there be a permissions problem? Also seen mention of "Dirty files", so i'm not sure if i've maybe messed something up with my fiddling?
I couldn't seem to do anything with parallel, in terminal it would just go back to prompt, even tried that as SU, no success.
So does this mean the lpt port isn't set up right? that would explain things.
Oh and forgot to mention, in BIOS it'll be set to ECP, I always set parallel ports to ECP, unless theres a specific reason not to. To put you in the picture, I've years of experience of repairing and building computer hardware, and doing windows and server installs Mostly Wintel based. So it's only the linux specific stuff I'm going to be like a noob on.
Thanks for all the help and links so far. You all are awesome!
Edit forgot to add @Ztcoracat, the lexmark website was my first port of call, and I tried loading the .deb related to the E330, it popped up the synaptic package manager, and installed, but after that, no printer. Thats when I started finding stuff about the CUPS localhost thingy, the port missing, and doing the initial terminal stuff. But I am still fumbling in the dark a bit. I think the only terminal commands i've got to grips with is SU, sudo, cd, ls, lsmod. The rest I have still to learn. Talking of which, is there a shell command reference anywhere, where I could learn all the shell commands and switches?
Thanks again.
Last edited by LateLesley; 05-11-2016 at 11:13 PM.
You could use dpkg to list the files in the .deb and see if something isn't quite expected.
$ dpkg -c file.deb
Perhaps there's /usr/bin/... stuff to setup the printer. Or the /usr/lib/ stuff is 32 bit only and therefor needs that compatibility or even a pure 32 bit install. To better the odds.
Thanks for the links and man instructions Ztcoracat. Also, actually I didn't reboot come to think of it, I had the computer in sleep mode rather than off. I'll try a reboot later today. I've chucked it in for the night, in bed now.
And Shadow 7, you may have touched on a point. If the linux driver is 32bit, will it work on a 64 bit system. I know in windows that could sometimes be an issue.
Thanks for the links and man instructions Ztcoracat. Also, actually I didn't reboot come to think of it, I had the computer in sleep mode rather than off. I'll try a reboot later today. I've chucked it in for the night, in bed now.
And Shadow 7, you may have touched on a point. If the linux driver is 32bit, will it work on a 64 bit system. I know in windows that could sometimes be an issue.
Night folks. To be continued tomorrow.
You're Welcome-
You can also checked to see if that pkg is installed with:
Code:
dpkg -L print-drivers-linux-glibc2-x86_5.3.3.deb
if it's installed the output in the terminal will tell you so.
It looks like it can't find the pscript5.dll (probably related to the fact I tried PCL5e driver first). Also I see lots of entries mentioning "No Authentication data provided", so could there be a permissions problem? Also seen mention of "Dirty files", so i'm not sure if i've maybe messed something up with my fiddling?
Yes, that appears to be associated with samba printing eg cupsaddsmb (CUPS server for windoes clients support)where various Windows .dll files are required for printing
Not relevant here though. I would remove any existing printer configuration and start over. BTW, the printer configuration is /etc/cups/printers.conf, and associated PPD files in /etc/cups/ppd directory.
OOOKKKKKK! I rebooted, went into the printer admin panel, looked a properties, and clicked the test page button, and BANG! got a hard hang. So I've rebooted again.
xxxxxxxxxxxxxxxxxxxx ~ $ dpkg -L print-drivers-linux-glibc2-x86_5.3.3.deb
dpkg-query: package 'print-drivers-linux-glibc2-x86_5.3.3.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
xxxxxxxxxxxxxxxxxxxx ~ $
so it seems that package in particular is not installed. I'm not sure it WOULD be installed though, since i'm running the 64 bit version of Mint. wouldn't we be looking for x86_64?
I just tried modprobe lp, then lpinfo -v, and there is still no sign of the parallel port, just serial and network stuff. I think this is the first problem. SO, how do we diagnose the parallel port, and get it working from inital boot. (remember I need my hand held here, I really do not know the linux boot process, or where drivers are held, or conf files etc. )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.