cups icon indicating copy to clipboard operation
cups copied to clipboard

lp: Error - add '/version=1.1' to server name.

Open rihanalkamim opened this issue 1 year ago • 2 comments

I'm that error when try send impression to another server.

lp -h 172.20.1.110:631 -dPR04 imp.txt lp: Error - add '/version=1.1' to server name.

Can anyone help me?

rihanalkamim avatar Jan 15 '25 05:01 rihanalkamim

I remember this from older times, cf. https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/index.html#fate-314630 that reads in particular (excerpt)

CUPS >= 1.6 has major incompatible changes
compared to CUPS up to version 1.5.4
in particular when printing via network:

The IPP protocol default version increased from 1.1 to 2.0.
Older IPP servers like CUPS 1.3.x (for example ...)
reject IPP 2.0 requests with "Bad Request" (see ...).
By adding '/version=1.1' to ServerName in client.conf
(e.g., ServerName older.server.example.com/version=1.1)
or to the CUPS_SERVER environment variable value
or by adding it to the server name value of the '-h' option
(e.g., lpstat -h older.server.example.com/version=1.1 -p)
the older IPP protocol version for older servers
must be specified explicitly. 

By the way: unless you really have Apple CUPS (e.g. on macOS) current CUPS upstream has moved to https://github.com/OpenPrinting/cups

jsmeix avatar Jan 15 '25 13:01 jsmeix

I remember this from older times, cf. https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/index.html#fate-314630 that reads in particular (excerpt)

CUPS >= 1.6 has major incompatible changes
compared to CUPS up to version 1.5.4
in particular when printing via network:

The IPP protocol default version increased from 1.1 to 2.0.
Older IPP servers like CUPS 1.3.x (for example ...)
reject IPP 2.0 requests with "Bad Request" (see ...).
By adding '/version=1.1' to ServerName in client.conf
(e.g., ServerName older.server.example.com/version=1.1)
or to the CUPS_SERVER environment variable value
or by adding it to the server name value of the '-h' option
(e.g., lpstat -h older.server.example.com/version=1.1 -p)
the older IPP protocol version for older servers
must be specified explicitly. 

By the way: unless you really have Apple CUPS (e.g. on macOS) current CUPS upstream has moved to https://github.com/OpenPrinting/cups

Dear, Very thank you, with this documentation im solved the problem, basically im add that parameter "/version=1.1" in paremeter -h.

lp -h 172.20.1.110/version=1.1 -dPR04 imp.txt

This resolved my problem, thank you so much.

rihanalkamim avatar Jan 15 '25 21:01 rihanalkamim