Adding printer from commandline does not work anymore after upgrade to 13.10

Bug #1248578 reported by Matthias Braun
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned
Saucy
Fix Released
Undecided
Unassigned

Bug Description

In Ubuntu 13.10 I can't add printers from the commandline. For example when I use the following command as root:

lpadmin -p i44hpneu -m "drv:///hpcups.drv/hp-laserjet_4250-pcl3.ppd" -D "xxx" -L "xxx" -E -v socket://my-printer-url

Then the printer i44hpneu is created but it does not work. Another symptom is that no /etc/cups/ppd/i44hpneu.ppd file is created. The model/driver is listed in "lpinfo -m", so the printer-driver-hpcups package appears to have installed correctly. Adding printers from the GUI or the cups webpage is working. Ubuntu version 13.04 and earlier work too.

(I'm mainting around 20 linux PCs so automating printer installation from the commandline is a very convenient tool as I can prepare scripts to do all the setup).

[Impact]

Very important feature for administrators of print servers, especially head-less servers are not working, causing major problems for the admin:

1. Setting up print queues with "lpadmin", specifying the PPD/driver with the "-m" option does not work, leading to a raw queue.

2. Setting up printers with the web interface of CUPS (http://localhost:631/) does not work.

[Test Case]

Run the command

lpadmin -p test -E -v file:/dev/null -m drv:///sample.drv/laserjet.ppd

This should create a print queue with the generic LaserJet PPD (PCL 5e printer). The PPD should be in /etc/cups/ppd/test.ppd.

What you get is a raw queue without the PPD.

The proposed package fixes this. The same command correctly creates a print queue with PPD.

[Regression Potential]

Very low, as only a few lines are modified in the code for lpadmin and for the appropriate part of the web interface. The CUPS daemon and the CUPS library are not modified.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: cups 1.7.0~rc1-0ubuntu5
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelModules: openafs nvidia
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Wed Nov 6 15:55:40 2013
InstallationDate: Installed on 2013-02-13 (266 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
Lpstat:
 device for i44canon: socket://i44canon.info.uni-karlsruhe.de
 device for i44hp201: socket://i44hp201.info.uni-karlsruhe.de
 device for i44hp4250: socket://i44hp4250.info.uni-karlsruhe.de
 device for i44hpneu: socket://i44hpneu.info.uni-karlsruhe.de
 device for PDF: cups-pdf:/
MachineType: FUJITSU ESPRIMO P910
MarkForUpload: True
Papersize: a4
ProcEnviron:
 LANGUAGE=en_US
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=0de5b9f6-e317-48be-83f8-90ee01c66888 ro quiet splash
SourcePackage: cups
UpgradeStatus: Upgraded to saucy on 2013-11-05 (0 days ago)
dmi.bios.date: 12/17/2012
dmi.bios.vendor: FUJITSU // American Megatrends Inc.
dmi.bios.version: V4.6.5.3 R1.19.0 for D3162-A1x
dmi.board.name: D3162-A1
dmi.board.vendor: FUJITSU
dmi.board.version: S26361-D3162-A1
dmi.chassis.type: 6
dmi.chassis.vendor: FUJITSU
dmi.chassis.version: C$PXW6
dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV4.6.5.3R1.19.0forD3162-A1x:bd12/17/2012:svnFUJITSU:pnESPRIMOP910:pvr:rvnFUJITSU:rnD3162-A1:rvrS26361-D3162-A1:cvnFUJITSU:ct6:cvrC$PXW6:
dmi.product.name: ESPRIMO P910
dmi.sys.vendor: FUJITSU

Revision history for this message
Matthias Braun (matthias-braun-kit) wrote :
Revision history for this message
Matthias Braun (matthias-braun-kit) wrote :

I've just seen that the changes of upstream cups 1.7.0 contain:
"The lpadmin command did not send the PPD name from the "-m" option (<rdar://problem/15264697>)" this might be this bug. Unfortunately I wasn't able to build packages with 1.7.0 to test this (always had test failuers after building).

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

I have already packaged CUPS 1.7.0 final. It is on my PPA:

https://launchpad.net/~till-kamppeter/+archive/ppa

Add the PPA to your system as described and update. Then you should get the final 1.7.0 of CUPS. Please tell here whether it solves your problem.

Revision history for this message
Matthias Braun (matthias-braun-kit) wrote :

Yes, upgrading to the 1.7.0 packages from your ppa fixed my problem!

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

Matthias, thank you for testing.

Marking as fixed in Trusty as there we are using 1.7.0 final already.

Preparing SRU for Saucy, please stay tuned for testing the official update package.

Changed in cups (Ubuntu):
status: New → Fix Released
Changed in cups (Ubuntu Saucy):
status: New → In Progress
milestone: none → saucy-updates
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Uploaded fixed package to -proposed. Please test it as soon as it gets approved. Instructions will get posted here then. Note that your testing of the update is required for the update getting released for everyone.

Changed in cups (Ubuntu Saucy):
status: In Progress → Fix Committed
Revision history for this message
Stéphane Graber (stgraber) wrote : Please test proposed package

Hello Matthias, or anyone else affected,

Accepted cups into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cups/1.7.0~rc1-0ubuntu5.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Matthias Braun (matthias-braun-kit) wrote :

Yes, installing the proposed packages fixed the bugs for me. Thanks for all the work!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.7.0~rc1-0ubuntu5.1

---------------
cups (1.7.0~rc1-0ubuntu5.1) saucy-proposed; urgency=low

  * debian/patches/lpadmin-ppdname-fix.patch: The lpadmin command did not send
    the PPD name from the "-m" option and also the web interface did not use
    the selected PPD file (LP: #1248578).
 -- Till Kamppeter <email address hidden> Fri, 8 Nov 2013 18:49:01 +0100

Changed in cups (Ubuntu Saucy):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for cups has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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.