lpoptions -d as root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned |
Bug Description
Copied from https:/
Yair Yarom submitted Debian bug 1008053 and observed that running lpoptions as root does not update /etc/cups/lpoptions but /root/.
Running lpoptions as root (e.g. "lpoptions -d HP-OfficeJet") should update /etc/cups/lpoptions to be the defaults for all users. But instead it tries to update /root/.
This has been fixed upstream in cups, in debian sid, and mantic. Proposing to add this change in jammy and older (still supported) series as well.
The fix is a one line change in https:/
Thanks.
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
ubuntu@jammy-vm:~$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
ubuntu@jammy-vm:~$ apt-cache policy cups
cups:
Installed: 2.4.1op1-1ubuntu4.7
Candidate: 2.4.1op1-1ubuntu4.7
Version table:
*** 2.4.1op1-1ubuntu4.7 500
500 http://
500 http://
100 /var/lib/
2.
500 http://
3) What you expected to happen:
root@jammy-vm:~# lpstat -p
printer HP-Officejet-
root@jammy-vm:~#
root@jammy-vm:~# lpoptions -d HP-Officejet-
copies=1 device-
root@jammy-vm:~#
root@jammy-vm:~# cat /etc/cups/lpoptions
Default HP-Officejet-
root@jammy-vm:~#
root@jammy-vm:~# cat /root/.
cat: /etc/cups/
root@jammy-vm:~#
4) What happened instead:
root@jammy-vm:~# lpstat -p
printer HP-Officejet-
root@jammy-vm:~#
root@jammy-vm:~# lpoptions -d HP-Officejet-
copies=1 device-
root@jammy-vm:~#
root@jammy-vm:~# cat /etc/cups/lpoptions
cat: /etc/cups/
root@jammy-vm:~#
root@jammy-vm:~# cat /root/.
Default HP-Officejet-
root@jammy-vm:~#
Upstream fix in debian: /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 1008053
https:/