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
```
image: atlassian/default-image:2
options:
max-time: 30
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
caches:
- composer
name: cms
deployment: production
script:
- apt-get update
- apt-get install -y software-properties-common python-software-properties
- add-apt-repository -y ppa:ondrej/php
- apt-get update
- apt-get install -y php7.2 php7.2-cli php7.2-common php7.2-mbstring
- apt-get install -y php7.2-curl php7.2-xml
...
...
```
Now I keep getting the following error (that has not happened before):
```
+ apt-get install -y php7.2 php7.2-cli php7.2-common php7.2-mbstring
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.2
E: Couldn't find any package by regex 'php7.2'
E: Unable to locate package php7.2-cli
E: Couldn't find any package by regex 'php7.2-cli'
E: Unable to locate package php7.2-common
E: Couldn't find any package by regex 'php7.2-common'
E: Unable to locate package php7.2-mbstring
E: Couldn't find any package by regex 'php7.2-mbstring'
```
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?
Hey all,
Just adding to this issue.
Since today, I'm starting to have root CA certs that are not trusted by default by Ubuntu 16.04. At that point, instead of installing new certs I just went ahead and took your Dockerfile for atlassian/default-image:2 and tweaked it a bit to fit Ubuntu 20.04.
That being said, having a real image maintained by Atlassian would be very nice.
Hi @Deniss Surnin,
The image atlassian/default-image:2 uses Ubuntu 16.04. I found out that this version has reached its end of standard support, which is the reason why php packages from https://launchpad.net/~ondrej/+archive/ubuntu/php are no longer available.
I'm afraid that we don't have an ETA on whether this image will be upgraded with a newer version of Ubuntu or if a new image will be set up.
Our recommendation would be to either use a different Docker image with a newer version of Ubuntu or set up your own Docker image.
If you use a Docker image that has php pre-installed, or create a Docker image with all the dependencies you need, you could also save running costs by not having to install the dependencies every time this step runs.
If you have any questions, please feel free to let me know.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.