Sorry! this printing service doesn't seem to be available

Asked by Eddy

I'm using Ubuntu 22.04 and started having a problem with my printer today.
In settings all i get is Sorry! this printing service doesn't appear to be available. I have reinstalled CUPS also restarted CUPS but apparently the cups dependencies failed.

systemd[1]: Dependency failed for CUPS Scheduler.
░░ Subject: A start job for unit cups.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support

systemd[1]: cups.service: Job cups.service/start failed with result 'dependency'

I have no idea what to do now please help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Annika Lundberg
Solved:
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

Try using the snap cups.
https://snapcraft.io/cups
sudo snap install cups

Revision history for this message
Eddy (waring2805) said :
#2

Thanks for the response

Apparently I already have snap cups installed!

Revision history for this message
Eddy (waring2805) said (last edit ):
#3

Tried to refresh CUPS and this is what I get

:mine@:~$ sudo systemctl restart cups.service
[sudo] password for mine:
Job for cups.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status cups.service" and "journalctl -xeu cups.service" for details.
mine@:~$ ^C
mine@:~$ sudo systemctl status cups.service
○ cups.service - CUPS Scheduler
     Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
     Active: inactive (dead) (Result: protocol) since Thu 2024-06-27 10:15:50 BST; 1min 30s ago
TriggeredBy: × cups.path
             × cups.socket
       Docs: man:cupsd(8)
    Process: 31440 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
   Main PID: 31440 (code=killed, signal=TERM)
        CPU: 9ms

Jun 27 10:15:50 MisilesLoading systemd[1]: cups.service: Scheduled restart job, restart counter is at 35.
Jun 27 10:15:50 MisilesLoading systemd[1]: Stopped CUPS Scheduler.
Jun 27 10:15:50 MisilesLoading systemd[1]: Dependency failed for CUPS Scheduler.
Jun 27 10:15:50 MisilesLoading systemd[1]: cups.service: Job cups.service/start failed with result 'dependen>
lines 1-14/14 (END)

Jun 27 10:15:50 MisilesLoading systemd[1]: cups.service: Scheduled restart job, restart counter is at 35.
Jun 27 10:15:50 MisilesLoading systemd[1]: Stopped CUPS Scheduler.
Jun 27 10:15:50 MisilesLoading systemd[1]: Dependency failed for CUPS Scheduler.
Jun 27 10:15:50 MisilesLoading systemd[1]: cups.service: Job cups.service/start failed with result 'dependen>
lines 1-14/14 (END)

Revision history for this message
Bernard Stafford (bernard010) said :
#4

Terminal:
sudo cups --status

Revision history for this message
Annika Lundberg (savannah-annika) said :
#5

I have the same problem. I'm using Ubuntu Studio 22.04 and have used an Epson Stylus Photo 2100 printer for many years. I have the printer connected with a USB cable, not a server. It appears a bug was in a recent update, within the last week, that made the printer unavailable. When I click on printers I get the message "Print service not available - Bad file descriptor".
There appears to be a problem with CUPS and I have removed and re-installed CUPS multiple times with no luck. This is what I get in the terminal when trying to start CUPS:

○ cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: protocol) since Tue 2024-06-25 15:44:17 EDT; 21s ago
TriggeredBy: × cups.path
× cups.socket
Docs: man:cupsd(8)
Process: 5966 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
Main PID: 5966 (code=killed, signal=TERM)
CPU: 14ms
Jun 25 15:44:17 XXXXXX[1]: cups.service: Scheduled restart job, restart counter is a>
Jun 25 15:44:17 XXXXXX[1]: Stopped CUPS Scheduler.
Jun 25 15:44:17 XXXXXX[1]: Dependency failed for CUPS Scheduler.
Jun 25 15:44:17 XXXXXX[1]: cups.service: Job cups.service/start failed with result '>
lines 1-14/14 (END)

I wish somebody could help with this issue since I have tried everything I can think of and spent many hours on it.

Revision history for this message
Eddy (waring2805) said :
#6

Sorry Bernard Stafford didn't get this until just now

The sudo cups --status didn't do anything

mine@MisilesLoading:~$ sudo cups status
[sudo] password for mine:
sudo: cups: command not found
mine@MisilesLoading:~$ sudo cups --status
sudo: cups: command not found

Revision history for this message
Eddy (waring2805) said :
#7

It appears to be something to do with

"Dependency failed for CUPS Scheduler."

Revision history for this message
Eddy (waring2805) said (last edit ):
#8

After running sudo cupsd -t in the terminal

Duplicate listen address "/run/cups/cups.sock" ignored.
Unknown directive JobPrivateAccess on line 125 of /etc/cups/cupsd.conf.
Unknown directive JobPrivateValues on line 126 of /etc/cups/cupsd.conf.
Unknown directive SubscriptionPrivateAccess on line 127 of /etc/cups/cupsd.conf.
Unknown directive SubscriptionPrivateValues on line 128 of /etc/cups/cupsd.conf.
Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
"/etc/cups/cups-files.conf" is OK.
"/etc/cups/cupsd.conf" is OK.

Not sure what is happening from line 125 to line 128?

Revision history for this message
Eddy (waring2805) said :
#9

These are the lines of code 125-128 in cupsd.conf file

125 JobPrivateAccess default
126 JobPrivateValues default
127 SubscriptionPrivateAccess default
128 SubscriptionPrivateValues default

Also the code line 6 and 7 are a duplicate

5 ErrorPolicy retry-job
6 Listen /run/cups/cups.sock
7 Listen /run/cups/cups.sock
8 Browsing No

Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#10

Terminal:
I did mess up.
sudo systemctl status cups
which you tried.
sudo apt update && sudo apt upgrade

sudo systemctl restart cups.service

Cups could just need restarted.
https://hatchjs.com/failed-to-start-cups-scheduler-ubuntu/

Revision history for this message
Bernard Stafford (bernard010) said :
#11

At the very last resort remove and reinstall cups.
Terminal:
sudo apt-get purge cups && sudo apt-get autoremove
sudo apt-get update && sudo apt-get install cups

Revision history for this message
Best Annika Lundberg (savannah-annika) said :
#12

Problem was solved today 28 June with an automatic update that fixed the bad CUPS files. I suggest running software updates on your system and reboot.

Revision history for this message
Eddy (waring2805) said :
#13

Thanks Annika Lundberg, that solved my question.

Revision history for this message
Eddy (waring2805) said :
#14

Thank you Bernard Stafford and Annika Lundberg for you help it was very much appreciated