404 not found error on sudo aptitude install php5-cgi php5-mysql

Posted January 28, 2014 2.7k views
I have created a ubuntu 12.04 droplet and installed lighttpd server on it. movingon and typing sudo aptitude install php5-cgi php5-mysql to install PHP fastcgi is giving me a 404 not found error and package is not downloaded. What should i do to install the whole correctly and install wordpress with w3 total cache

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Try updating the package index:
sudo apt-get update