【问题标题】:nginx updating to 1.10.1 cache modulenginx 更新到 1.10.1 缓存模块
【发布时间】:2016-09-10 17:44:36
【问题描述】:

我将我的 nginx 从 1.6.2 更新到 1.10.1,将此行添加到我的 sources.list:

deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx`

但我想为缓存模块安装nginx-fullnginx-extras

所以我在终端输入apt-get install nginx-full

但我得到了这个错误:

root@kwb:~# apt-get install nginx-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libluajit-5.1-2 libluajit-5.1-common libperl5.20
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
nginx-common
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx-common nginx-full
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/517 kB of archives.
After this operation, 1,309 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 47948 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.6.2-5+deb8u2_all.deb ...
Unpacking nginx-common (1.6.2-5+deb8u2) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-common_1.6.2-5+deb8                      u2_all.deb (--unpack):
trying to overwrite '/usr/share/nginx/html/index.html', which is also in package nginx 1.10.1-1~jessie
Preparing to unpack .../nginx-full_1.6.2-5+deb8u2+b1_amd64.deb ...
Unpacking nginx-full (1.6.2-5+deb8u2+b1) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-full_1.6.2-5+deb8u2                      +b1_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/nginx', which is also in package nginx 1.10.1-1~                      jessie
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1.6.2-5+deb8u2_all.deb
/var/cache/apt/archives/nginx-full_1.6.2-5+deb8u2+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我能做什么?

【问题讨论】:

  • 您能澄清一下cache 模块是什么意思吗?

标签: nginx debian vps


【解决方案1】:

nginx.org 仓库中没有nginx-full 包。如果你想从 Debian 仓库安装它,你应该先删除 nginx 包。

【讨论】:

  • 那么我该如何安装缓存模块呢? fastcgi 缓存模块
  • nginx: [emerg] unknown directive "fastcgi_cache_purge" in /etc/nginx/sites-enabled/ 我收到了这个错误
  • @aTastyCoookie 根据the documentation,此指令仅在 nginx 的商业版本中可用。
猜你喜欢
  • 1970-01-01
  • 2012-11-05
  • 1970-01-01
  • 2013-04-23
  • 1970-01-01
  • 1970-01-01
  • 2020-04-09
  • 1970-01-01
  • 2012-12-10
相关资源
最近更新 更多