I am also on m4 mac and every ubuntu image I try to run (Noble, Noble + Rosetta, Jammy) all have corrupted ca-certificates and dpkg so I am unable to do much.
Setting up ca-certificates (20240203) ...
Updating certificates in /etc/ssl/certs...
Segmentation fault (core dumped)
dpkg: error processing package ca-certificates (--configure):
installed ca-certificates package post-installation script subprocess returned error exit status 139
I see exactly the same error for ca-certificates