UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I can print a Libre Office document, but when I want to print a pdf, nothing happens, although I get a message 'job completed', I also get a 'system error' message. The little light on the printer keeps flashing, and only a reboot can get it to print a Libre Office document.
I am using Ubu 18.04, which I am finding very beta. Often it freezes on shutdown, the network connection gets lost when switching from vpn back to normal, Libre Office can freeze the computer, moan, moan.
Anyone know a fix for this problem of pdfs not printing?
I installed the printer using hplip-3.18.7.run from HP. It needs a proprietary software not supplied by Ubu.
I only have Ubuntu at home, no other distro. I'm not an expert, and Ubu is relatively easy to use.
I had no problem doing this in 16.04.
The pdfs are not protected, I generated them.
Whatever default pdf reader comes with Ubu 18.04, that's what I have, seems to be Document Viewer 3.28.2
Also, this is only a problem with the HP printer. My Epson printer has no problem. At work a Brother printer also works fine.
I've heard, HP printers work well with Linux. Maybe that was so in the past, but not now. There is some kind of protected software which Ubu does not have.
hplip-3.18.7.run seems to work, installs the proprietary software and prints a test page. I thought, everything OK now, but a pdf will not print.
I only have Ubuntu at home, no other distro. I'm not an expert, and Ubu is relatively easy to use.
I had no problem doing this in 16.04.
The pdfs are not protected, I generated them.
Whatever default pdf reader comes with Ubu 18.04, that's what I have, seems to be Document Viewer 3.28.2
Also, this is only a problem with the HP printer. My Epson printer has no problem. At work a Brother printer also works fine.
I've heard, HP printers work well with Linux. Maybe that was so in the past, but not now. There is some kind of protected software which Ubu does not have.
hplip-3.18.7.run seems to work, installs the proprietary software and prints a test page. I thought, everything OK now, but a pdf will not print.
Maybe Ubu 18.04 is just too young!
So, just to confirm, you printed exactly the same pdf on exactly the same printer when you had Ubuntu 16.04 but it worked?
I would recommend checking the CUPS error_log (/var/log/cups/error_log) after sending a PDF print job to the HP printer. First, CUPS should be put into debug mode with
Code:
sudo cupsctl --debug-logging
then send a print job and examine the log (with an editor). It's likely to contain lengthy output, so if you need help understanding it consider copying the content to https://pastebin.com/ and share the link to it here.
I just tried to print 1 page pdf, did not work, now the printer status light is flashing and the printer is unusable. I called this print queue hplaser1025, so I looked for that in the error log. The whole error log is too long to paste, exceeds the permitted size.
Often a good idea to delete the exiting log before starting these diagnostic exercises. It will get recreated the next time CUPS starts. Or just identify the relevant print job (or time stamp) and examine just that section.
I tried to print again. I waited until my computer clock got past 08.41 to 08.42, then clicked print. The error log shows 08.42.05 I copied the next 10 seconds, up to 08.42.15.
Maybe that will give you a clue?? The error log is still a lot longer!!
I started a new print job at [18/Sep/2018:09:16:04 +0800] then quickly copied the error log to the end, because it just keeps getting longer!
Just for things like this, I have 2 printers at home and 2 in the office. I have found, if you rely on one printer, just when you really need it, it balks!
For future reference, the error_log can be deleted with
Code:
sudo rm -f /var/log/cups/error_log
then restart CUPS and it should get recreated.
Anyway, the filter chain is present in your last posted log...
Code:
D [18/Sep/2018:09:16:04 +0800] [Job 246] 3 filters for job:
D [18/Sep/2018:09:16:04 +0800] [Job 246] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [18/Sep/2018:09:16:04 +0800] [Job 246] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [18/Sep/2018:09:16:04 +0800] [Job 246] hpcups (application/vnd.cups-raster to printer/hplaser1025, cost 0)
...and from examining that I can see that it is hpcups that fails further down....
Code:
D [18/Sep/2018:09:16:04 +0800] [Job 246] prnt/hpcups/HPCupsFilter.cpp 644: DEBUG: SHIVA inside the while loopprnt/hpcups/HPCupsFilter.cpp 648: DEBUG: imageProcessorStartPage failed result = 2
This error is the same reported in this recent Slackware thread so likely a regression with HPLIP itself (the hpcups backend is part of HPLIP).
Work around: we have an old laptop here at home with Win 7. I installed the hp software from the cd which came with it. At least, if I want to print a pdf, I can plug a usb stick in and print from there!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.