在 Ubuntu 桌面 20.04 上使用 PHP 7.4
安装 php-pam
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 out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-pam : Depends: phpapi-20180731 but it is not installable
E: Unable to correct problems, you have held broken packages.`
apt-cache policy php-pam
php-pam:
Installed: (none)
Candidate: 1.0.3-1+deb10u1
Version table:
1.0.3-1+deb10u1 500
500 http://packages.openmediavault.org/public usul/main amd64 Packages
我发现了一个建议如何修复现在过时的 PHP5仅有的。
有什么提示可以修复 PHP7 中的这个错误吗?
答案1
根据OpenMediaVault 文档 → 在 Debian 上安装您可以在 Debian 上安装 OpenMediavault,但不能在 Ubuntu 上安装。
我甚至尝试在基于 Debian Buster (10) 的 Ubuntu 18.04 LTS 上安装它,但也不起作用。
phpapi-20180731
另请注意来自 Debian Buster 的虚拟包,它不存在于任何 Ubuntu 版本中。该php-pam
软件包取决于它并且源自 OpenMediaVault 存储库。
因此,您必须遵循上述指南使用原始的 Debian 10 netinstall。