Author Topic: Cannot update cups  (Read 118 times)

Lars

  • Hero Member
  • *****
  • Posts: 1431
  • Karma: +72/-0
    • View Profile
Cannot update cups
« 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) ?


« Last Edit: May 22, 2025, 07:43:47 am by Lars »

Lars

  • Hero Member
  • *****
  • Posts: 1431
  • Karma: +72/-0
    • View Profile
Re: Cannot update cups
« Reply #1 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 ...