Error trying to update to v5.5 after php 8.1 upgrade

I get this error when trying to run the php artisan optimize, im not too knowledgeable in Linux but i am working on learning more. Thanks in advance, any and all help is much appreciated. I am running Ubuntu Server 20.


It may help to run composer install