I tried to replicate this by installing the cups snap as per Call for testing: OpenPrinting's CUPS Snap but there doesn’t seem to be a /var/snap/cups/common/run/cups.sock
:
amurray@sec-hirsute-amd64:~$ sudo systemctl stop cups-browsed
amurray@sec-hirsute-amd64:~$ sudo systemctl disable cups-browsed
amurray@sec-hirsute-amd64:~$ sudo systemctl stop cups
amurray@sec-hirsute-amd64:~$ sudo systemctl disable cups
amurray@sec-hirsute-amd64:~$ sudo snap install --edge cups
amurray@sec-hirsute-amd64:~$ snap info cups
name: cups
summary: The CUPS Snap - The Printing Stack for Linux
publisher: OpenPrinting✓
store-url: https://snapcraft.io/cups
contact: webmaster@openprinting.org
license: unset
description: |
The official Snap of CUPS, the standard printing environment for Linux
operating systems
commands:
- cups.accept
- cups.cancel
- cups.cupsaccept
- cups.cupsctl
- cups.cupsdisable
- cups.cupsenable
- cups.cupsfilter
- cups.cupsreject
- cups.cupstestppd
- cups.driverless
- cups.gs
- cups.ippeveprinter
- cups.ippfind
- cups.ipptool
- cups.lp
- cups.lpadmin
- cups.lpc
- cups.lpinfo
- cups.lpoptions
- cups.lpq
- cups.lpr
- cups.lprm
- cups.lpstat
- cups.reject
services:
cups.cups-browsed: simple, enabled, active
cups.cupsd: simple, enabled, active
snap-id: m1eQacDdXCthEwWQrESei3Zao3d5gfJF
tracking: latest/edge
refresh-date: today at 10:20 ACDT
channels:
latest/stable: –
latest/candidate: –
latest/beta: –
latest/edge: 0.1.0 2021-03-22 (258) 60MB -
installed: 0.1.0 (258) 60MB -
amurray@sec-hirsute-amd64:~$ snap connections cups
Interface Plug Slot Notes
avahi-control cups:avahi-control :avahi-control -
cups cups-admin-test:cups cups:cups manual
cups-control cups-admin-test:cups-control cups:cups-control manual
cups-control cups:cups-internal cups:cups-control -
home cups:home :home -
network cups:network :network -
network-bind cups:network-bind :network-bind -
network-manager-observe cups:network-manager-observe :network-manager-observe -
raw-usb cups:raw-usb :raw-usb -
system-files cups:etc-cups :system-files -
amurray@sec-hirsute-amd64:~$ ls /var/snap/cups/common/run/cups.sock
ls: cannot access '/var/snap/cups/common/run/cups.sock': No such file or directory
So then it is not surprising that the cups-admin-test
snap cannot access it - is there something else I need to do for the cups snap to create this socket?