Debian 8 上的 Nginx-extras 安装

Debian 8 上的 Nginx-extras 安装

我在 Debian 8 服务器 8.11 上安装 nginx-extras 时遇到问题。'apt-get install nginx-extras' 返回:

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:
 nginx-extras : Depends: nginx-common (= 1.6.2-5+deb8u6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

安装的nginx版本是:1.15.12 在apt sources.list下面:

deb http://ftp.nl.debian.org/debian/ jessie main
deb-src http://ftp.nl.debian.org/debian/ jessie main
deb http://ftp.nl.debian.org/debian/ jessie-updates main
deb-src http://ftp.nl.debian.org/debian/ jessie-updates main
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
deb http://nginx.org/packages/mainline/debian/ jessie nginx
deb-src http://nginx.org/packages/mainline/debian/ jessie nginx

知道如何解决这个问题吗?

答案1

您选择使用的官方 nginx apt 存储库中没有此类软件包nginx-extras。该名称只是 Debian 名称,指的是 Debian 自定义构建的 nginx,其中包含各种第三方模块。

官方 nginx repo 仅包含nginx,其中包含大多数 nginx 模块,以及一些单独的模块包、 、 、 和nginx-module-geoipnginx-module-image-filternginx-module-njs根本nginx-module-perl不包含第三方模块。nginx-module-xsltnginx-nr-agent

如何“解决”问题取决于您需要运行哪个版本的 nginx 以及需要使用哪些特定模块。

相关内容