sudo apt-get install php-redis 停止工作

sudo apt-get install php-redis stopped to work

在我们的 CircleCI 构建中,我们已经安装了几个月的 PHP redis,但它今天停止工作了。 return 消息如下。

请问,您知道如何解决吗?我有点困惑该怎么办。感谢您的帮助。

sudo apt-get install php-redis 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-redis: Depends: php-igbinary but it is not going to be installed Dep

ends: phpapi-20160303 but it is not installable or phpapi-20151012 but it is not installable or phpapi-20131226 but it is not installable E: Unable to correct problems, you have held broken packages.

sudo apt-get install php-redis returned exit code 100

Action failed: sudo apt-get install php-redis

我们在 CircleCi 中的流程是这样的:

已解决: 使用 sudo apt-get -f install php-redis

听起来好像还有其他依赖项没有被主包安装。当我通过 dpkg 安装时,这通常发生在我身上(通常是下载的 Chrome deb 包)。

当你运行

sudo apt-get upgrade

它通常会告诉您安装失败并建议您 运行

sudo apt-get -f install

这些通常会解决依赖关系并安装所需的任何额外包。