Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I work at a company with many network printers. We're switching many of our computers to Ubuntu 13.04 and I need to add the printers en masse. I figured the best way to do that was through a script. This is an example line to add a printer:

lpadmin -p printername -E -v socket://ip.address -m ppd

This adds a printer, but it fails to load the required ppd file. When I search for a ppd file, many of the links I find redirect me to a program called hplip, which apparently serves as a printer driver? But how do I reference those ppd's from a script file?

Here's the specific error I'm getting:

lpadmin: Unable to copy PPD file.
share|improve this question
Are these all the same printer type? hplip has the HP printer drivers. I also think you need to the -P option to specify the file in /usr/share/ppd/..., not -m.... For more info, run man lpadmin. – Wilf Jan 21 '14 at 22:17
/usr/share/ppd/ seems to not contain any .ppd files. There is a directory /usr/share/ppd/hplip/HP that contains fax machine ppds, but I don't think that's what I'm looking for. I'll try -P and get back to you. Can you give an example line using hplip? – user3029838 Jan 21 '14 at 22:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.