[Bug 1440363] Re: package nginx (not installed) failed to install/upgrade: trying to overwrite '/etc/default/nginx', which is also in package nginx-common 1.4.6-1ubuntu3.2

Thomas Ward teward at trekweb.org
Sat Apr 4 16:40:10 UTC 2015


Corrections needed.  For upstream nginx, 1.7.x is mainline; 1.6.x is
stable.  1.7.x has newer features than Stable does, but may not be as
stable.

------

(If this seems like a lot to read, and you don't want to read the lots
of information I put here for background and explanation, skip down to
the next section where I say "This bug is a two part problem" and
summarize.)

Now, onto the actual issue here.  Based on the versioning string of the
package you're trying to actually install, I assume that you are trying
to use the upstream repository, which is from nginx.org, and not the
PPA.  That's a repository not controlled or maintained by myself or
anyone in Ubuntu.  They do not separate out 'common configuration files'
from the actual packaging containing the binary, because they only ship
one 'flavor' of NGINX.  Because of this, everything's in the 'nginx'
package in the upstream repository - in Debian, Ubuntu, and the PPAs,
the 'nginx' package is a metapackage that calls upon one of the packages
that has the actual binaries for the given flavor in it.  (Read the
answer I wrote here for a breakdown of the 'flavors' I refer to:
http://askubuntu.com/questions/553937/what-is-the-difference-between-
the-core-full-extras-and-light-packages-for-ngi/556382#556382)

Because of the varying packaging differences between Debian/Ubuntu/PPAs
and the Upstream repository from nginx.org, they are incompatible with
each other.

They also won't have NAXSI, because it's not supported by them.  The
naxsi module is a third party plugin.  It was part of the Debian package
(and the PPA packages I maintain, and Ubuntu's packaging) up until its
removal relatively recently.  It was dropped from Debian with
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746199 and dropped in
1.6.2-2 there (and in the PPAs, and in subsequent versions in Ubuntu).
It was never part of upstream's code and will not exist in the upstream
code either.

------

This bug is a two part problem, of which neither are fixable in Ubuntu:

(1) This is not a bug fixable in Ubuntu - upstream nginx needs to update
their packaging to meet the same standards as Debian and/or the PPAs,
which won't happen based on my communication with them there.  I am
marking this "Invalid" as such here as this is not an Ubuntu bug nor an
issue fixable here in Ubuntu.

(2) NAXSI is no longer supported in nginx in Ubuntu or Debian, and has
never had support from upstream nginx.org.  Therefore, you will not be
able to get 'naxsi' working the way you want/need it to without manually
compiling the software yourself, using nginx.org's tarballs and the
naxsi module code, following the naxsi upstream developers' guides to
building the software.

** Changed in: nginx (Ubuntu)
       Status: New => Invalid

** Bug watch added: Debian Bug tracker #746199
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746199

** Changed in: nginx (Ubuntu)
       Status: Invalid => New

** Changed in: nginx (Ubuntu)
       Status: New => Invalid

** Summary changed:

- package nginx (not installed) failed to install/upgrade: trying to overwrite '/etc/default/nginx', which is also in package nginx-common 1.4.6-1ubuntu3.2
+ package nginx (not installed) (from nginx.org upstream repository) failed to install/upgrade: trying to overwrite '/etc/default/nginx', which is also in package nginx-common 1.4.6-1ubuntu3.2

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1440363

Title:
  package nginx (not installed) (from nginx.org upstream repository)
  failed to install/upgrade: trying to overwrite '/etc/default/nginx',
  which is also in package nginx-common 1.4.6-1ubuntu3.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1440363/+subscriptions



More information about the Ubuntu-server-bugs mailing list