Page 1 of 2

Unable to update NGINX

Posted: Tue Jun 28, 2016 6:01 pm
by jimmyeao
Trying to update NGINX:

Code: Select all

apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 nginx : Depends: nginx-core (< 1.9.3-1ubuntu1.1.1~) but 1.9.3-1ubuntu1.2 is installed or
                  nginx-full (< 1.9.3-1ubuntu1.1.1~) but it is not installed or
                  nginx-light (< 1.9.3-1ubuntu1.1.1~) but it is not installed or
                  nginx-extras (< 1.9.3-1ubuntu1.1.1~) but it is not installed
E: Unmet dependencies. Try using -f.
So I try using -f install:

Code: Select all

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  nginx
The following packages will be upgraded:
  nginx
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/652 kB of archives.
After this operation, 2,323 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 80899 files and directories currently installed.)
Preparing to unpack .../nginx_1.10.1-1~wily_amd64.deb ...
Unpacking nginx (1.10.1-1~wily) over (1.9.3-1ubuntu1.1) ...
dpkg: error processing archive /var/cache/apt/archives/nginx_1.10.1-1~wily_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/nginx', which is also in package nginx-core 1.9.3-1ubuntu1.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nginx_1.10.1-1~wily_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any help appreciated :)

Re: Unable to update NGINX

Posted: Fri Aug 05, 2016 12:41 pm
by jimmyeao
Bump.. Anyone?

Re: Unable to update NGINX

Posted: Fri Aug 05, 2016 12:50 pm
by ScIT
Hi

Maybe: http://askubuntu.com/questions/441047/d ... pipe-nginx

If that not works, please provide additional informations about OS & Version.

Best Regards
Raphael

Re: Unable to update NGINX

Posted: Fri Aug 05, 2016 1:36 pm
by jimmyeao
ScIT wrote:Hi

Maybe: http://askubuntu.com/questions/441047/d ... pipe-nginx

If that not works, please provide additional informations about OS & Version.

Best Regards
Raphael
Little concerned as this is a production server.. wont purging nginx break the web server?

Re: Unable to update NGINX

Posted: Sat Aug 06, 2016 2:14 pm
by ScIT
jimmyeao wrote: Little concerned as this is a production server.. wont purging nginx break the web server?
Yes, it will stop and remove nginx, so your websites will go offline. Normaly just for the time you need to reinstall nginx, if the reinstall not works properly you will have a longer downtime until the problem is solved. Otherwise the downtime will be some minutes.

Of course this is a little bit risky, maybe you can provide more information about O/S and Error Logs, so that we can maybe find another solution?

Best Regards
Raphael

Re: Unable to update NGINX

Posted: Mon Sep 19, 2016 9:59 am
by jimmyeao
OS is Ubuntu 12.04
Which logs would you like to see?

Re: Unable to update NGINX

Posted: Wed Jan 11, 2017 9:50 pm
by jimmyeao
Bump... still looking for a definite fix for this..

Re: Unable to update NGINX

Posted: Fri Jan 13, 2017 8:01 am
by ScIT
jimmyeao wrote:Bump... still looking for a definite fix for this..
solution 1:
ScIT wrote:Hi

Maybe: http://askubuntu.com/questions/441047/d ... pipe-nginx

If that not works, please provide additional informations about OS & Version.

Best Regards
Raphael
solution 2: setup a new server with ubuntu 16.04 and vesta cp and transfer the domains to the new server.

Re: Unable to update NGINX

Posted: Fri Jan 13, 2017 4:07 pm
by jimmyeao
ScIT wrote:
jimmyeao wrote:Bump... still looking for a definite fix for this..
solution 1:
ScIT wrote:Hi

Maybe: http://askubuntu.com/questions/441047/d ... pipe-nginx

If that not works, please provide additional informations about OS & Version.

Best Regards
Raphael
solution 2: setup a new server with ubuntu 16.04 and vesta cp and transfer the domains to the new server.
Forgive my newbie ignorance :) - if a do a backup from the admin user will it back all users, domains, certs, emails etc? or will I have to migrate them one by one afterwards? This is looking like a better option

Re: Unable to update NGINX

Posted: Sun Jan 15, 2017 8:29 am
by ScIT
jimmyeao wrote:
ScIT wrote:
jimmyeao wrote:Bump... still looking for a definite fix for this..
solution 1:
ScIT wrote:Hi

Maybe: http://askubuntu.com/questions/441047/d ... pipe-nginx

If that not works, please provide additional informations about OS & Version.

Best Regards
Raphael
solution 2: setup a new server with ubuntu 16.04 and vesta cp and transfer the domains to the new server.
Forgive my newbie ignorance :) - if a do a backup from the admin user will it back all users, domains, certs, emails etc? or will I have to migrate them one by one afterwards? This is looking like a better option
You have to backup and restore user by user.