Failed to update on 1st boot

Installed on a Nanopi Neo, but failed to update on 1st boot. Error msg as below. I have tried changing several SD cards, so it should not be data corruption issue. anyone can help?

Preparing to unpack .../09-linux-image-current-sunxi_21.08.2_armhf.deb ...
/etc/kernel/preinst.d/dietpi-initramfs_cleanup: 23: /etc/kernel/preinst.d/dietpi-initramfs_cleanup: Syntax error: "if" unexpected (expecting "do")
run-parts: /etc/kernel/preinst.d/dietpi-initramfs_cleanup exited with return code 2
dpkg: error processing archive /tmp/apt-dpkg-install-69jb65/09-linux-image-current-sunxi_21.08.2_armhf.deb (--unpack):
 new linux-image-current-sunxi package pre-installation script subprocess returned error exit status 1
Preparing to unpack .../10-linux-u-boot-nanopineo-current_21.08.1_armhf.deb ...
Unpacking linux-u-boot-nanopineo-current (21.08.1) over (21.05.1) ...
Preparing to unpack .../11-openssl_1.1.1d-0+deb10u7_armhf.deb ...
Unpacking openssl (1.1.1d-0+deb10u7) over (1.1.1d-0+deb10u6) ...
Preparing to unpack .../12-psmisc_23.2-1+deb10u1_armhf.deb ...
Unpacking psmisc (23.2-1+deb10u1) over (23.2-1) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-69jb65/09-linux-image-current-sunxi_21.08.2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi, is it you posting as well on GitHub? Pls try to stick to a single platform. https://github.com/MichaIng/DietPi/issues/4868

Nope i don use github. But this should solve the issue.
Thank you so much!

A new image using Debian Bullseye has been uploaded. Would be good if you could try it out.

The new image doesnt seem to be booting….i will switch back to armbian first….

According developer there was an issue on the new image with failing network at first boot. He upload a new image again. Maybe you can check again. It would be helpful to know if it is booting.

finally it is working! Thank you!