mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
Remove ppa:ondrej/php from the list of apt repositories (#1104)
* Remove ppa:ondrej/php from the list of apt repositories * Add documentation and fixes * fix documentation Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
@@ -134,5 +134,17 @@ for version in $php_versions; do
|
||||
DocumentInstalledItem "PHP $version ($(php$version --version | head -n 1))"
|
||||
done
|
||||
|
||||
# ubuntu 20.04 libzip-dev is libzip5 based and is not compatible libzip-dev of ppa:ondrej/php
|
||||
# see https://github.com/actions/virtual-environments/issues/1084
|
||||
if isUbuntu20 ; then
|
||||
rm /etc/apt/sources.list.d/ondrej-ubuntu-php-focal.list
|
||||
apt-get update
|
||||
AddBlockquote "To use ppa:ondrej/php APT repository On Ubuntu 20.04 it is necessary to add it to the APT sources"
|
||||
StartCode
|
||||
WriteItem apt-add-repository ppa:ondrej/php -y
|
||||
WriteItem apt-get update
|
||||
EndCode
|
||||
fi
|
||||
|
||||
DocumentInstalledItem "Composer ($(composer --version))"
|
||||
DocumentInstalledItem "PHPUnit ($(phpunit --version))"
|
||||
|
||||
Reference in New Issue
Block a user