After trying "sudo apt install php" i am met with the following error message:

"Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php7.4 : Depends: libapache2-mod-php7.4 but it is not installable or
php7.4-fpm but it is not installable or
php7.4-cgi but it is not installable
Depends: php7.4-common but it is not installable
E: Unable to correct problems, you have held broken packages."

im a beginner so please dont be too harsh on me. Any help is appreciated.