2016-09-10 7 views
0

Я обновил мой Nginx от 1.6.2 до 1.10.1 по addding эти строки в мои sources.list:обновления Nginx в 1.10.1 модуль кэша

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

Но я хочу, чтобы установить nginx-full и nginx-extras для модуля кэша.

Так что я печатаю apt-get install nginx-full в терминале.

Но я получил эту ошибку:

[email protected]:~# 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) 

Что я могу сделать?

+0

Не могли бы вы уточнить, какой модуль 'cache' вы имеете в виду? – VBart

ответ

0

Нет nginx-full пакет в репозитории nginx.org. Если вы хотите установить его из репозитория Debian, сначала необходимо удалить пакет nginx.

+0

Итак, как я могу установить модуль кеша? модуль кеша fastcgi – aTastyCoookie

+0

'nginx: [emerg] неизвестная директива« fastcgi_cache_purge »в/etc/nginx/sites-enabled /' Я получил эту ошибку – aTastyCoookie

+0

@aTastyCoookie Согласно [документации] (http://nginx.org/ ru/docs/http/ngx_http_fastcgi_module.html # fastcgi_cache_purge) эта директива доступна только в коммерческой версии nginx. – VBart