Fehler bei Installation/Update von Paketen auf dem Server (cpio ownership problem)
Verfasst: 12 Mär 2018, 16:15
Hallo, bei uns kommt es ab und zu mal vor, dass sich ein Paket nicht installieren lässt, mit folgendem Fehler:
Das Problem ist, dass unsere Server-Umgebung im Filesystem keine hohen UIDs unterstützt (max. 2^16, eine Limitierung von LXD-Containern). Der Package-Maintainer hat aber offenbar einen User mit UID 216408 benutzt.
Lösung könnte sein, beim cpio-Aufruf ein "--no-preserve-owner" mitzugeben. Habe dazu auch von einiger Zeit schonmal einen Pull-Request auf Github erstellt: https://github.com/opsi-org/python-opsi/pull/1/files
Nach einem Update von python-opsi (per apt-get) ist das Problem bei mir gerade wieder aufgetreten, deshalb hier nochmal der Hinweis im Forum.
Code: Alles auswählen
root@opsi-server# opsi-product-updater -v
[...]
==>>> Failed to get metadata from package '/var/lib/opsi/repository/dfn_blender_2.79a-1.opsi': Failed to extract archive '/tmp/.opsi.unpack.GRNj4/OPSI/OPSI.cpio.gz': Command '/usr/bin/pigz -cd "/tmp/.opsi.unpack.GRNj4/OPSI/OPSI.cpio.gz" | /bin/cpio --quiet -idumv ' failed with code 2: : Invalid argument
preinst
control
/bin/cpio: postinst: Cannot change ownership to uid 216408, gid 992: Invalid argument
postinst
Lösung könnte sein, beim cpio-Aufruf ein "--no-preserve-owner" mitzugeben. Habe dazu auch von einiger Zeit schonmal einen Pull-Request auf Github erstellt: https://github.com/opsi-org/python-opsi/pull/1/files
Nach einem Update von python-opsi (per apt-get) ist das Problem bei mir gerade wieder aufgetreten, deshalb hier nochmal der Hinweis im Forum.