Can you try disabling IPv6 on the system and seeing if that allows it to run normally? Otherwise you can do this:
sudo su -l amp
wget https://cubecoders.com/Downloads/AMP_Latest.zip
mv AMP_Latest.zip ~/.ampdata/instances/AMPCache-23212.zip
ampinstmgr quick
Some of the repositories don’t work because 22.04 is too new and not everything supports it right now. Namely the Adoptium/AdoptOpenJDK repo for Java. You can remove those repositories for now.