Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

atlassian/default-image:2 broken?

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?

1 answer

0 votes

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

105 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you