From 1dfe6a0e1839dbae42c047a8a9a044da03f5dfb3 Mon Sep 17 00:00:00 2001 From: gdaffa Date: Fri, 27 Feb 2026 16:00:28 +0700 Subject: [PATCH] Update the Installation Instructions for Debian (#1838) * docs(download): Remove `apt-transport-https` from Debian installation * docs(download): Update Debian source list to `deb822` format --- .../linux-debian-cli-community.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/download-instructions/linux-debian-cli-community.php b/include/download-instructions/linux-debian-cli-community.php index cc1595689..fb19c4005 100644 --- a/include/download-instructions/linux-debian-cli-community.php +++ b/include/download-instructions/linux-debian-cli-community.php @@ -4,10 +4,16 @@ On the command line, run the following commands:

 # 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.