-2

Everytime when I try to install php using this command, it shows me "E: Package 'php5-mcrypt' has no installation candidate".

Here is the command below what I used for installing php-

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

1 Answer 1

0

I'm going to guess that you are using an old version of Ubuntu that is no longer supported or you are following a tutorial that is outdated. Php and by extension php-mcrypt are now at version 7.

sudo apt-get install ... php7.0-mcrypt   
1
  • I have just tried your command and now it is showing me "E: Unable to correct problems, you have held broken package ." . What does that mean? Mar 11, 2017 at 13:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .