我添加了存储库以在 Debian Stretch 上安装 php 7.2。
sudo apt install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt update
Run Code Online (Sandbox Code Playgroud)
但是当我运行 apt update 时 - 我收到一个错误:
E: The repository 'https://packages.sury.org/php stretch Release' does not have a Release file.
Run Code Online (Sandbox Code Playgroud)
据我了解,问题出在我的环境中。
但无法弄清楚是什么问题。
PS:
我的/etc/apt/sources.list:
# deb http://ftp.de.debian.org/debian/ jessie main
# deb http://ftp.de.debian.org/debian/ buster main
deb http://ftp.de.debian.org/debian/ stretch main
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb …Run Code Online (Sandbox Code Playgroud)