Installing custom ppd dosen't work

Bug #119831 reported by tuharsky
2
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Pascal De Vuyst

Bug Description

Using cups management console at localhost:631, I attempted to install Xerox Document Centre 230 printer. I added myself to lpadmin group and logged in to "Administration" mode. I wanted to install custom PPD in order to make the printer work. However, after confirming the PPD, I get an error "Unable to copy PPD file - Permission denied!"

Seems, that directory permissions are set incorrectly somewhere..

In /var/log/cups/access.log, I see

localhost - - [11/Jun/2007:14:52:07 +0200] "POST /admin/ HTTP/1.1" 401 18479 CUPS-Add-Modify-Printer successful-ok
localhost - - [11/Jun/2007:14:52:06 +0200] "POST /admin HTTP/1.1" 401 19870 - -
localhost - - [11/Jun/2007:14:52:06 +0200] "POST /admin HTTP/1.1" 200 19870 - -
localhost - tuharsky [11/Jun/2007:14:52:17 +0200] "POST /admin HTTP/1.1" 200 19870 - -
localhost - - [11/Jun/2007:14:52:17 +0200] "POST /admin/ HTTP/1.1" 401 18479 CUPS-Add-Modify-Printer successful-ok
localhost - tuharsky [11/Jun/2007:14:52:17 +0200] "POST /admin/ HTTP/1.1" 200 18479 CUPS-Add-Modify-Printer server-error-internal-error
localhost - tuharsky [11/Jun/2007:14:52:17 +0200] "POST /admin HTTP/1.1" 200 23253 - -

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Seems to be a problem of the non-root patches on CUPS. They should include that the directory where new PPDs are added via the web interface has correct permissions so that the non-root CUPS daemon can write the PPDs.

Changed in cupsys:
assignee: nobody → pitti
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your bug report.
Adding a custom PPD in CUPS web interface works for me in Feisty as a user part of the lpadmin group.

Which version of Ubuntu are you using?
Please provide the output of the printingbuginfo script for some basic information about your printing setup, it can be found here: https://wiki.ubuntu.com/PrintingBugInfoScript.

Can you give the output of the following commands:
$ ls -l /usr/share/ppd/
$ id <your_username>

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
tuharsky (tuharsky) wrote :

We can close it. After complete restart, it works now.

Revision history for this message
tuharsky (tuharsky) wrote :

Strange, adding PPD's works without complaint now, however the new printer dosen't show off in the selection list.

Changed in cupsys:
assignee: pitti → pascal-devuyst
status: Needs Info → Rejected
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

> however the new printer dosen't show off in the selection list
Probably the Xerox PPD does not comply to the Adobe PPD Specification.
What is the output of the following command:
$ cupstestppd <file>.ppd

Revision history for this message
tuharsky (tuharsky) wrote :

xerox_230.ppd: PASS
        WARN DefaultResolution has no corresponding options!
        WARN Obsolete PPD version 4,0!
        REF: Page 42, section 5.2.

By the way, the printer WORKS with the PPD, just the model dosen't appear in the supported models list during new printer installation.
The printer however appears in the list of active printers, and the driver cited is the closest one from the CUPS-supported drivers. I don't know, whether THAT driver is used, or the custom PPD.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

> just the model dosen't appear in the supported models list during new printer installation
Please attach the PPD you used to this bug report.

> I don't know, whether THAT driver is used, or the custom PPD.
You can check if your custom PPD and /etc/cups/ppd/<printername>.ppd are identical by running the following command:
$ diff -us <custom>.ppd /etc/cups/ppd/<printername>.ppd

Revision history for this message
tuharsky (tuharsky) wrote : Re: [Bug 119831] Re: Installing custom ppd dosen't work
Download full text (28.2 KiB)

Pascal De Vuyst wrote / napísal(a):
>> just the model dosen't appear in the supported models list during new printer installation
> Please attach the PPD you used to this bug report.
>
>> I don't know, whether THAT driver is used, or the custom PPD.
> You can check if your custom PPD and /etc/cups/ppd/<printername>.ppd are identical by running the following command:
> $ diff -us <custom>.ppd /etc/cups/ppd/<printername>.ppd
>
Here are the PPDs

They are identical.

Peter

*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.linuxprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use with
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
*% "foomatic-rip" backend filter script of Foomatic 3.0.0 or newer. This
*% file and "foomatic-rip" work together to support PPD-controlled printer
*% driver option access with arbitrary free software printer drivers and
*% printing spoolers.
*%
*% To save this file on your disk, wait until the download has completed
*% (the animation of the browser logo must stop) and then use the
*% "Save as..." command in the "File" menu of your browser or in the
*% pop-up manu when you click on this document with the right mouse button.
*% DO NOT cut and paste this file into an editor with your mouse. This can
*% introduce additional line breaks which lead to unexpected results.
*%
*% You may save this file as 'Xerox-Document_Centre_400-hpijs.ppd'
*%
*%
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "HPIJS.PPD"
*Manufacturer: "Xerox"
*Product: "(Document Centre 400)"
*cupsVersion: 1.0
*cupsManualCopies: True
*cupsModelNumber: 2
*cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
*%pprRIP: foomatic-rip other
*ModelName: "Xerox Document Centre 400"
*ShortNickName: "Xerox Document Centre 400 hpijs"
*NickName: "Xerox Document Centre 400 Foomatic/hpijs (recommended)"
*PSVersion: "(3010.000) 550"
*PSVersion: "(3010.000) 651"
*PSVersion: "(3010.000) 652"
*PSVersion: "(3010.000) 653"
*PSVersion: "(3010.000) 704"
*PSVersion: "(3010.000) 705"
*PSVersion: "(3010.000) 800"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42

*DefaultResolution: 600dpi

*HWMargins: 18 14.40 18 14.4
*VariablePaperSize: True
*MaxMediaWidth: 100000
*MaxMediaHeight: 100000
*NonUIOrderDependency: 105 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop pop pop
%% FoomaticRIPOptionSetting: PageSize=Custom"
*End
*FoomaticRIPOptionSetting PageSize=Custom: " -dDEVICEWIDTHPOINTS=0 -dD&&
EVICEHEIGHTPOINTS=0"
*End
*ParamCustomPageSize Width: 1 points 36 100000
*ParamCustomPageSize Height: 2 points 36 100000
*ParamCustomPageSize Orientation: 3 int 0 0
*ParamCustomPageSize WidthOffset: 4 points 0 0
*ParamCustomPageSize HeightOffset: 5 points 0 0

*FoomaticIDs: Xerox-Document_Centre_400 hpijs
*FoomaticRIPCom...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.