cURL issue in LAMP - Failed to fetch

February 12, 2015 2.1k views

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.

2 comments
  • Did you run apt-get update? What distribution and version are you trying to install it on? Did you modify your sources in any way?

  • 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.

1 Answer

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

Have another answer? Share your knowledge.