I can't install php5-mcrypt on ubuntu 14.04. I'm doing this:

$ sudo apt-get install php5-mcrypt

And getting this:

Reading package lists... Done    
Building dependency tree       
Reading state information... Done   
E: Unable to locate package php5-mcrypt

php5-mcrypt is located in the universe repository.

Open Dash, go to Software and Updates and be sure to check the universe repository (Free and opensource software maintained by community).


Run the below command on terminal to enable universe repository,

sudo add-apt-repository universe


sudo apt-get update
sudo apt-get install php5-mcrypt

Should work.


add-apt-repository on Ubuntu 12.10 apparently comes from this one: $ apt-get install software-properties-common After that, and another apt-get update I could find php5-mcrypt

  • 1
    Ubuntu 12.10 is way end-of-life. This isn't 12.10 specific, but please know that you should upgrade and post answers based on current Ubuntu versions.
    – gertvdijk
    Sep 26 '14 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.