OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: Lars on May 22, 2025, 07:21:37 am

Title: Cannot update cups
Post by: Lars on May 22, 2025, 07:21:37 am
Looks like I am out of luck when it comes to updating packages.

I tried to update CUPS, the package download succeeds (I can find it under \var\cache\yum) but finally I get this:
Error unpacking rpm package 1:cups-2.2.13-2.oc00.pentium4

When I use the commandline, I get this:

Quote
{1}[d:\] yum install cups-2.2.13-2.oc00.pentium4
Geladene Plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
Einrichten des Installationsprozess
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Paket cups.pentium4 1:2.2.13-1.oc00 markiert, um aktualisiert zu werden
---> Paket cups.pentium4 1:2.2.13-2.oc00 markiert, um an update zu werden
--> Abhängigkeitsauflösung beendet

Abhängigkeiten aufgelöst

================================================================================

 Paket       Arch            Version                   Repository         Größe
================================================================================

Aktualisieren:
 cups        pentium4        1:2.2.13-2.oc00           netlabs-exp        2.0 M

Vorgangsübersicht
================================================================================

Upgrade       1 Package

Gesamtgröße: 2.0 M
Ist dies in Ordnung? [j/N] :j
Lade Pakete herunter:
Running Transaction Check
Führe Verarbeitungstest durch
Verarbeitungstest erfolgreich
Führe Verarbeitung durch
  Aktualisieren: 1:cups-2.2.13-2.oc00.pentium4                              1/2

Error unpacking rpm package 1:cups-2.2.13-2.oc00.pentium4
Warnung: /@unixroot/etc/cups/classes.conf erstellt als /@unixroot/etc/cups/classes.conf.rpmnew
Warnung: /@unixroot/etc/cups/cupsd.conf erstellt als /@unixroot/etc/cups/cupsd.conf.rpmnew
Warnung: /@unixroot/etc/cups/lpoptions erstellt als /@unixroot/etc/cups/lpoptions.rpmnew
Warnung: /@unixroot/etc/cups/printers.conf erstellt als /@unixroot/etc/cups/printers.conf.rpmnew
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /@unixroot/var/run/cups/certs: cpio: unlink
1:cups-2.2.13-1.oc00.pentium4 was supposed to be removed but is not!

Fehlgeschlagen:
  cups.pentium4 1:2.2.13-1.oc00          cups.pentium4 1:2.2.13-2.oc00

Komplett!

So: is there a way for force an RPM installation ?

If all of this is a problem because CUPS is running, how can I stop CUPS (without manipulating config.sys and rebooting) ?


Title: Re: Cannot update cups
Post by: Lars on May 22, 2025, 08:02:11 am
I found the cause:

the system claimed that:

E [21/May/2025:07:44:23 -0100] "/@unixroot/var/run/cups/certs" is not a directory.


That was obviously wrong as this directory does exist and in fact, it is a directory. It turned out that this directory was "contaminated" with the usual Unix EA crap (UID, GID, MODE, etc.). Once I completely removed all EAs from the directory, I was able to properly update CUPS.

Sigh ...
Title: Re: Cannot update cups
Post by: Pete on May 24, 2025, 04:40:10 am
Hi Lars

For future reference you can "kill" cupsd.exe to stop/close cups but you need to repeat the "kill" several (3?) times.

You can restart cups by doubleclicking the CUPS Daemon in the Startup folder.


Regards

Pete
Title: Re: Cannot update cups
Post by: Lars on May 24, 2025, 10:32:19 am
My initial thought was that the running cups daemon process would be the problem.
But that was not the case. It was that stupid EA problem.
But thanks for the hint. Because as you said, I was not able to kill it and I was not aware that I would need to try several times.