Did a test on my Orange Pi 5 test system. Installed HACS 1.30 in first place and was able to update to 1.32.1 from HA web interface without issues. HACS was loading fine after HA service restart.
To be sure on file system permission, you can try following:
chown -R homeassistant:homeassistant /mnt/dietpi_userdata/homeassistant
systemctl restart home-assistant.service