Report this

What is the reason for this report?

Installing cURL on Ubuntu 12.04

Posted on January 14, 2014

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?



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!

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.

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.