3

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
Eliah Kagan
  • 117,780
user3740266
  • 33
  • 1
  • 1
  • 3

2 Answers2

4

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).

OR

Run the below command on terminal to enable universe repository,

sudo add-apt-repository universe

Then:

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

Should work.

Avinash Raj
  • 78,556
Cornelius
  • 9,483
  • 4
  • 40
  • 62
-1

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 08:34