Bug 1193216 - YaST fails to setup printer (lpadmin: Unable to copy PPD file - Read-only file system)
Summary: YaST fails to setup printer (lpadmin: Unable to copy PPD file - Read-only fil...
Status: RESOLVED DUPLICATE of bug 1195288
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Printing (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-30 08:42 UTC by Wolfgang Rosenauer
Modified: 2022-01-31 07:58 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log (539.10 KB, application/gzip)
2021-11-30 08:42 UTC, Wolfgang Rosenauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Rosenauer 2021-11-30 08:42:18 UTC
Created attachment 854168 [details]
y2log

I reinstalled Tumbleweed (due to computer change) recently and try to add my HP USB printer.

YaST2 fails to set it up with an error message
lpadmin: Unable to copy PPD file - Read-only file system

y2log is attached.

(I also tried hp-setup which fails differently, will open another bug.)
Comment 1 Johannes Meixner 2022-01-21 12:19:20 UTC
I cannot reproduce it with a Tumbleweed 20220120
default system with Gnome desktop.

Details:

I installed from scratch openSUSE Tumbleweed 20220120
its default system with Gnome desktop on a 20GiB disk
on a KVM/QEMU virtual machine on my homeoffice laptop
and connected my private HP LaserJet CP1525N printer
(which is a PostScript+PLC5e USB printer)
to my homeoffice laptop and that as USB Host Device to
the KVM/QEMU virtual machine so in that VM I have:

# lsusb
Bus 002 Device 003: ID 03f0:022a HP, Inc Laserjet CP1525nw

# lpinfo -v | grep 1525
direct hp:/usb/HP_LaserJet_CP1525N?serial=00CNCF239404
direct usb://HP/LaserJet%20CP1525N?serial=00CNCF239404

The Gnome desktop magic detected the printer
and automatically set up a queue for it:
HP-LaserJet-CP1525N: usb://HP/LaserJet%20CP1525N?serial=00CNCF239404
Printing works via this HP-LaserJet-CP1525N queue
( echo Hello | lp -d HP-LaserJet-CP1525N ).

As root I launched "yast2 printer".
I noticed that no printer driver packages are installed
cf. https://en.opensuse.org/YaST_Printer#Driver
so I set up a generic PostScript printer queue for it:
ps: usb://HP/LaserJet%20CP1525N?serial=00CNCF239404
Printing works via this ps queue
(printed the YaST test page).

Then I did run "hp-setup" from within "yast2 printer".
It requested that the hplip package needs to be installed.
I installed it from within "yast2 printer".
Then "hp-setup" started up.
It detected the printer and set up a queue for it:
HP_LaserJet_CP1525N: hp:/usb/HP_LaserJet_CP1525N?serial=00CNCF239404
Printing works via this HP_LaserJet_CP1525N queue
(printed the hp-setup test page).

Not any error or warning was shown to me.
All "just worked" for me as described above.

I did not change systemd services or the installed packages
(except the above described installation of HPLIP).
All is the Tumbleweed 20220120 "out of the box" defaults.
E.g. firewalld.service is running and AppArmor is installed.
Comment 2 Johannes Meixner 2022-01-21 12:38:31 UTC
See WORKSFORME in
https://bugzilla.suse.com/page.cgi?id=status_resolution_matrix.html
Comment 3 Johannes Meixner 2022-01-31 07:58:12 UTC
Now also bug #1195288 and bug #1195289
report that "Read-only file system" issue.

It worked for me with Tumbleweed 20220120
because there I have
------------------------------------------------------------
# rpm -q --changelog cups
* Mon Jun 07 2021 jsmeix@suse.de
- Provide /usr/share/cups/ppdc/ in the "cups" main package
...

# rpm -q --changelog cups-filters
* Fri Oct 15 2021 Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400).
  Added patch(es):
  * harden_cups-browsed.service.patch
...
------------------------------------------------------------
cf.
https://build.opensuse.org/package/view_file/Printing/cups/cups.changes?expand=1
------------------------------------------------------------
Fri Oct 15 07:31:10 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400).
  Added patch(es):
  * harden_cups.service.patch
------------------------------------------------------------

So CUPS in Tumbleweed 20220120 does not have that
"hardening to systemd" - only cups-filters has it 
but I did not use cups-browsed.

*** This bug has been marked as a duplicate of bug 1195288 ***