未满足的依赖项:php-memcached:依赖:phpapi-20190902

未满足的依赖项:php-memcached:依赖:phpapi-20190902

我尝试安装 php-memcached (使用 php8.1)但出现以下错误:

# apt install php-memcached
Reading package lists... Done
Building dependency tree... Done
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-memcached : Depends: phpapi-20190902
E: Unable to correct problems, you have held broken packages.

我更新了 apt 并尝试 apt install phpapi-20190902 但这给出了:

Package phpapi-20190902 is a virtual package provided by:
  php7.4-phpdbg 7.4.26-1
  php7.4-fpm 7.4.26-1
  php7.4-cli 7.4.26-1
  php7.4-cgi 7.4.26-1
  libphp7.4-embed 7.4.26-1
  libapache2-mod-php7.4 7.4.26-1
You should explicitly select one to install.

E: Package 'phpapi-20190902' has no installation candidate

当我使用 php 8.1 (debian buster) 时,这是 php7.4 包。我尝试apt install php8.1-fpm安装得很好,但仍然有同样的问题。我有点失落。

答案1

看起来您是php8.1sid存储库安装的。

存储sid库有包php8.1-memcache其被描述为“PHP 的内存缓存扩展模块”

如果这就是您正在寻找的,您应该安装它并看看它是否提供您所期望的。如果这不是您想要的,您应该用更多信息来澄清您的问题。

相关内容