我曾经设置了一条Bitbucket Pipeline,它已经完美地运作了一年,但是几天前它突然停止工作了。
这是我的Bitbucket配置的开头:
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
...
...
现在我一直收到以下错误(之前从未出现过):
+ 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'
我在 Docker 镜像端和 ondrej 的 repo 中均未发现任何更改,可能的问题是什么呢?
atlassian/default-image:2
(应该是Ubuntu 16.04)。我找不到适用于PHP 7.2的Ubuntu镜像。 - Denisphp:7.2-cli
是官方的 Debian 镜像。 - Phil