1

Topic: Remove Nginx stable to upgrade to Nginx mainline

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Hi Zhang,

I would like to remove Nginx stable to upgrade to Nginx mainline, but when I issue the commmand:

sudo apt-get remove nginx ngix-common

the prompt will try to install apache2 and a bunch of other suggested program.

I don't need apache smile so what can I do know?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Remove Nginx stable to upgrade to Nginx mainline

Why not change your sources to reflect the newer version and then run an upgrade/dist-upgrade
Please always fill in the header
stable and mainline sounds like the names of the Nginx PPAs, Add the mainline Source and then just upgrade nginx. Removing it would be stupid.

3 (edited by quyhoang 2015-10-29 01:52:00)

Re: Remove Nginx stable to upgrade to Nginx mainline

7t3chguy wrote:

Why not change your sources to reflect the newer version and then run an upgrade/dist-upgrade
Please always fill in the header
stable and mainline sounds like the names of the Nginx PPAs, Add the mainline Source and then just upgrade nginx. Removing it would be stupid.

Let's see if your answer is right. I had already done what you said and please enjoy the result as follows:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/426 kB of archives.
After this operation, 1,145 kB of additional disk space will be used.
(Reading database ... 100342 files and directories currently installed.)
Preparing to unpack .../nginx_1.9.6-1~trusty_amd64.deb ...
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
Unpacking nginx (1.9.6-1~trusty) ...
dpkg: error processing archive /var/cache/apt/archives/nginx_1.9.6-1~trusty_amd64.deb (--unpack):
trying to overwrite '/usr/share/nginx/html/index.html', which is also in package nginx-common 1.8.0-1+trusty1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nginx_1.9.6-1~trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The reason why it displays those errors is:

"From these errors it looks like the deb packages in the nginx repository are not packaged in the same way as those in the ubuntu official repos so there is a conflict between the new nginx package and the existing nginx-common package."

from https://www.digitalocean.com/community/ … sion-1-9-5

Stupid it seems, but I have no choice.

Thank you for your answer.

4

Re: Remove Nginx stable to upgrade to Nginx mainline

Im looking into this as well so i can enable http2

any update upgraded and can post an how too ?