I faced with the same error, but I had a different problem.
In my case, the issue was that while the MAAS Jammy cloud image was configured correctly, the package repository's source didn't have the corresponding Jammy packages. It might be helpful to check the logs in the
/var/log/maas
folder for any clues about what went wrong.