我有一个比特桶管道设置,它已经完美地工作了一年,但几天前就停止了
这是我的比特桶配置的开始
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的回购似乎仍然包含这些包。可能是什么问题?
atlassian/default-image:2基于ubuntu16.04(xenial(,但其使用寿命为2021年4月。
从ppa:ondrej/php主页我们可以看到下一个:
不要要求终止生命的PHP版本或Ubuntu版本,它们不会提供。
这意味着所有者已经删除了对ubuntu16.04的支持,这就是为什么你不能在ubuntu116.04上安装php7.2。
对你来说,去PPA找到另一个php7.2 PPA,例如PPA:jason.grammnos.agility/php,然后下一个可以解决你的问题:
$ add-apt-repository -y ppa:jason.grammenos.agility/php
$ apt-get update
$ apt-cache policy php7.2
php7.2:
Installed: (none)
Candidate: 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
Version table:
7.2.15-1+ubuntu16.04.1+deb.sury.org+1 500
500 http://ppa.launchpad.net/jason.grammenos.agility/php/ubuntu xenial/main amd64 Packages
$ apt-get install -y php7.2