Unable to install php5-mcrypt on Ubuntu 14.04

15,618

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.

Share:
15,618

Related videos on Youtube

user3740266
Author by

user3740266

Updated on September 18, 2022

Comments

  • user3740266
    user3740266 over 1 year

    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
    Eliah Kagan almost 10 years
    And if this is an Ubuntu Server system (or otherwise) with no GUI, How do I enable the “Universe” repository from the command line? should help.
  • user3740266
    user3740266 almost 10 years
    It worked (I mean the original post), thank you very much!