我正在尝试安装 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
了,它安装得很好,但仍然有同样的问题。我有点失落。