我正在使用 Ubuntu 22.10,运行命令时出现以下错误sudo apt-get install -y libnginx-mod-http-passenger
:
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: nginx-common (< 1.18.1) but 1.22.0-1ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.
对于如何解决这个问题,有任何的建议吗?
我迄今为止尝试过
我尝试遵循这里并添加另一个 APT 存储库:
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger focal main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update
这会导致类似的错误:以下软件包具有未满足的依赖关系:
libnginx-mod-http-passenger : Depends: passenger (= 1:6.0.15-1~focal1) but 1:6.0.15-1~jammy1 is to be installed
Depends: nginx-common (< 1.18.1) but 1.22.0-1ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
您必须将 Ubuntu 重新安装到 22.04 lts 版本... Nginx 1.18 在 Ubuntu 22.10 中不可用