Problem on installing ngnix

Stephen Liu satimis at yahoo.com
Mon Dec 1 10:09:06 MSK 2008


Hi folks,


OS - Debina Etch


Problem on installing nginx

# apt-get install nginx
.......
Errors were encountered while processing:
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)


Fail.  But I can't uninstall the package;


# apt-get remove --f nginx
E: Command line option --f is not understood
xen11:~# apt-get remove -f nginx
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  nginx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 524kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 18955 files and directories currently installed.)
Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
 subprocess pre-removal script returned error exit status 1
Starting nginx: invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have to remove nginx manually;


# rm -rf /etc/nginx
# rm -rf /usr/sbin/nginx
# rm /usr/share/man/man1/nginx.1.gz
# apt-get remove nginx*
Reading package lists... Done
Building dependency tree... Done
Note, selecting gtk-engines-xenophilia for regex 'nginx*'
Note, selecting cfengine-doc for regex 'nginx*'
Note, selecting gtk2-engines-redmond95 for regex 'nginx*'
Note, selecting gtk2-engines-thingeramik for regex 'nginx*'
Note, selecting cfengine2-doc for regex 'nginx*'
Note, selecting gtk-engines-eazel for regex 'nginx*'
Note, selecting gtk2-engines-mist for regex 'nginx*'
Note, selecting gtk2-engines-clearlooks for regex 'nginx*'
Note, selecting gtk2-engines-pixbuf for regex 'nginx*'
Note, selecting gtk2-engines-metal for regex 'nginx*'
Note, selecting gtk2-engines-geramik for regex 'nginx*'
Note, selecting gtk-engines-thinice for regex 'nginx*'
Note, selecting gtk-engines-lighthouseblue for regex 'nginx*'
Note, selecting gtk-engines-geramik-data for regex 'nginx*'
Note, selecting gtk-engines-begtk for regex 'nginx*'
Note, selecting gtk-engines-raleigh for regex 'nginx*'
Note, selecting libcatalyst-engine-apache-perl for regex 'nginx*'
Note, selecting asterisk-rate-engine for regex 'nginx*'
Note, selecting dpsyco-cfengine for regex 'nginx*'
Note, selecting foomatic-db-engine for regex 'nginx*'
Note, selecting gtk-engines-mist for regex 'nginx*'
Note, selecting ksplash-engine-moodin for regex 'nginx*'
Note, selecting gtk2-engines-gartoon for regex 'nginx*'
Note, selecting gnome-icon-theme-gartoon instead of
gtk2-engines-gartoon
Note, selecting gtk2-engines for regex 'nginx*'
Note, selecting nginx for regex 'nginx*'
Note, selecting python2.4-poker-engine for regex 'nginx*'
Note, selecting gtk2-engines-smooth for regex 'nginx*'
Note, selecting gtk2-engines-qtpixmap for regex 'nginx*'
Note, selecting cfengine for regex 'nginx*'
Note, selecting libengine-pkcs11-openssl for regex 'nginx*'
Note, selecting gtk-engines-thingeramik for regex 'nginx*'
Note, selecting amarok-engine for regex 'nginx*'
Note, selecting amarok-xine instead of amarok-engine
Note, selecting dhis-dns-engine for regex 'nginx*'
Note, selecting gtk2-engines-magicchicken for regex 'nginx*'
Note, selecting gtk-engines-notif for regex 'nginx*'
Note, selecting gtk2-engines-cleanice for regex 'nginx*'
Note, selecting gtk2-engines-gorilla for regex 'nginx*'
Note, selecting gtk-engines-redmond95 for regex 'nginx*'
Note, selecting xengine for regex 'nginx*'
Note, selecting gtk2-engines-thinice for regex 'nginx*'
Note, selecting gtk2.0-engines-pixbuf for regex 'nginx*'
Note, selecting cfengine2 for regex 'nginx*'
Note, selecting gtk2-engines-wasp for regex 'nginx*'
Note, selecting gtk2-engines-gtk-qt for regex 'nginx*'
Note, selecting gtk2-engines-crux for regex 'nginx*'
Note, selecting gtk-engines-metal for regex 'nginx*'
Note, selecting gtk2-engines-galaxy for regex 'nginx*'
Note, selecting gtk2-engines-industrial for regex 'nginx*'
Note, selecting poker-engine-common for regex 'nginx*'
Note, selecting gtk2-engines-xfce for regex 'nginx*'
Note, selecting gtk-qt-engine for regex 'nginx*'
Note, selecting python-poker-engine for regex 'nginx*'
Note, selecting gtk-engines-pixmap for regex 'nginx*'
Note, selecting gtk2-engines-glider for regex 'nginx*'
Note, selecting gtk2-engines-highcontrast for regex 'nginx*'
Note, selecting gtk2-engines-nuvola for regex 'nginx*'
Note, selecting webmin-cfengine for regex 'nginx*'
Note, selecting amarok-engines for regex 'nginx*'
Note, selecting gtk2-engines-spherecrystal for regex 'nginx*'
Note, selecting gtk2-engines-wonderland for regex 'nginx*'
Note, selecting gtk-engines-geramik for regex 'nginx*'
Note, selecting dhis-mx-sendmail-engine for regex 'nginx*'
Note, selecting gtk-engines-qtpixmap for regex 'nginx*'
Note, selecting doom-engine for regex 'nginx*'
Note, selecting gtk-engines-smooth for regex 'nginx*'
Note, selecting gtk-engines-mgicchikn for regex 'nginx*'
Note, selecting gtk2-engines-lighthouseblue for regex 'nginx*'
Note, selecting gtk-engines-thingeramik-data for regex 'nginx*'
The following packages will be REMOVED:
  nginx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 524kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 18955 files and directories currently installed.)
Removing nginx ...


# find / -name nginx
/var/lib/nginx
/var/log/nginx
/etc/init.d/nginx


# ls /var/lib/nginx/
body  fastcgi  proxy

# rm -rf /var/lib/nginx

# ls /var/log/nginx/
access.log            error.log             localhost.access.log

# rm -rf /var/log/nginx
# rm /etc/init.d/nginx


Please advise how to install nginx.  Whether I have to compile the
package from source?  TIA


B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com 





More information about the nginx mailing list