@george I got this error when trying to run the script you gave through docker:
Created symlink /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service -> /usr/lib/systemd/system/wpa_supplicant.service.
Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant.service -> /usr/lib/systemd/system/wpa_supplicant.service.
Setting up python3-oauthlib (3.2.2-1) ...
Setting up gcc-13 (13.2.0-24) ...
Setting up cpp (4:13.2.0-7) ...
Setting up python3-lazr.restfulclient (0.14.6-1) ...
Setting up g++-13-aarch64-linux-gnu (13.2.0-24) ...
Setting up gcc-aarch64-linux-gnu (4:13.2.0-7) ...
Setting up g++-13 (13.2.0-24) ...
Setting up gcc (4:13.2.0-7) ...
Setting up python3-software-properties (0.99.30-4) ...
Setting up g++-aarch64-linux-gnu (4:13.2.0-7) ...
Setting up g++ (4:13.2.0-7) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.10) ...
Processing triggers for fontconfig (2.15.0-1.1) ...
Processing triggers for initramfs-tools (0.142) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.38-8) ...
Processing triggers for dbus (1.14.10-4+b1) ...
Processing triggers for debianutils (5.17) ...
Processing triggers for sgml-base (1.31) ...
Setting up polkitd (124-2) ...
Creating group 'polkitd' with GID 992.
Creating user 'polkitd' (User for polkitd) with UID 992 and GID 992.
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of reload.
Warning: Fake start-stop-daemon called, doing nothing
Warning: Fake start-stop-daemon called, doing nothing
Setting up network-manager (1.46.0-2) ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service.
Created symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service -> /usr/lib/systemd/system/NetworkManager-wait-onl
ine.service.
Created symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service.
Setting up packagekit (1.2.8-2+b2) ...
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of force-reload.
Failed to open connection to "system" message bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket -> /usr/lib/systemd/user/pk-debconf-helper.socket.
Setting up network-manager-openvpn (1.11.0-1) ...
Setting up software-properties-common (0.99.30-4) ...
Processing triggers for resolvconf (1.92) ...
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
Processing triggers for dbus (1.14.10-4+b1) ...
[ o.k. ] Installing the desktop packages for [ Armbian ]
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libnautilus-extension1a
[ error ] ERROR in function create_rootfs_cache [ functions/cli/cli-entrypoint.sh:109 -> functions/main/build-tasks.sh:285 -> functions/main/build-tasks.sh:208 -> functions/main/rootfs-image.sh:66 -> functions/rootfs/create-cache.sh:223 -> functions/logging/traps.sh:0 ]
[ error ] Installation of Armbian desktop packages for legacy coolpi-cm5-notebook sid 3dsupport gnome no failed
[ o.k. ] Process terminated
[ error ] unmount_on_exit() called! [ functions/cli/cli-entrypoint.sh:109 -> functions/main/build-tasks.sh:285 -> functions/main/build-tasks.sh:208 -> functions/main/rootfs-image.sh:66 -> functions/rootfs/create-cache.sh:223 -> functions/logging/traps.sh:1 -> functions/main/rootfs-image.sh:0 ]
[ o.k. ] Unmounting [ /root/armbian/.tmp/rootfs-e32e8fa2-02c7-4e9a-bb21-74f4cd2f9f22/ ]
[ error ] ERROR in function unmount_on_exit [ functions/cli/cli-entrypoint.sh:109 -> functions/main/build-tasks.sh:285 -> functions/main/build-tasks.sh:208 -> functions/main/rootfs-image.sh:66 -> functions/rootfs/create-cache.sh:223 -> functions/logging/traps.sh:1 -> functions/main/rootfs-image.sh:27 -> functions/logging/traps.sh:0 ]
[ error ] debootstrap-ng was interrupted
[ o.k. ] Process terminated
It seems rootfs cache or something is broken.