尝试从源代码安装nginx-full时出错

时间:2018-08-16 14:11:04

标签: nginx

我正在尝试通过从源代码进行编译来安装nginx-full版本1.14.0。 出现一些未安装软件包的错误。

例如:未安装软件包libnginx-mod-http-auth-pam。

sudo dpkg --install nginx-full_1.14.0-0+xenial1_amd64.deb                                                                                                                                             !828
Selecting previously unselected package nginx-full.
(Reading database ... 44213 files and directories currently installed.)
Preparing to unpack nginx-full_1.14.0-0+xenial1_amd64.deb ...
Unpacking nginx-full (1.14.0-0+xenial1) ...
dpkg: dependency problems prevent configuration of nginx-full:
 nginx-full depends on libnginx-mod-http-auth-pam (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-auth-pam is not installed.
 nginx-full depends on libnginx-mod-http-dav-ext (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-dav-ext is not installed.
 nginx-full depends on libnginx-mod-http-echo (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-echo is not installed.
 nginx-full depends on libnginx-mod-http-geoip (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-geoip is not installed.
 nginx-full depends on libnginx-mod-http-image-filter (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-image-filter is not installed.
 nginx-full depends on libnginx-mod-http-subs-filter (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-subs-filter is not installed.
 nginx-full depends on libnginx-mod-http-upstream-fair (= 1.14.0-0+xenial1); however:
  Package libnginx-mod-http-upstream-fair is not installed.
 nginx
dpkg: error processing package nginx-full (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 nginx-full

但是当我尝试安装这些软件包时,它再次显示错误

sudo apt-get install libnginx-mod-http-auth-pam                                                                                                                                                       !829
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libnginx-mod-http-auth-pam : Depends: nginx-common (= 1.15.0-0+xenial0) but 1.14.0-0+xenial1 is to be installed
 nginx-full : Depends: libnginx-mod-http-auth-pam (= 1.14.0-0+xenial1) but 1.15.0-0+xenial0 is to be installed
              Depends: libnginx-mod-http-dav-ext (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-echo (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-geoip (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-image-filter (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-subs-filter (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-upstream-fair (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-http-xslt-filter (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-mail (= 1.14.0-0+xenial1) but it is not going to be installed
              Depends: libnginx-mod-stream (= 1.14.0-0+xenial1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

有什么办法解决这个问题吗?

0 个答案:

没有答案