我们正在从ubuntu 14升级到ubuntu 16,但是在安装php-redis时遇到了问题。我们正在尝试获取php 5.6的php-redis,但是却安装了php8.0的php-redis。在指定版本时,例如
sudo apt-get install php5.6-redis我们得到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5.6-redis
E: Couldn't find any package by glob 'php5.6-redis'
E: Couldn't find any package by regex 'php5.6-redis'我们研究了https://launchpad.net/~ondrej/+archive/ubuntu/php/,但这似乎只适用于ubuntu 18+
在ubuntu 16上安装php 5.6的php-redis的任何帮助都是非常感谢的
发布于 2021-07-13 20:32:12
如果你不在你的ubuntu上安装Redis本身,那么你需要首先通过以下命令安装它:
sudo apt-get install redis-server启用后:
sudo systemctl enable redis-server.service安装php扩展:
sudo apt-get install php5.6-redis发布于 2021-08-22 14:25:39
如果你安装了Redis,你可以继续:
首先,你需要添加仓库:
sudo apt-add-repository -y ppa:ondrej/php然后更新APT:
sudo apt-get update最后,从apt安装php-redis:
sudo apt-get install php-redishttps://stackoverflow.com/questions/68361820
复制相似问题