I've got a script to add printers to new computers. I've tested it on a few machines successfully, however it fails on others. The error occurs when using lpadmin to add a printer:
lpadmin -p office -m everywhere -v "ipps://print.my.domain:9164/printers/office"
Which gives ONE of the following errors, it seems to be random which one I get:
lpadmin: Unable to create PPD file: Undefined error: 0
lpadmin: Unable to create PPD file: Interrupted system call
One of the computers it fails on is a freshly installed version of Big Sur 11.6.
Resetting the printing system through System Preferences doesn't help. Adding printers through System Preferences works correctly.
I can't find any information on these errors anywhere, so anything would help.
Thanks!