Question

Installing cURL on Ubuntu 12.04

So I’m trying to add cURL to my droplet, and as other posts here just say to use

sudo apt-get install php5-curl

this gets all 404 errors from the ppa from this command and so it suggests that I try:

apt-get update

This goes fine, and a fair number of updates are retrieved.

Then when running the install again… the droplet goes down (off the net). Surfing to the IP or any subdomains I’ve pointed to it cannot be resolved. From the command line I’m unable to even restart apache cause it cannot find the apache directory. This was seriously not what I wanted.

I simply wanted to update cURL for php5, but I haven’t found any answers on where to get a stable working version of cURL. Any help?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

use this code:

sudo sed -i -e ‘s/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list

sudo apt-get update

PROFIT!!!

Run the following first: <br> <br>sudo apt-get update

Hopefully you did a “snapshot” before your attempt to install curl. If so, I suggest you use it to restore your system and then try the following: <br> <br> apt-get install curl libcurl3 libcurl3-dev php5-curl <br> <br>That worked for me.