diff --git a/include/download-instructions/linux-debian-cli-community.php b/include/download-instructions/linux-debian-cli-community.php index cc1595689a..fb19c4005f 100644 --- a/include/download-instructions/linux-debian-cli-community.php +++ b/include/download-instructions/linux-debian-cli-community.php @@ -4,10 +4,16 @@

 # Add the packages.sury.org/php repository.
 sudo apt-get update
-sudo apt-get install -y lsb-release ca-certificates apt-transport-https curl
+sudo apt-get install -y lsb-release ca-certificates curl
 sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
 sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
-sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
+sudo tee /etc/apt/sources.list.d/php.sources <<EOF
+Types: deb
+URIs: https://packages.sury.org/php/
+Suites: $(lsb_release -sc)
+Components: main
+Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
+EOF
 sudo apt-get update
 
 # Install PHP.