我想在 debian ( kali linux ) 上安装 php8 并使用它很多年。有一个问题:当我运行以下命令时,我找不到 php8 just 7.4
命令
sudo add-apt-repository ppa:ondrej/php # Press enter when prompted.
sudo apt-get update
sudo apt install apt-transport-https lsb-release ca-certificates wget -y
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
sudo apt install php8.0-common php8.0-cli -y
得到这个输出
E: Unable to locate package php8.0-common
E: Couldn't find any package by glob 'php8.0-common'
E: Unable to locate package php8.0-cli
E: Couldn't find any package by glob 'php8.0-cli'
答案1
我找到了一个解决方案(将发行版从软件和更新更改为buster),因为它是kali滚动并且没有找到