I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website.
I have Nginx installed and running already, version is 1.7.9-1~trusty.
I am attempting to follow the prerequisite: apt-get install nginx-extras
and this fails with the error message:
Unpacking nginx-common (1:1.6.2-2.4.0.56~trusty1) ...
dpkg: error processing archive
/var/cache/apt/archives/nginx-common_1%3a1.6.2-2.4.0.56~trusty1_all.deb (--unpack):
trying to overwrite '/usr/share/nginx/html/index.html',
which is also in package nginx 1.7.9-1~trusty
Preparing to unpack .../nginx-extras_1%3a1.6.2-2.4.0.56~trusty1_amd64.deb ...
Unpacking nginx-extras (1:1.6.2-2.4.0.56~trusty1) ...
dpkg: error processing archive
/var/cache/apt/archives/nginx-extras_1%3a1.6.2-2.4.0.56~trusty1_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/nginx',
which is also in package nginx 1.7.9-1~trusty
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1%3a1.6.2-2.4.0.56~trusty1_all.deb
/var/cache/apt/archives/nginx-extras_1%3a1.6.2-2.4.0.56~trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I believe the nginx version I have is the mainline version directly from the nginx.org repo. But it doesn't seem like there's a matching version for nginx-common or nginx-extras, etc. Does anyone know if there's anyway to install the extras package for 1.7.9? Is it even still needed? Or will I need to uninstall 1.7.9 and install 1.6.2 of everything?
Output of apt-cache policy nginx-extras
nginx-extras:
Installed: (none)
Candidate: 1:1.6.2-2.4.0.56~trusty1
Version table:
1:1.6.2-2.4.0.56~trusty1 0
500 https://oss-binaries.phusionpassenger.com/apt/passenger/ trusty/main amd64 Packages
1.6.2-5+trusty0 0
500 http://ppa.launchpad.net/nginx/stable/ubuntu/ trusty/main amd64 Packages
1.4.6-1ubuntu3.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
1.4.6-1ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages