Reputation: 453
in our CircleCI build, we have a few months this installation of PHP redis but it stopped to work today. The return message is below.
Please, do you know how to fix it? I am a little confused what to do. Thank you for your help.
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
Our flow in CircleCi looks like this:
SOLVED: use sudo apt-get -f install php-redis
Upvotes: 2
Views: 3472
Reputation: 57121
It sounds as though there are other dependencies which are not installed by the main package. This usually happens to me when I install by dpkg
(a downloaded Chrome deb package is the usual one).
When you run
sudo apt-get upgrade
It will usually tell you there has been some installation failure and suggests that you run
sudo apt-get -f install
These will usually resolve the dependencies and install any extra packages required.
Upvotes: 1