Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install php7.0-fpm via ppa:ondrej/php

Tags:

php

ubuntu

I have been installing php7.0-fpm via ppa:ondrej/php on Ubuntu using the following commands without issue over the last few months whilst preparing my new server;

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0-fpm

Today, I tried to install again using the same commands as above, and now I get a failure with the final command as follows;

root@10:/etc/apt/sources.list.d# apt-get install php7.0-fpm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.0-fpm
E: Couldn't find any package by regex 'php7.0-fpm'

Any clues as to why this install command set has suddenly stopped working?!

The same error is recorded when trying to install php7.0-mysql, which again was working fine until recently.

Many thanks in advance,
Dave

like image 752
Dave Rix Avatar asked Nov 09 '22 19:11

Dave Rix


1 Answers

I have found a resolution for this as shown below.

The Ubuntu version I was using was 15.04, which is now out of support.
After upgrading my install to Ubuntu 15.10 the installation of php7.0-fpm and php7.0-mysql work as expected.

It appears that the php7.0-* packages have been removed from the Ubuntu 15.04 version of the ppa:ondrej/php repo, but are available in the 15.10 version.

Currently upgrading all my servers based on this change.

Dave

like image 60
Dave Rix Avatar answered Nov 11 '22 08:11

Dave Rix