I could add my printer with a custom ppd only the old way with localhost:631 in my browser. The automatic installation only offered to install some foomatic driver from Gnome Software, which doesn’t work with my printer. As a consequence, no printer showed up in Gnome settings, hence I couldn’t change the ppd file there.
Yet, when I try to print it always says “Printing stopped.” I looked for different drivers in Sodtware - same result.
Debian stable lets me install a ppd file in Gnome settings and prints flawlessly on the same printer.
It would help to know what printer you’re trying to setup and how it’s connected, network , USB or maybe parallel port ?
the “old” way should still work though.
I usually use lpadmin to setup new printer queues.
try running lpinfo --make-and-model <some string describing your printer> -m and check if a ppd is listed matching theprinter
e.g.
$ lpinfo --make-and-model 2055 -m
drv:///hp/hpijs.drv/hp-laserjet_p2055-pcl3-hpijs.ppd HP LaserJet p2055 hpijs pcl3, 3.26.6
drv:///hp/hpcups.drv/hp-laserjet_p2055-pcl3.ppd HP LaserJet p2055 pcl3, hpcups 3.26.6
lsb/usr/HP/hp-laserjet_p2055-pcl3.ppd.gz HP LaserJet p2055 pcl3, hpcups 3.26.6
lsb/usr/HP/hp-laserjet_p2055_series-ps.ppd.gz HP LaserJet P2055 Postscript (recommended)
[more lines deleted]
You might need to install additional packages like gutenprint or hplip (for HP printers ).
Newer printers should support the IPP everywhere standard or Mopria and don’t require any ppd file.
Ha, I found out myself!
It’s a security mechanism, preventing to except any ppd.
lpstat -l told me: Status: Process is dying with "ERROR: The value of the key FoomaticRIPOptionSetting is not among the allowed values - see foomatic-rip man page for more instructions.
Following these instructions I ran: sudo grep -Rn 'FoomaticRIPOptionSetting' /etc/cups/ppd to identify the name of the printer queue.
Then, sudo foomatic-hash --ppd-paths /etc/cups/ppd file_to_review local_hashes generated a file to review and, after seeing that there was nothing suspicious, I could copy local_hashes to /etc/foomatic/hashes.d.