Today using a HP Photosmart 6520 printer that has been working in Lx 3 since Lx 3 was released printing appears to be broken. When I try to print something I just get no response.
$ systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-11-26 10:32:24 CST; 28min ago
Docs: man:cupsd(8)
Main PID: 3621 (cupsd)
Status: "Scheduler is running..."
Tasks: 2 (limit: 4915)
Memory: 74.2M
CGroup: /system.slice/cups.service
├─ 3621 /usr/sbin/cupsd -l
└─18049 /usr/lib/cups/notifier/dbus dbus://
Nov 26 10:32:23 ben79-pc systemd[1]: Starting CUPS Scheduler...
Nov 26 10:32:24 ben79-pc systemd[1]: Started CUPS Scheduler.
Nov 26 11:00:07 ben79-pc /hpfax[18403]: [18403]: error: Failed to create /var/spool/cups/tmp/.hplip
This is ourput of attempt to print with hp-print:
$ hp-print
HP Linux Imaging and Printing System (ver. 3.17.10)
Print Utility ver. 4.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
error: Print command failed with status code 1. lpr -P HP-Photosmart-6520-series -o page-set=all "/home/ben79/Documents/print_test_page_output.txt"
I’m in a hurry to get to an appointment so am probably forgetting some documentation that might be helpful. Let me know and I’ll post it.
Something odd is that hp-toolbox will “align cartridges” so something is working it is printing specifically that is broken for some reason.
One thing I see is that there are no print jobs in print queue in hp-toobox.
This is hp-toolbox attempting to print a test page:
$ hp-toolbox
HP Linux Imaging and Printing System (ver. 3.17.10)
HP Device Manager ver. 15.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
warning: mandrake distro is not found in AUTH_TYPES
/QXcbConnection: XCB error: 3 (BadWindow), sequence: 2113, resource id: 33588696, major code: 40 (TranslateCoords), minor code: 0
/usr/bin/lpr-cups: Unsupported document-format "application/postscript".
error: Print command failed with exit code 256!
I have neither a HP printer not any remaining Lx3 boxes (please check 4), but some of this is odd:
“Failed to create /var/spool/cups/tmp/.hplip”
Probably a permissions issue. Does the directory /var/spool/cups/tmp exist? (The cups package is supposed to contain it, and it’s supposed to be owned by user root, group lp, permissions 1770)
“/dev/lp: Permission denied”
That’s trying to create a file called lp in /dev – you don’t have permissions to do that.
what you probably meant is cat print_test_page_output.txt >/dev/lp0 (but isn’t that for ancient parallel port printers only? Probably not going to work either way. This is a usb printer, right?)
The strangest things are the “Unsupported document-format” errors - application/postscript should be handled by /usr/share/cups/mime/mime.convs, text/plain should be handled by /usr/share/cups/mime/cupsfilters.convs.
Are those files there and readable?
Is the cups-filters package installed?
cups-filters is not installed, if all those other cups packages are installed shouldn’t it be installed with them? It may have been removed at some point by --auto-orphans.
# urpmi cups-filter
...
found package(s): cups-filters-1.8.3-2-omv2015.0.x86_64 cups-filters-1.20.3-2-omv2015.0.x86_64
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Dist DEpoch Arch
(medium "main")
lib64qpdf13 5.1.2 6 omv 2015.0 x86_64
(medium "main updates")
bc 1.07.1 1 omv 2015.0 x86_64
cups-filters 1.20.3 2 omv 2015.0 x86_64
lib64cupsfilters1 1.20.3 2 omv 2015.0 x86_64
lib64fontembed1 1.20.3 2 omv 2015.0 x86_64
poppler 0.64.0 1 omv 2015.0 x86_64
3.3MB of additional disk space will be used.
1MB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n)
One of those packages in has a bad signature:
The following package has bad signature:
/var/cache/urpmi/rpms/lib64qpdf13-5.1.2-6-omv2015.0.x86_64.rpm: Invalid Key ID (OK (RSA/SHA1, Sun 27 Mar 2016 06:28:20 AM CDT, Key ID 99d0efd04cf8acbe))
Do you want to continue installation ? (y/N)
Yes, printer is USB, I was copying commands from a cheat sheet trying to get printing from command line.
Missing cups-filter is what was broken. Can again print from FF, from cli with lpr, etc.
After installing the files /usr/share/cups/mime/mime.convs and /usr/share/cups/mime/cupsfilters.convs do exist.
Post-edit: I think this likely was mistake by me triggering --auto-orphans which removed the cups-filter package. So the lesson kids is read the list of packages --auto-orphans is going to remove and if you have any doubt what so ever don’t do it. Ask an expert/developer if you have questions.