Package php5 have no installation candidate (Ubuntu 16.04)
I'm sorry to hear that you're having trouble installing PHP on your Ubuntu 16.04 system.
It looks like the package php5 is no longer available in the repositories for Ubuntu 16.04.
Instead, you can try installing the default version of PHP by running the following command:
How to install PHP in Ubuntu 16.04?
sudo apt-get install phpThis will install the default version of PHP available in the Ubuntu 16.04 repositories, which is PHP 7.0. Verify the installation by running:
php -vIf you need to install a specific version of PHP, you can add the PPA (Personal Package Archive) for the version you want to use. For example, to install PHP 7.3, you can run the following commands:
Fixing the "Package php5 have no installation candidate" error in Ubuntu 16.04
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.3Note: Ubuntu 16.04 has reached its end of life (EOL) and no longer receives security updates. Consider upgrading to a supported Ubuntu release for better security and package availability.