LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to copy PPD file! When creating new printer via lpadmin (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-copy-ppd-file-when-creating-new-printer-via-lpadmin-892368/)

BradMarks 07-18-2011 04:53 PM

Unable to copy PPD file! When creating new printer via lpadmin
 
Hi. I'm a Red Hat 6 newbie but have been around Unix.
I looked at some threads here regarding this issue and haven't been able to find a solution.
I'm executing; lpadmin -p bam -v socket:139.64.101.21 -m /etc/cups/ppd/BR5370_2_GPL.ppd

When I look in /var/log/cups/error_log, here's what I get:
E [18/Jul/2011:14:37:36 -0700] [cups-driverd] Bad PPD name "/etc/cups/ppd/BR5370_2_GPL.ppd"!
E [18/Jul/2011:14:37:36 -0700] copy_model: empty PPD file!
E [18/Jul/2011:14:37:36 -0700] Returning IPP server-error-internal-error for CUP
S-Add-Modify-Printer (ipp://localhost/printers/bam) from localhost

But here's the ppd:
ll /etc/cups/ppd/BR5370_2_GPL.ppd
-rw-r--r-- 1 root root 25537 Jul 18 13:45 /etc/cups/ppd/BR5370_2_GPL.ppd

I'm logged in as root, so I don't think permissions are the issue.
Why does the error log state that the ppd file is empty?
Why can't lpadmin copy the ppd file?

Thanks in advance!
-Brad

Peacedog 07-18-2011 10:03 PM

Hi BradMarks, welcome to LQ. Try this instead.

Code:

lpadmin -p bam -v socket:139.64.101.21 -P /etc/cups/ppd/BR5370_2_GPL.ppd
Good luck. ;-)

BradMarks 07-19-2011 09:42 AM

...almost there!
 
Thanks, Peacedog, that got me past the ppd issue but...
After doing a '#cupsaccept bam' and 'cupsenable bam', an 'lpstat -t bam' states that the printer is disabled because "Unable to locate printer ''!"
I am able to ping the printer's IP. Why is the printer name blank in the above message? What have I missed doing?
Thnaks!
-Brad

Peacedog 07-19-2011 09:22 PM

Do you have a GUI on the machine? If so, try http://localhost:631 for web based cups configuration.

Good luck. ;-)

Tinkster 07-20-2011 12:04 AM

Try
Quote:

-v socket://139.64.101.21

BradMarks 07-22-2011 11:26 AM

Got It!
 
Quote:

Originally Posted by Tinkster (Post 4419760)
Try

Tinkster,
That did the trick.
Thanks to all for your help!
-Brad


All times are GMT -5. The time now is 08:46 PM.