[cups.general] lpadmin: Bad device-uri

Michael Sweet msweet at apple.com
Mon Aug 24 14:46:31 PDT 2009


The examples you show look like you have two copies of the command  
concatenated together (separated by a "#").

Try just:

     /usr/sbin/lpadmin -p aPDFprinter -v pdf:///tmp

On Aug 24, 2009, at 2:37 PM, Ryan Suarez wrote:

> hrmm, problem is I'm not adding a '#'.  And I get the same error  
> when I
> add 2 or 3 slashes.
>
> # /usr/sbin/lpadmin -p aPDFprinter -v pdf:/tmp# /usr/sbin/lpadmin -p
> aPDFprinter -v pdf://tmp
> lpadmin: Bad device-uri "pdf:/tmp#"!
> # /usr/sbin/lpadmin -p aPDFprinter -v pdf:/tmp# /usr/sbin/lpadmin -p
> aPDFprinter -v pdf:///tmp
> lpadmin: Bad device-uri "pdf:/tmp#"!
>
>
> Michael Sweet wrote:
>> "#" is not a valid character in a device URI, and "pdf:/tmp#" is not
>> well-formed - you need two slashes at least, preferably 3 to match up
>> with the generic URI spec...
>>
>> On Aug 24, 2009, at 2:23 PM, Ryan Suarez wrote:
>>
>>
>>> Greetings,
>>>
>>> I'm stuck, could someone please help?  I get this error on RHEL 5.3:
>>>
>>> # /usr/sbin/lpadmin -p aPDFprinter -v pdf:/tmp# /usr/sbin/lpadmin -p
>>> aPDFprinter -v pdf:/tmp
>>> lpadmin: Bad device-uri "pdf:/tmp#"!
>>>
>>> # ls -la /usr/lib/cups/backend/pdf
>>> -rwx------ 1 root root 2343 Aug 24 15:15 /usr/lib/cups/backend/pdf
>>>
>>> # cups-config --version  (it's just the standard cups rpm for this
>>> RHEL)
>>> 1.3.7
>>>
>>> here's a copy of the backend:
>>> http://pastebin.ca/1542040
>>>
>>> and cupsd.conf:
>>> http://pastebin.ca/1542046
>>>
>>> What causing this?
>>>
>>> _______________________________________________
>>> cups mailing list
>>> cups at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups
>>>
>>
>> ___________________________________________________
>> Michael Sweet, Senior Printing System Engineer
>>
>>
>>
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
>>
>>
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list