Report this

What is the reason for this report?

cURL issue in LAMP - Failed to fetch

Posted on February 12, 2015

On a LAMP server, trying to install an app, but in the app installation process I’m struggling with a cUrl not working:

What I see from the terminal is this (I have)

root@emailtest:~#** sudo apt-get install php5-curl**

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following packages were automatically installed and are no longer required:

  linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic

  linux-image-3.13.0-36-generic linux-image-extra-3.13.0-36-generic

Use 'apt-get autoremove' to remove them.

The following NEW packages will be installed:

  php5-curl

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 27.2 kB of archives.

After this operation, 142 kB of additional disk space will be used.

Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.4

  404  Not Found [IP: 95.85.0.50 80]

Err http://security.ubuntu.com/ubuntu/ trusty-security/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.4

  404  Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.5.9+dfsg-1ubuntu4.4_amd64.deb  404  Not Found [IP: 91.189.91.23 80]



E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

root@emailtest:~# 

Any idea on how to proceed? I tried also with the same command and --fix-missing.



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.

This question was answered by @javiersanzlozano:

Ok, solved. I was running on:

PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) Server version: Apache/2.4.7 (Ubuntu)

This is what I did to solve it:

sudo apt-get update
sudo apt-get install php5-curl
sudo service apache2 restart 

Then it seemed that it was not restarting properly - or I was not sure - so I rebooted manually the server from the DigitalOcean Dashboard.

View the original comment

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.