You are not logged in.
After updating Arch today, I attempted to follow the usual instructions for post-upgrade maintenance of CUPS
...
[2016-01-16 21:57] [ALPM] upgraded cups-filters (1.5.0-2 -> 1.6.0-1)
...
[2016-01-16 21:57] [ALPM] upgraded gutenprint (5.2.10-1 -> 5.2.11-1)
[2016-01-16 21:57] [ALPM-SCRIPTLET] >>please run /usr/bin/cups-genppdupdate
[2016-01-16 21:57] [ALPM-SCRIPTLET] >>and restart cups deamon
...
However, running cups-genppdupdate returns a message saying that 0 PPD files were updated. I think in the past I've tended to assume that this meant that no files needed to be updated since the exit code returned is zero and nothing like a warning or error is produced.
On the other hand, I have seen my PPD files updated by running this script in the past and I certainly have PPD files which appear to be rather old:
$ ls -l /etc/cups/ppd/
total 1092
-rw-r--r-- 1 root root 20940 Meh 16 2012 CUPS_PDF.ppd
-rw-r--r-- 1 root root 49108 Ion 19 2013 Dell_2330dn.ppd
-rw-r--r-- 1 root root 18094 Meh 25 2014 HP-LaserJet-P3015-HPLIP.ppd
-rw-r--r-- 1 root root 64163 Meh 25 2014 HP-LaserJet-P3015.ppd
-rw-r--r-- 1 root root 179457 Hyd 19 2013 HP-P3005-socket.ppd
-rw-r--r-- 1 root root 152507 Med 12 2012 HP1320.ppd
-rw-r--r-- 1 root root 18146 Meh 11 2012 HP1320_hplip_hpijs.ppd
-rw-r--r-- 1 root root 179457 Hyd 2 2013 HP_LaserJet_P3005.ppd
-rw-r--r-- 1 root root 188658 Med 26 2013 HP_LaserJet_P3010.ppd
-rw-r--r-- 1 root root 227814 Hyd 1 2012 HP_LaserJet_P3010_Series.ppd
$ file /etc/cups/ppd/*
/etc/cups/ppd/CUPS_PDF.ppd: PPD file, version "4.3"
/etc/cups/ppd/Dell_2330dn.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP-LaserJet-P3015-HPLIP.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP-LaserJet-P3015.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP-P3005-socket.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP1320.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP1320_hplip_hpijs.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3005.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3010.ppd: PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3010_Series.ppd: PPD file, version "4.3"
The manual page for cups-genppdupdate tells me that it cannot update PPD files from Gimp-Print 4.2 or earlier, and that it cannot update Foomatic PPD files.
I've looked at the files and all contain multiple version numbers, so it is possible that the 4.3 is not the correct one, though I'm hoping it is.
I did use Foomatic at one point for some printers, so I checked for those:
$ grep -l -i foomatic /etc/cups/ppd/*
/etc/cups/ppd/HP-LaserJet-P3015-HPLIP.ppd
/etc/cups/ppd/HP1320_hplip_hpijs.ppd
So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?
Is it because /usr/bin/cups-genppdupdate is only included in the gutenprint package, so only those printers that use gutenprint need to be updated?
Offline
cfr wrote:So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?
Is it because /usr/bin/cups-genppdupdate is only included in the gutenprint package, so only those printers that use gutenprint need to be updated?
Thanks. This sounds plausible, but I don't know how to tell whether it is true or not! Does anything else need to be done for other PPDs? Or is there something special about gutenprint such that its PPDs need updating, but no others?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I've never had to update any of the PPD's for printers on my system (including HP), but I don't use gutenprint. Is there anything in the gutenprint manual pages that explains it - can you do...?
man cups-genppdupdate
Offline
If you use gutenprint PPD files, the gutenprint PPD files will be updated. I don't think you necessarily NEED to do it if there wasn't any real change in the PPD file of your printer. I do use one and it has been updated, I haven't printed something in the meantime to see what broke though (The file is part of gutenprint, if you don't use gutenprint drivers it won't do anything).
And it will only update configured PPD files, as in there's a configured printer in CUPS, the configured PPD file is placed in /etc/cups/ppd and the tool will update said configured PPD file with the new file adding any new options but merging the old configured values in.
Last edited by V1del (2016-01-18 15:27:24)
Online
I had the same problem after my last upgrade. I could not print, all my jobs were stopped. The execution of /usr/bin/cups-genppdupdate just gives me:
/etc/cups/ppd/Canon_MG5100_series.ppd: no valid candidate for replacement. Skipping
/etc/cups/ppd/Canon_MG5100_series.ppd: please upgrade this PPD manually
Unable to retrieve PPD file for /etc/cups/ppd/Canon_MG5100_series.ppd!
I simple removed the printers and added them again and now it worked. I know it is not a real solution, but a quick fix for me. Hope it helped someone...
Offline
It's good for me too. I have re-added my printer (Canon MG2500 series) by the web CUPS interface (http://localhost:631/admin).
But I had also another problem withs CUPS-PDF: "File "/usr/lib/cups/filter/rastertogutenprint.5.2" not available: No such file or directory". I solved this last making /usr/lib/cups/filter/pdftoraster-popple a symlink to /usr/lib/cups/filter/pdftoraster (see https://bugs.launchpad.net/ubuntu/+sour … bug/765514 ).
Last edited by micman (2017-05-09 01:29:39)
Offline