cups icon indicating copy to clipboard operation
cups copied to clipboard

CUPS update on Linux Mint 28/11 "Dependency" Error

Open David-DeZ opened this issue 1 year ago • 15 comments

As reported on Linux Mint Forums, CUPS does not work with latest update . []https://forums.linuxmint.com/viewtopic.php?p=2712546#p2712546

David-DeZ avatar Nov 28 '25 11:11 David-DeZ

Test results -

dezwirek@dezwirek-HP-290-G4-Microtower-PC:~$ journalctl -xeu cups.service ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ Automatic restarting of the unit cups.service has been scheduled, as the res> ░░ the configured Restart= setting for the unit. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: Stopped cups.servi> ░░ Subject: A stop job for unit cups.service has finished ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A stop job for unit cups.service has finished. ░░ ░░ The job identifier is 2570 and the job result is done. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: Dependency failed > ░░ Subject: A start job for unit cups.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit cups.service has finished with a failure. ░░ ░░ The job identifier is 2570 and the job result is dependency. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: cups.service: Job > lines 217-239/239 (END) ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ Automatic restarting of the unit cups.service has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: Stopped cups.service - CUPS Scheduler. ░░ Subject: A stop job for unit cups.service has finished ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A stop job for unit cups.service has finished. ░░ ░░ The job identifier is 2570 and the job result is done. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: Dependency failed for cups.service - CUPS Scheduler. ░░ Subject: A start job for unit cups.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit cups.service has finished with a failure. ░░ ░░ The job identifier is 2570 and the job result is dependency. Nov 28 12:06:37 dezwirek-HP-290-G4-Microtower-PC systemd[1]: cups.service: Job cups.service/start failed with result 'dependency'.

dezwirek@dezwirek-HP-290-G4-Microtower-PC:~$ systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION > ● cups.path loaded failed failed CUPS Scheduler > ● casper-md5check.service loaded failed failed casper-md5check Verify Live ISO > ● cups.socket loaded failed failed CUPS Scheduler

Legend: LOAD → Reflects whether the unit definition was properly loaded. ACTIVE → The high-level unit activation state, i.e. generalization of S> SUB → The low-level unit activation state, values depend on unit typ>

3 loaded units listed. lines 1-10/10 (END)...skipping... UNIT LOAD ACTIVE SUB DESCRIPTION
● cups.path loaded failed failed CUPS Scheduler
● casper-md5check.service loaded failed failed casper-md5check Verify Live ISO checksums ● cups.socket loaded failed failed CUPS Scheduler

Legend: LOAD → Reflects whether the unit definition was properly loaded. ACTIVE → The high-level unit activation state, i.e. generalization of SUB. SUB → The low-level unit activation state, values depend on unit type.

3 loaded units listed.

David-DeZ avatar Nov 28 '25 12:11 David-DeZ

This looks like a botched partial update to me, and something that the Mint folks will need to fix. I’ll keep this bug open in case this is a regression from the recent security bug fixes, but we’ll need to see more info (logs, crash reports, etc) to help further from our end.

michaelrsweet avatar Nov 28 '25 13:11 michaelrsweet

This looks like a botched partial update to me, and something that the Mint folks will need to fix. I’ll keep this bug open in case this is a regression from the recent security bug fixes, but we’ll need to see more info (logs, crash reports, etc) to help further from our end.

It happened on Pop!_OS 22.04 as well, so I don't think it's Mint that botched it. I suspect it's the Ubuntu upstream.

phrogpilot73 avatar Nov 28 '25 14:11 phrogpilot73

A bug has been opened at Ubuntu https://bugs.launchpad.net/ubuntu/+source/cups/+bug/2133207

David-DeZ avatar Nov 28 '25 14:11 David-DeZ

I don't see this in Fedora 43 when I make the update - it really looks Ubuntu specific.

zdohnal avatar Dec 01 '25 13:12 zdohnal

Hi, I've just been hit by this problem on 2 different machines running Linux Mint and after a bit of searching I have a couple of things to share. As per the forum linked at the start the problem seems to be in parsing /etc/cupsd.conf, in particular the following lines seem to be common to Linux Mint setups and are causing the issue. JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default

An easy test is sudo cupsd -t to check the syntax of /etc/cupsd.conf.

The cure for me was the following commands, basically backing up and resetting the conf file to default so might not be great for everyone.

sudo mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf-orig

sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf

sudo systemctl start cups

Goldthing avatar Dec 01 '25 14:12 Goldthing

Hi , Thanks @Goldthing for explanation.... that did lead me to similar resolution. Disgarding the *.default file, I just removed the 4 last lines causing the issue in the *.conf one. And eventually it worked for me (Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy). Waiting now for some official Mint/Ubuntu update.

octocat000 avatar Dec 01 '25 22:12 octocat000

Same here with Linux Mint 21.3 Cinnamon. Thank you @Goldthing , the cure worked for me :)

MaiaDereva avatar Dec 01 '25 22:12 MaiaDereva

Closing since it is platform issue which is tracked and being fixed in specific distro. Thank you for the report!

zdohnal avatar Dec 02 '25 12:12 zdohnal

Also happens on archlinux. @zdohnal Doesn't look ubuntu specific for me.

I was caused by the KeepAliveTimeout setting in the config E [02/Dec/2025:16:19:03 +0100] Unknown directive KeepAliveTimeout on line 11 of /etc/cups/cupsd.conf.

anghenfil avatar Dec 02 '25 15:12 anghenfil

@anghenfil KeepAliveTimeout is not a directive present in CUPS upstream code - it looks to me there is downstream patch in ArchLinux, but incorrectly implemented - the directive is not in cupsd_vars array.

@michaelrsweet in the end we have "changed the strictness" of cupsd - by fixing a bug to ensure reading of configuration works as it always should :D :

  3526     else if (!parse_variable(ConfigurationFile, linenum, line, value,
  3527                              sizeof(cupsd_vars) / sizeof(cupsd_vars[0]), cupsd_vars) &&
  3528              (FatalErrors & CUPSD_FATAL_CONFIG))
  3529       return (0);

This change - checking the return value of parse_variable() plus checking if FatalErrors are set to configuration errors, and returning 0 if they are both true - causes this - but that's how it should always work, so IMO it is correct behavior.

zdohnal avatar Dec 02 '25 18:12 zdohnal

@Goldthing & @octocat000 Thank you both. This hit me on my Mint XFCE laptop yesterday and had me baffled. Then I update my main PC today when I get home and same thing, also running MINT XFCE, both on the latest version.

Following what you both outlined I just commented out the last 4 lines in /etc/cups/cupsd.conf in case it didn't solve the issue, this is the 4 lines mentioned by you both.

So the end of my file now reads -

## JobPrivateAccess default
## JobPrivateValues default
## SubscriptionPrivateAccess default
## SubscriptionPrivateValues default

Then a quick -

sudo systemctl start cups

and my printers are now showing up again.

I leave this here to add to the hope that others with the issue can follow this temporary solution.

DaveTheBuskerUK avatar Dec 02 '25 20:12 DaveTheBuskerUK

Goldthing, thanks so much for your detailed explanation and instructions. It even worked for a layperson like me.

sobyrne030-del avatar Dec 03 '25 08:12 sobyrne030-del

@DaveTheBuskerUK ... Thanks for feedback, that let me precise : I didn't really delete the 4 lines... just like you, thinking of future evolutions, I just commented them.

octocat000 avatar Dec 04 '25 09:12 octocat000

Am happy to report that CUPS was updated in the early AM of Dec. 5 in my Linux Mint 22.2 Cinnamon to 2.4.7-1.2ubuntu7.9 and printing now works.

THANK YOU to all involved -for problem definition, debugging, helpful suggestions on workaround and the ultimate solution. This includes here and in the Linux Mint and Ubuntu threads referenced above, contributors and lurkers alike! As a community we are strong!

I have one HP 2800 printer connected via WiFi to my Router to which my computer is wired. The [email protected] applet shows 3 printers as does the print dialog: DeskJet_2800 HP-DeskJet_2800_series_2214B8 [email protected] However the last one does not print. Not a problem - just an observation. Comments would be welcome.

BESTEST David

David-DeZ avatar Dec 05 '25 09:12 David-DeZ