When i try to install php5 in Ubuntu 16.04 by using following code:
sudo apt-get install php5 php5-mcrypt
I get following error:
If you just want to install PHP no matter what version it is, try PHP7
sudo apt-get install php7.0 php7.0-mcrypt