Link to home
Start Free TrialLog in
Avatar of sl_ai
sl_ai

asked on

installing php5-mycrypt in ubuntu message unable to locate package

hi all

i am trying to install php5-mycrypt package in ubuntu but it always give me the message unable to locate package.
kindly find the attached screen shots.
i tried
apt-get update
 apt-get install php5-mcrypt

but still same issue

kindly help
sources.list1.png
lsb.png
sources.list2.png
Avatar of Justin Pilditch
Justin Pilditch
Flag of United Kingdom of Great Britain and Northern Ireland image

That tells me that the package you are looking for is not located in the repositories you are connected to.

A quick Google give shows me that you need to add the UNIVERSE repository with
$ sudo add-apt-repository universe

Ref: http://askubuntu.com/questions/483186/unable-to-install-php5-mcrypt-on-ubuntu-14-04
Avatar of sl_ai
sl_ai

ASKER

Dear

i already run the command  sudo add-apt-repository universe
kindly check attachment for output.

still i cannot install php5-mycrypt.
i still have the same issue
add-apt.png
ASKER CERTIFIED SOLUTION
Avatar of Justin Pilditch
Justin Pilditch
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

Try this...it might have installed...

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart
Avatar of sl_ai

ASKER

thank it worked.
it is very painful to be a beginner.
2 weeks trying to solve this problem and it turned out a typo issue :(
thank you
Don't worry - we've all been there. Happy to have been able to relieve your pain!
Have a good weekend, NOT having to worry about this... :)