Skip to main content
Question

lpadmin: Unable to create PPD file


Forum|alt.badge.img+3
  • New Contributor
  • 3 replies

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! 

2 replies

mateow
Forum|alt.badge.img+4
  • New Contributor
  • 8 replies
  • March 10, 2022

did you ever figure this out? 


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 3 replies
  • March 10, 2022
mateow wrote:

did you ever figure this out? 


In my case it appears that newer versions of lpadmin didn't want to play nice with PaperCut Mobility Print printers. I ended up just ignoring Apple's advice and creating a PPD file first. It gives you a couple of warnings about being deprecated but works on all my devices.

 

For the above example I'd use something like this instead:

/System/Library/Printers/Libraries/ipp2ppd ipps://print.my.domain:9164/printers/office everywhere > /tmp/office.ppd lpadmin -p office -v ipps://print.my.domain:9164/printers/office -P /tmp/office.ppd

 

Hopefully that helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings