apache2 - repeated nginx ubuntu 16.04 error on update install - Ask Ubuntu


this question has answer here:

every time run sudo apt-get update error getting thrown regarding nginx.

the following new packages installed: nginx 0 upgraded, 1 newly installed, 0 remove , 2 not upgraded. 1 not installed or removed. need 0 b/3.498 b of archives. after operation, 37,9 kb of additional disk space used. selecting unselected package nginx. (reading database ... 542828 files , directories installed.) preparing unpack .../nginx_1.10.0-0ubuntu0.16.04.4_all.deb ... unpacking nginx (1.10.0-0ubuntu0.16.04.4) ... setting nginx-full (1.10.0-0ubuntu0.16.04.4) ... job nginx.service failed because control process exited error code. see "systemctl status nginx.service" , "journalctl -xe" details. invoke-rc.d: initscript nginx, action "start" failed. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit   status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.4) | nginx-full    (>= 1.10.0-0ubuntu0.16.04.4) | nginx-light (>= 1.10.0-0ubuntu0.16.04.4) |   nginx-extras (>= 1.10.0-0ubuntu0.16.04.4); however: package nginx-core not installed. package nginx-full not configured yet. package nginx-light not installed. package nginx-extras not installed. nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx- full (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-light (<< 1.10.0-  0ubuntu0.16.04.4.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.4.1~);  however: package nginx-core not installed. package nginx-full not configured yet. package nginx-light not installed. package nginx-extras not installed.  dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured no apport report written because error message indicates   followup error previous failure.                       errors encountered while processing: nginx-full nginx e: sub-process /usr/bin/dpkg returned error code (1) 

i've tried resolve suggested in other posts without success:

sudo apt-get remove nginx sudo apt-get -f install    # (as mentioned in this post)
$ systemctl status nginx.service nginx.service - high performance web server , reverse proxy server loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) active: failed (result: exit-code) since mo 2016-11-07 21:05:51 cet; 7min ago process: 10372 execstartpre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/failure) 

i tried following... error persists.

apt purge nginx apt autoremove apt install nginx 

how many options have here on right track?

should try uninstalling/disabling apache2?

shutting down apache2 first before installing nginx should fix problem.

stop apache2

sudo systemctl stop apache2.service 

prevent apache2 start @ boot

sudo systemctl disable apache2.service 

reinstall nginx

sudo apt-get install nginx 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User