The officially official Devuan Forum!

You are not logged in.

#1 2026-11-30 23:14:35

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

There was a large package upgrade thuis morning, CUPS packages among them.
As I was doing some clean up under the [Manage Job] page, attempting anything related to that (which need to connect to [localhost:631]) crashes the server.

It can be restarted via the etrminal with [service cups restart] and it seems that once restarted I can print, but any job management will crash the server again.

$ uname -a
Linux devuan 6.1.0-57-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.192-3 (2026-11-26) x86_64 GNU/Linux
$ 

Here is what [dmesg] prints out:

[ 2751.531262] cupsd[16317]: segfault at 0 ip 000055a2aa74376d sp 00007ffc4e7f1870 error 4 in cupsd[55a2aa73e000+4c000] likely on CPU 2 (core 2, socket 0)
[ 2751.531305] Code: 28 e8 37 b1 ff ff 49 89 c4 48 85 c0 0f 84 f3 00 00 00 48 8d 35 03 72 04 00 4c 89 e7 e8 2c ab ff ff 85 c0 75 1d 45 84 ed 74 18 <49> 8b 3f 48 8d b4 24 20 01 00 00 e8 bb c1 ff ff 85 c0 0f 84 36 fb

[segfault] and [CPU 2 (core 2, socket 0)]? Seems serious.

Q:
What would be the best/most reliable way to roll back to the previous version of CUPS?
It was working perfectly well and would happily keep it in my daedalus install.

Thanks in advance.

Best,

A.

Offline

#2 Yesterday 10:43:44

fsmithred
Administrator
Registered: 2016-11-25
Posts: 3,030  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

In daedalus:
If you have the deb12u9 packages in /var/cache/apt/archives you can switch to that directory and run

dpkg --force-downgrade -i cups*2.4.2-3+deb12u9*.deb libcups2_2.4.2-3+deb12u9*.deb
service restart cups

If you don't have the packages in cache, you can get them here: https://ftp.debian.org/debian/pool/main/c/cups/

Offline

#3 Yesterday 12:02:03

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

Thank you for the fast reply.
Much appreciated.

In daedalus:
If you have the deb12u9 packages in /var/cache/apt/archives you can switch to that directory and run ...
If you don't have the packages in cache, you can get them here: https://ftp.debian.org/debian/pool/main/c/cups/

It seems that a crash can be caused by bad queue data, a stuck job or corrupted cache, which is where the jobs data is stored.
That data can be found in [/var/spool/cups/] and [/var/cache/cups/].

Makes sense: the crash happened when I attempted to delete an old job.

So I stopped the CUPS server and deleted all the files in [/var/spool/cups/] and all [*.cache] files from [/var/cache/cups/].
This cleaned up all printing history and finished, pending or stopped jobs.

Unfortunately, this did not fix the problem.
While I can print, I cannot do any job management because the server will crash when I try to reprint a job and it tries to access the server.

Now, [dmesg] prints out almost the same data:

[ 8696.447637] cupsd[26488]: segfault at 0 ip 000055913629876d sp 00007ffd39670be0 error 4 in cupsd[559136293000+4c000] likely on CPU 0 (core 0, socket 0)
[ 8696.447683] Code: 28 e8 37 b1 ff ff 49 89 c4 48 85 c0 0f 84 f3 00 00 00 48 8d 35 03 72 04 00 4c 89 e7 e8 2c ab ff ff 85 c0 75 1d 45 84 ed 74 18 <49> 8b 3f 48 8d b4 24 20 01 00 00 e8 bb c1 ff ff 85 c0 0f 84 36 fb

ie:

segfault at 0 ip 000055913629876d + error 4 in cupsd[55a2aa73e000+4c000]
segfault at 0 ip 000055a2aa74376d + error 4 in cupsd[55a2aa73e000+4c000]

Could this be something related to whatever mucking around CUPS is doing with the IPP files?
No idea, the previous version did not have this problem.
Till this upgrade came around, CUPS was working perfectly well from when I installed it eight years ago.

Checking on the CUPS configuration shows no problems but issues a warning:

# cupsd -t
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.

@fsmithred
I will follow your instructions and roll back to the previous CUPS version.

Q:
I don't have the packages in [/var/cache/apt/archives].
Download them and copy to that directory?

I will also pin it, no need for all this hassle so early in the morning.
Or to stop being able to use my printer because of this new OpenPrinting feature.
A real fuck-up if you ask me.

I'll post the result, hopefully there is not something else at work here.

Best,

A.

Last edited by Altoid (Yesterday 12:08:46)

Offline

#4 Yesterday 17:33:26

RedGreen925
Member
Registered: 2024-12-07
Posts: 323  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Q:
I don't have the packages in [/var/cache/apt/archives].
Download them and copy to that directory?
I will also pin it

If you want to run the command in that directory then yes put them there. If not you can simply put them in any directory you want and run the command from there. The apt-mark hold cups will also work to prevent it being updated until fixed version is available.

Offline

#5 Yesterday 20:44:10

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

RedGreen wrote:

If you want to run the command in that directory then yes put them there.

Well ...
Something went awfully wrong, maybe did noy copiy all the files?
No idea.

Thing is, after much mucking about, I managed to get [cups] working again but the problem remains because I am still at [2.4.2-3+deb12u10].

So I downloaded the [cups_2.4.2-3+deb12u9_amd64.deb] package from the link at the Devuan Package Information page and tried to install it with [dpkg]:

# sudo dpkg -i --force-downgrade cups_2.4.2-3+deb12u9_amd64.deb
dpkg: warning: downgrading cups from 2.4.2-3+deb12u10 to 2.4.2-3+deb12u9
(Reading database ... 155092 files and directories currently installed.)
Preparing to unpack cups_2.4.2-3+deb12u9_amd64.deb ...
Unpacking cups (2.4.2-3+deb12u9) over (2.4.2-3+deb12u10) ...
dpkg: dependency problems prevent configuration of cups:
 cups depends on libcups2 (= 2.4.2-3+deb12u9); however:      |  #####
  Version of libcups2:amd64 on system is 2.4.2-3+deb12u10.   |  #####

dpkg: error processing package cups (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
cups
# 

If this is a downgrading operation, why can't cups (2.4.2-3+deb12u9) be unpacked over (2.4.2-3+deb12u10)?

Any ideas?

Best,

A.

Offline

#6 Yesterday 20:59:54

fsmithred
Administrator
Registered: 2016-11-25
Posts: 3,030  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Maybe something is missing (in addition to libcups2). Here's what I have:

cups_2.4.2-3+deb12u9_amd64.deb         cups-core-drivers_2.4.2-3+deb12u9_amd64.deb  cups-server-common_2.4.2-3+deb12u9_all.deb
cups-bsd_2.4.2-3+deb12u9_amd64.deb     cups-daemon_2.4.2-3+deb12u9_amd64.deb        libcups2_2.4.2-3+deb12u9_amd64.deb
cups-client_2.4.2-3+deb12u9_amd64.deb  cups-ipp-utils_2.4.2-3+deb12u9_amd64.deb     libcups2-dev_2.4.2-3+deb12u9_amd64.deb
cups-common_2.4.2-3+deb12u9_all.deb    cups-ppdc_2.4.2-3+deb12u9_amd64.deb

Offline

#7 Today 02:42:03

RedGreen925
Member
Registered: 2024-12-07
Posts: 323  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

So I downloaded the [cups_2.4.2-3+deb12u9_amd64.deb] package from the link at the Devuan Package Information page and tried to install it with [dpkg]:

# sudo dpkg -i --force-downgrade cups_2.4.2-3+deb12u9_amd64.deb
dpkg: warning: downgrading cups from 2.4.2-3+deb12u10 to 2.4.2-3+deb12u9
(Reading database ... 155092 files and directories currently installed.)
Preparing to unpack cups_2.4.2-3+deb12u9_amd64.deb ...
Unpacking cups (2.4.2-3+deb12u9) over (2.4.2-3+deb12u10) ...
dpkg: dependency problems prevent configuration of cups:
cups depends on libcups2 (= 2.4.2-3+deb12u9); however:      |  #####
  Version of libcups2:amd64 on system is 2.4.2-3+deb12u10.   |  #####

Any ideas?

Yes the new version of the libcups2:amd64 is installed and it needs the old, it tells you this right there in the output. what you need to do is download all the packages fsmithred shows you the use one big long command line to install them at the same time.

Offline

#8 Today 12:00:42

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

I downloaded all the files again from https://ftp.debian.org/debian/pool/main/c/cups/.
For completenes sake, here are the packages copied to [var/cache/apt/archives]:

$ ls -1 /var/cache/apt/archives
cups-bsd_2.4.2-3+deb12u9_amd64.deb
cups-client_2.4.2-3+deb12u9_amd64.deb
cups-client_2.4.2-3+deb12u9_i386.deb
cups-core-drivers_2.4.2-3+deb12u9_amd64.deb
cups-core-drivers_2.4.2-3+deb12u9_i386.deb
cups-daemon_2.4.2-3+deb12u9_amd64.deb
cups-daemon_2.4.2-3+deb12u9_i386.deb
cups-ipp-utils_2.4.2-3+deb12u9_amd64.deb
cups-ipp-utils_2.4.2-3+deb12u9_i386.deb
cups-ppdc_2.4.2-3+deb12u9_amd64.deb
cups-ppdc_2.4.2-3+deb12u9_i386.deb
cups_2.4.2-3+deb12u9_amd64.deb
cups_2.4.2-3+deb12u9_i386.deb
libcups2-dev_2.4.2-3+deb12u9_amd64.deb
libcups2-dev_2.4.2-3+deb12u9_i386.deb
libcups2_2.4.2-3+deb12u9_amd64.deb
libcups2_2.4.2-3+deb12u9_i386.deb
libcupsimage2-dev_2.4.2-3+deb12u9_amd64.deb
libcupsimage2-dev_2.4.2-3+deb12u9_i386.deb
libcupsimage2_2.4.2-3+deb12u9_amd64.deb
libcupsimage2_2.4.2-3+deb12u9_i386.deb
lock
partial

---
Note:
The reason I downloaded all the relevant [cups:i386] packages is that I recall observing the [cups] upgrade progress in the terminal output and saw [i386]. That was probably I created this nice clusterfuck®.
---

Just in cse, I checked the contents of [/var/cache/apt/archives/partial] and [/var/cache/apt/archives/lock]:

# ls /var/cache/apt/archives/partial
#
# cat /var/cache/apt/archives/lock
#
$

They are empty.

I have checked the contents of [/var/log/apt/history.log.1.gz] to see what packages were upgraded to [cups 2.4.2-3+deb12u10]

$ zcat /var/log/apt/history.log.1.gz
--- snip ---
Start-Date: 2026-11-30  03:01:49
Commandline: apt upgrade
Requested-By: groucho (1000)
Upgrade: <- reformatted for clarity

libcups2:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
libcups2:i386 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)         ##### the only upgraded [cups:i386] package.
cups-common:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-client:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-ppdc:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-daemon:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)

not relevant      wireless-regdb:amd64 (2026.05.30-1~deb12u1, 2026.09.03-1~deb12u1)
not relevant      zlib1g-dev:amd64 (1:1.2.13.dfsg-1, 1:1.2.13.dfsg-1+deb12u1)

cups-ipp-utils:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
libcupsimage2:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-core-drivers:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)

not relevant      zlib1g:amd64 (1:1.2.13.dfsg-1, 1:1.2.13.dfsg-1+deb12u1)
not relevant      zlib1g:i386 (1:1.2.13.dfsg-1, 1:1.2.13.dfsg-1+deb12u1)

cups-server-common:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)

not relevant      libde265-0:amd64 (1.0.11-1+deb12u3, 1.0.11-1+deb12u4)
not relevant      libde265-0:i386 (1.0.11-1+deb12u3, 1.0.11-1+deb12u4)
End-Date: 2026-11-30  03:01:59
$

That makes 11 [cups] packages upgraded from [2.4.2-3+deb12u9] to [2.4.2-3+deb12u10] in my system, counting the 'extra' [cups:i386] package which [fsmithred] does no have in his, which means I should have 12 [cups] packages instead of 11.

Which packages are missing from my system?

.
fsmithred -> 11 files                                altoid -> upgraded
cups_2.4.2-3+deb12u9_amd64.deb                       cups:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-core-drivers_2.4.2-3+deb12u9_amd64.deb          cups-core-drivers:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-server-common_2.4.2-3+deb12u9_all.deb           cups-server-common:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)

cups-bsd_2.4.2-3+deb12u9_amd64.deb                   #### apt reports [2.4.2-3+deb12u10] manually installed                       

cups-daemon_2.4.2-3+deb12u9_amd64.deb                cups-daemon:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
libcups2_2.4.2-3+deb12u9_amd64.deb                   libcups2:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-client_2.4.2-3+deb12u9_amd64.deb                cups-client:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-ipp-utils_2.4.2-3+deb12u9_amd64.deb             cups-ipp-utils:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)

libcups2-dev_2.4.2-3+deb12u9_amd64.deb               #### apt reports not installed  

cups-common_2.4.2-3+deb12u9_all.deb                  cups-common:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
cups-ppdc_2.4.2-3+deb12u9_amd64.deb                  cups-ppdc:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
Installed it to print some formats                   libcupsimage2:amd64 (2.4.2-3+deb12u9, 2.4.2-3+deb12u10)
.

The problem at this point:

Even though the upgrade only targeted one [cups:i386] package, I have no idea if there were others already installed in my system.
If they were not, at some point I installed them and my guess (?) is that they should be purged one by one.   
But I don't know if they were already there.

I want to fix this in the Linux manner, not purging [cups] and reinstalling the previous version.
But I am not too sure about how to proceed.

Any ideas?

Best,

A.

Last edited by Altoid (Today 12:17:20)

Offline

#9 Today 14:07:51

fsmithred
Administrator
Registered: 2016-11-25
Posts: 3,030  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Why does the list show that you have both deb12u9 and deb12u10 installed? I didn't think that was possible. If they are really installed, get rid of the deb12u10 packages.

To find i386 packages that are installed:

dpkg -l | grep i386

If you're not doing multiarch, you can remove them. (N.B. I have one i386 package installed because Brother only provides 32-bit printer drivers. Don't remove anything you need.)

I don't think you need libcups2-dev. It seems to be gone from my system and I'm not sure how or when it went. If you want to use a shorter command to install the older ones, put all the 12u9 packages in one directory with nothing else and run dpkg --force-downgrade -i *.deb

Offline

#10 Today 14:55:47

Mercury
Member
Registered: 2024-11-14
Posts: 94  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

@Altoid

I don't understand what you're asking. You upgraded a number of packages from 2.4.2-3+deb12u9 to 2.4.2-3+deb12u10. You have the exact list from apt history.log. So, just undo that operation by installing the previous version.

Why exactly are you thinking something needs to be purged?

Offline

#11 Today 15:04:28

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

ello:

fsmithred wrote:

Why does the list show that you have both deb12u9 and deb12u10 ...

I suppose you are referring to the list from the [/var/log/apt/history.log.1.gz] file which upgraded 'normally' from [2.4.2-3+deb12u9] to [2.4.2-3+deb12u10].

I don't have any [cups] [2.4.2-3+deb12u9] packages now, they are all [2.4.2-3+deb12u10].
It seems that I managed to roll things back to the previous 'normal'.
Now all I have to do is roll back to [2.4.2-3+deb12u9].

$ apt list | grep installed | grep 2.4.2-3+deb12u9
$ 
fsmithred wrote:

... find i386 packages ...

$ dpkg -l | grep cups | grep i386
ii  cups:i386                       2.4.2-3+deb12u10  PPD/driver support, web interface
ii  cups-client:i386                2.4.2-3+deb12u10  client programs (SysV)
ii  cups-core-drivers:i386          2.4.2-3+deb12u10  driverless printing
ii  cups-daemon:i386                2.4.2-3+deb12u10  daemon
ii  cups-filters:i386               1.28.17-3+deb12u2 Main Package
ii  cups-filters-core-drivers:i386  1.28.17-3+deb12u2 Driverless printing
ii  cups-ipp-utils:i386             2.4.2-3+deb12u10  IPP developer/admin utilities
ii  cups-ppdc:i386                  2.4.2-3+deb12u10  PPD manipulation utilities
ii  libcups2:i386                   2.4.2-3+deb12u10  Core library
ii  libcupsfilters1:i386            1.28.17-3+deb12u2 Shared library
$ 
fsmithred wrote:

If you're not doing multiarch ...

Yes, I have [multiarch-support] and [binutils-multiarch] installed.

fsmithred wrote:

... command to install the older ones ...
... all the 12u9 packages in one directory with nothing else and run dpkg --force-downgrade -i *.deb

Right.
I will try that and report back later today.
Thank you very much for your input.

Best,

A.

Last edited by Altoid (Today 15:28:42)

Offline

#12 Today 15:12:11

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

Meercury wrote:

... upgraded a number of packages from 2.4.2-3+deb12u9...

That came from a regular [apt-update]+[apt upgrade].
The result was the source of my original post which (need to confirm that) is a known [cups] bug.

I tried rolling back but screwed it up but after much wrangling things seem to be back to the last 'normal'.
ie: [2.4.2-3+deb12u10], albeit with issues related to job management.
See my OP and the [dmesg] printout.

I now have to try to roll back.

Thanks for your input.

Best,

A.

Last edited by Altoid (Today 15:14:11)

Offline

#13 Today 15:45:21

Altoid
Member
Registered: 2017-05-07
Posts: 2,155  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

I wrote:

... try that and report back later today.

Before I continue, here is the list of all the files I think I need to install:

~$ ls -1 /home/groucho/Downloads/cups
cups-bsd_2.4.2-3+deb12u9_amd64.deb
cups-client_2.4.2-3+deb12u9_amd64.deb
cups-client_2.4.2-3+deb12u9_i386.deb
cups-core-drivers_2.4.2-3+deb12u9_amd64.deb
cups-core-drivers_2.4.2-3+deb12u9_i386.deb
cups-daemon_2.4.2-3+deb12u9_amd64.deb
cups-daemon_2.4.2-3+deb12u9_i386.deb
cups-ipp-utils_2.4.2-3+deb12u9_amd64.deb
cups-ipp-utils_2.4.2-3+deb12u9_i386.deb
cups-ppdc_2.4.2-3+deb12u9_amd64.deb
cups-ppdc_2.4.2-3+deb12u9_i386.deb
cups_2.4.2-3+deb12u9_amd64.deb
cups_2.4.2-3+deb12u9_i386.deb
libcups2-dev_2.4.2-3+deb12u9_amd64.deb
libcups2-dev_2.4.2-3+deb12u9_i386.deb
libcups2_2.4.2-3+deb12u9_amd64.deb
libcups2_2.4.2-3+deb12u9_i386.deb
libcupsimage2-dev_2.4.2-3+deb12u9_amd64.deb
libcupsimage2-dev_2.4.2-3+deb12u9_i386.deb
libcupsimage2_2.4.2-3+deb12u9_amd64.deb
libcupsimage2_2.4.2-3+deb12u9_i386.deb
$ 

Any observations before I continue?

Best,

A.

Offline

Board footer