Icingaweb2 not working on Ubuntu 22 LTS due to PHP error

I found the issue: the repository key was not properly added to gpg. Therefore the new packages were not installed (although apt was showing them). After importing the key correctly icingaweb2 was updated and is now working properly.