小编Aka*_*e14的帖子

安装 PHP 7.4 遇到“未满足的依赖项”,如何解决?

我知道很多主题都有相同的问题,但我已经尝试了所有方法,但没有任何效果对我有用。所以我试图在我的 ubuntu 上安装 php 7.4。我已经完成了我在互联网上找到的以下命令:

apt install ca-certificates apt-transport-https wget gnupg
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ buster main" | tee /etc/apt/sources.list.d/php.list
apt update
apt install php7.4
Run Code Online (Sandbox Code Playgroud)

然后我收到错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved …
Run Code Online (Sandbox Code Playgroud)

installation php-7.4 ubuntu-20.04

5
推荐指数
1
解决办法
3235
查看次数

标签 统计

installation ×1

php-7.4 ×1

ubuntu-20.04 ×1