Skip to content

Instantly share code, notes, and snippets.

@tlhunter
Created June 19, 2014 03:19
Show Gist options
  • Save tlhunter/31830e88fb27bd3277fd to your computer and use it in GitHub Desktop.
Save tlhunter/31830e88fb27bd3277fd to your computer and use it in GitHub Desktop.
Attempting to upgrade Nginx on Debian
# http://wiki.nginx.org/Install#Official_Debian.2FUbuntu_packages
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
nginx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 477 kB of archives.
After this operation, 1,000 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
nginx
Install these packages without verification [y/N]? y
Get:1 http://nginx.org/packages/debian/ squeeze/nginx nginx amd64 1.6.0-1~squeeze [477 kB]
Fetched 477 kB in 1s (457 kB/s)
Reading changelogs... Done
(Reading database ... 50214 files and directories currently installed.)
Preparing to replace nginx 1.2.1-2.2+wheezy2 (using .../nginx_1.6.0-1~squeeze_amd64.deb) ...
Unpacking replacement nginx ...
dpkg: error processing /var/cache/apt/archives/nginx_1.6.0-1~squeeze_amd64.deb (--unpack):
trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.2.1-2.2+wheezy2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nginx_1.6.0-1~squeeze_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment