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)