PPA: 'ppa: ondrej / php5-5.6' FORBIDDEN 403

I have php 5.6 and apache2 installed on a production server.

I get an error for my project on my production server: Call to undefined function curl_init()

I need to install php-curl for my project. I ran sudo apt-get install php5-curl:

....
WARNING: The following packages cannot be authenticated!
php5-mysql php5-common php5-curl
....

Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mysql amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403  Forbidden
Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-common amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403  Forbidden
Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-curl amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403  Forbidden
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-mysql_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb  403  Forbidden

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-common_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb  403  Forbidden

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-curl_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb  403  Forbidden

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

running apt-get updatedisplays the same for this ppa:

Err http://ppa.launchpad.net trusty/main amd64 Packages
403  Forbidden
Err http://ppa.launchpad.net trusty/main i386 Packages
403  Forbidden
Err http://ppa.launchpad.net trusty/main amd64 Packages
403  Forbidden
Err http://ppa.launchpad.net trusty/main i386 Packages
403  Forbidden

What is the solution to install php-curl? One idea is to change ppa, but I cannot find another one for php 5.6.

I searched the Internet for about 3 days and found many similar problems, but I could not fix my problem. I tried everything I found

The launch sudo apt-get install php5.6-curlis successful, but I still get an error for my project on my production server:Call to undefined function curl_init()

+4
source share
1 answer

ppa-purge ppa:ondrej/php5-5.6 deleted the old ppa.

sudo apt-add-repository --remove ppa:ondrej/php5-5.6

+1

Source: https://habr.com/ru/post/1688724/


All Articles