A
A
Acvoloe2016-01-08 14:24:06
linux
Acvoloe, 2016-01-08 14:24:06

Is there an error during the NGINX upgrade process?

Now it costs nginx/1.6.2, Debian 8
Writes when updating.

~# 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)

Added links to packages off the nginx site to the resource list.
deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx

Thanks in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-01-08
@rostel

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question