Skip to content
Advertisement

Docker image: Unable to locate package php7.2

I have had a bitbucket pipeline setup which had been working flawlessly for a year yet it stopped working few days ago

Here is the beginning of my bitbucket config

JavaScript

Now I keep getting the following error (that has not happened before):

JavaScript

I could not find any changes on the docker image end and ondrej’s repo seems to still contain the packages. What could be the problem?

Advertisement

Answer

atlassian/default-image:2 is based on ubuntu16.04(xenial), but its end of life is Apr 2021.

From ppa:ondrej/php home page we could see next:

Don’t ask for end-of-life PHP versions or Ubuntu release, they won’t be provided.

This means the owner have removed the support for ubuntu16.04, this is why you can’t install php7.2 on ubuntu16.04.

For you, go to PPA to find another php7.2 ppa, e.g. ppa:jason.grammenos.agility/php, then next could resolve your problem:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement