I have a Ubuntu22 version running on an arm architecture (Mac M2) and need to install an earlier version of the gcc compiler (Version 8).
I am sorry if this sounds stupid but I have so far only found cross-compiler gcc8 packages which (I assume) are meant to run on intel and compile for arm. Is there a way to install gcc8 for arm specifically?
I know the packages are no longer in any ubuntu22 repository but can be found for ubuntu20. But I seem to be to stupid to transfer this answer to my arm architecture.