deepakdeshp
August 26th, 2016, 10:51 PM
Hello, I tried to install nginx on Ubuntu 16.04 server 32 bit but failed . Please advise.
apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
nginx-common/xenial-updates,xenial-security,now 1.10.0-0ubuntu0.16.04.2 all [installed,auto-removable]
uma@ubuntu-i386:~$ sudo apt-get purge nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'nginx' is not installed, so not removed
The following package was automatically installed and is no longer required:
nginx-common
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx-common
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 167 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 141539 files and directories currently installed.)
Removing nginx-common (1.10.0-0ubuntu0.16.04.2) ...
uma@ubuntu-i386:~$ apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
(reverse-i-search)`': apt list --installed |grep nginx^C
uma@ubuntu-i386:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 94.5 kB in 1s (55.4 kB/s)
Reading package lists... Done
(failed reverse-i-search)`grAD': apt list --installed |^Cep nginx
(failed reverse-i-search)`GRADE': Partition: ID-1: / size: 87G used: 56^C(68%) fs: ext4 dev: /dev/sda12
uma@ubuntu-i386:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic ubuntu-core-launcher
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 94.5 kB in 1s (65.8 kB/s)
Reading package lists... Done
uma@ubuntu-i386:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic ubuntu-core-launcher
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get -f
E: Command line option 'f' [from -f] is not understood in combination with the other options.
uma@ubuntu-i386:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
uma@ubuntu-i386:~$ sudo apt-get purge nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'nginx' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
nginx-common nginx-core
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx nginx-common nginx-core
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/499 kB of archives.
After this operation, 1,512 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package nginx-common.
(Reading database ... 141521 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.10.0-0ubuntu0.16.04.2_all.deb ...
Unpacking nginx-common (1.10.0-0ubuntu0.16.04.2) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../nginx-core_1.10.0-0ubuntu0.16.04.2_i386.deb ...
Unpacking nginx-core (1.10.0-0ubuntu0.16.04.2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.10.0-0ubuntu0.16.04.2_all.deb ...
Unpacking nginx (1.10.0-0ubuntu0.16.04.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for systemd (229-4ubuntu7) ...
Setting up nginx-common (1.10.0-0ubuntu0.16.04.2) ...
insserv: warning: script 'K01noip2' missing LSB tags and overrides
insserv: warning: script 'noip2' missing LSB tags and overrides
Setting up nginx-core (1.10.0-0ubuntu0.16.04.2) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-core (--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.2) | nginx-full (>= 1.10.0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.2); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.2.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
uma@ubuntu-i386:~$
apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
nginx-common/xenial-updates,xenial-security,now 1.10.0-0ubuntu0.16.04.2 all [installed,auto-removable]
uma@ubuntu-i386:~$ sudo apt-get purge nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'nginx' is not installed, so not removed
The following package was automatically installed and is no longer required:
nginx-common
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx-common
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 167 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 141539 files and directories currently installed.)
Removing nginx-common (1.10.0-0ubuntu0.16.04.2) ...
uma@ubuntu-i386:~$ apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
(reverse-i-search)`': apt list --installed |grep nginx^C
uma@ubuntu-i386:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 94.5 kB in 1s (55.4 kB/s)
Reading package lists... Done
(failed reverse-i-search)`grAD': apt list --installed |^Cep nginx
(failed reverse-i-search)`GRADE': Partition: ID-1: / size: 87G used: 56^C(68%) fs: ext4 dev: /dev/sda12
uma@ubuntu-i386:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic ubuntu-core-launcher
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 94.5 kB in 1s (65.8 kB/s)
Reading package lists... Done
uma@ubuntu-i386:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic ubuntu-core-launcher
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get -f
E: Command line option 'f' [from -f] is not understood in combination with the other options.
uma@ubuntu-i386:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ apt list --installed |grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
uma@ubuntu-i386:~$ sudo apt-get purge nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'nginx' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
uma@ubuntu-i386:~$ sudo apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
nginx-common nginx-core
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx nginx-common nginx-core
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/499 kB of archives.
After this operation, 1,512 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package nginx-common.
(Reading database ... 141521 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.10.0-0ubuntu0.16.04.2_all.deb ...
Unpacking nginx-common (1.10.0-0ubuntu0.16.04.2) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../nginx-core_1.10.0-0ubuntu0.16.04.2_i386.deb ...
Unpacking nginx-core (1.10.0-0ubuntu0.16.04.2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.10.0-0ubuntu0.16.04.2_all.deb ...
Unpacking nginx (1.10.0-0ubuntu0.16.04.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for systemd (229-4ubuntu7) ...
Setting up nginx-common (1.10.0-0ubuntu0.16.04.2) ...
insserv: warning: script 'K01noip2' missing LSB tags and overrides
insserv: warning: script 'noip2' missing LSB tags and overrides
Setting up nginx-core (1.10.0-0ubuntu0.16.04.2) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-core (--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.2) | nginx-full (>= 1.10.0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.2); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.2.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
uma@ubuntu-i386:~$