UPDATE: did another apt update/upgrade and libexpat1-dev,rpi-eeprom and libexpat1 were upgraded. Tried installing idn2 manually and it worked.
Did sudo bash basic-install.sh and it the installation seems to have worked. Must have been something in one of those packages.