Active mod cURL



Hello Community,
I can’t install mod cURL, I use de command sudo apt-get install sudo apt-get install php5-curl but show this

Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: php5-curl 0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded. Need to get 27.3 kB of archives. After this operation, 142 kB of additional disk space will be used. Err trusty-updates/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.14 404 Not Found [IP: 80] Err trusty-security/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.14 404 Not Found [IP: 80] E: Failed to fetch 404 Not Found [IP: 80]

Now I create the file .ini with ‘active’ cURL module


But in my code show this error

Fatal error: Call to undefined function curl_init() in /home/ubuntu/workspace/app/… on line 101

Someone know solution ??



Did you run sudo apt-get update first (before sudo apt-get install ...) to download the list of latest packages and their versions?


@abailiss Worked; cheers :wink: