@Acvoloe

Как исправить ошибку при обновления NGINX?

Сейчас стоит nginx/1.6.2, Debian 8.

При обновлении пишет:

~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  nginx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/461 kB of archives.
After this operation, 1,023 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 38042 files and directories currently installed.)
Preparing to unpack .../nginx_1.8.0-1~jessie_amd64.deb ...
Unpacking nginx (1.8.0-1~jessie) over (1.6.2-5) ...
dpkg: error processing archive /var/cache/apt/archives/nginx_1.8.0-1~jessie_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/nginx', which is also in package nginx-full 1.6.2-5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nginx_1.8.0-1~jessie_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

В сурс лист добавил ссылки на пакеты офф сайта nginx:

deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx
  • Вопрос задан
  • 1583 просмотра
Пригласить эксперта
Ответы на вопрос 1
cp -ax /etc/nginx /etc/nginx-back
apt-get remove --purge nginx nginx-*
apt-get install nginx=1.8.0-1~jessie
mv /etc/nginx-back /etc/nginx
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы