Unable to update NGINX

Debian/Ubuntu related topics
jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Unable to update NGINX

Postby jimmyeao » Tue Jun 28, 2016 6:01 pm

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 :)

jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Re: Unable to update NGINX

Postby jimmyeao » Fri Aug 05, 2016 12:41 pm

Bump.. Anyone?

ScIT
Posts: 246
Joined: Mon Feb 23, 2015 4:13 pm

Re: Unable to update NGINX

Postby ScIT » Fri Aug 05, 2016 12:50 pm

Hi

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

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

Best Regards
Raphael

jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Re: Unable to update NGINX

Postby jimmyeao » Fri Aug 05, 2016 1:36 pm

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?

ScIT
Posts: 246
Joined: Mon Feb 23, 2015 4:13 pm

Re: Unable to update NGINX

Postby ScIT » Sat Aug 06, 2016 2:14 pm

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

jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Re: Unable to update NGINX

Postby jimmyeao » Mon Sep 19, 2016 9:59 am

OS is Ubuntu 12.04
Which logs would you like to see?

jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Re: Unable to update NGINX

Postby jimmyeao » Wed Jan 11, 2017 9:50 pm

Bump... still looking for a definite fix for this..

ScIT
Posts: 246
Joined: Mon Feb 23, 2015 4:13 pm

Re: Unable to update NGINX

Postby ScIT » Fri Jan 13, 2017 8:01 am

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.

jimmyeao
Posts: 25
Joined: Fri Nov 27, 2015 2:13 pm

Re: Unable to update NGINX

Postby jimmyeao » Fri Jan 13, 2017 4:07 pm

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

ScIT
Posts: 246
Joined: Mon Feb 23, 2015 4:13 pm

Re: Unable to update NGINX

Postby ScIT » Sun Jan 15, 2017 8:29 am

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.


Return to “Debian/Ubuntu”



Who is online

Users browsing this forum: No registered users and 4 guests