lp ignores ~/.cups/lpoptions in 17.10

Bug #1729910 reported by Gabriel Ramirez
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Fix Released
Dariusz Gadomski

Bug Description


 * During some refactoring done to cupsGetNamedDest function used in many different parts of the code a regression has been introduced causing the per-user default printer setting (in ~/.cups/lpoptions) to be ignored.

This bug has been introduced in Artful due to the refactoring. Earlier releases are fine, similarly this bug is fixed upstream for Bionic.

[Test Case]

 1. Make sure at least 2 printers are set up in cups.
 2. Set one of them as global default.
 3. Create a user default setting (~/.cups/lpoptions) with the other printer set as default:
Default other_printer
 4. Run lpstat -d.

Expected result:
User default printer is displayed.

Actual result:
Global default printer is displayed.

[Regression Potential]

 * The regression potential is minial, as this is a very simple bugfix and is already included in the latest (2.2.5+) releases of cups (including Bionic).
 * The only setups affected may be those depending (possibly unintentionally) on the incorrect behavior. Their users may observe default printer change.

[Other Info]

 * Original bug description

LP ignores the settings defined in ~/cups/lpoptions in artful

Steps to reproduce:

1) Define a default print in lpoptions that differs from one in /etc/cups/printers.conf
2) Execute lpstat -d
3) Above will output default defined in prints.conf instead of ~/cups/lpoptions

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fixed in CUPS 2.2.6 which is the version used in Bionic.

For a SRU this should be the patch to backport:


Changed in cups (Ubuntu):
status: Confirmed → Fix Released
Changed in cups (Ubuntu Artful):
status: New → Triaged
Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

SRU proposal for artful.

Previous releases are not affected, as this was introduced with some refactoring done to cupsGetNamedDest (cups/dest.c).

tags: added: sts sts-sru-needed
description: updated
Changed in cups (Ubuntu Artful):
assignee: nobody → Dariusz Gadomski (dgadomski)
Eric Desrochers (slashd)
Changed in cups (Ubuntu Artful):
status: Triaged → In Progress
importance: Undecided → Medium
Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

SRU proposal for Artful.

Eric Desrochers (slashd)
tags: added: sts-sponsor-slashd
description: updated
Eric Desrochers (slashd)
tags: added: sts-sponsor-slashd-done
removed: sts-sponsor-slashd
Revision history for this message
Eric Desrochers (slashd) wrote :

Sponsored for Artful.

* Manual run of autopkgtest has been successful :
adt-run [09:26:47]: @@@@@@@@@@@@@@@@@@@@ summary
cups-core-drivers PASS
cups PASS

- Eric

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Gabriel, or anyone else affected,

Accepted cups into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cups/2.2.4-7ubuntu3 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 on 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-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. 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!

Changed in cups (Ubuntu Artful):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-artful
Revision history for this message
Rolf Anders (rolf-anders) wrote :

I confirm that the problem is fixed in version 2.2.4-7ubuntu3.

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

This bug was fixed in the package cups - 2.2.4-7ubuntu3

cups (2.2.4-7ubuntu3) artful; urgency=medium

  * Fixes cupsGetNamedDest not using local default printer
    (LP: #1729910)

 -- Dariusz Gadomski <email address hidden> Wed, 08 Nov 2017 11:31:52 +0100

Changed in cups (Ubuntu Artful):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) 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 regressions.

Eric Desrochers (slashd)
tags: removed: sts sts-sponsor-slashd-done
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.