#1126417 coreutils-from-uutils: mv and cp do not support -Z

#1126417#5
Date:
2026-01-25 16:20:39 UTC
From:
To:
Dear Maintainer,

updating my unstable (arm64) system appears to have pulled in coreutils-from-uutils
and the Rust coreutils package:
-------------------------------------------------------------------------------
$ dpkg -l | grep coreutils
ii  coreutils               9.7-999+0.0.0 all   coreutils meta package
ii  coreutils-from-uutils   0.0.0         all   coreutils from the uutils project
ii  rust-coreutils          0.0.30-4      arm64 Universal coreutils utils, written in Rust
-------------------------------------------------------------------------------

Great! But other packages are not aware of this yet and along the way other
packages wanted to install their updates as well, triggering the re-generation of the
kernel's initrd, and broke with:
------------------------------------------------------------------------------- update-initramfs: Generating /boot/initrd.img-6.18.3+deb14-arm64 error: unexpected argument '-Z' found tip: to pass '-Z' as a value, use '-- -Z' Usage: cp [OPTION]... [-T] SOURCE DEST cp [OPTION]... SOURCE... DIRECTORY cp [OPTION]... -t DIRECTORY SOURCE... For more information, try '--help'. E: /usr/share/initramfs-tools/hooks/kmod failed with return 1. ------------------------------------------------------------------------------- Or the "apparmor" package:
------------------------------------------------------------------------------- Installing new version of config file /etc/init.d/apparmor ... error: unexpected argument '-Z' found tip: to pass '-Z' as a value, use '-- -Z' Usage: mv [OPTION]... [-T] SOURCE DEST mv [OPTION]... SOURCE... DIRECTORY mv [OPTION]... -t DIRECTORY SOURCE... For more information, try '--help'. dpkg: error processing package apparmor (--configure): old apparmor package postinst maintainer script subprocess failed with exit status 1 ------------------------------------------------------------------------------- The quick fix was to remove the "-Z" option from the install scripts, e.g.
------------------------------------------------------------------------------- $ diff -u /var/lib/dpkg/info/apparmor.postinst{.bak,} --- /var/lib/dpkg/info/apparmor.postinst.bak 2026-01-13 14:07:38.000000000 +0000 +++ /var/lib/dpkg/info/apparmor.postinst 2026-01-25 15:15:02.413000917 +0000 @@ -69,7 +69,7 @@ EOM fi mkdir -p /etc/apparmor.d/tunables/home.d 2>/dev/null || true - mv -Z -f "$tmp" /etc/apparmor.d/tunables/home.d/ubuntu + mv -f "$tmp" /etc/apparmor.d/tunables/home.d/ubuntu chmod 644 /etc/apparmor.d/tunables/home.d/ubuntu if [ ! -e /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local ]; then @@ -99,7 +99,7 @@ EOM mkdir -p /etc/apparmor.d/tunables/xdg-user-dirs.d 2>/dev/null || true - mv -Z -n "$tmp" /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local + mv -n "$tmp" /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local chmod 644 /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local fi ------------------------------------------------------------------------------- ...and similarly in /usr/share/initramfs-tools/hooks/kmod for the "kmod" package. Upstream should have -Z implemented already: See also: Please support the SELinux options in Rust Coreutils. Thank you, Christian.
#1126417#10
Date:
2026-02-27 08:24:12 UTC
From:
To:
The newer version now in the archive fixed this for me.