Please help. I have a server (Debian 6) in which somebody for some unknown reason manually removed the /etc/init.d/proftpd and /etc/proftpd/ folder, without uninstalling ProFTPD's. Of course, now ProFTPD server does not work. It can not be be (re)installed or configured. How to properly remove it and re-install via console?
I would try apt-get remove proftpd and then apt-get install proftpd. If you need further help, please let us know. Good luck!
Thank for replying. I already tryed with apt-get remove proftpd and recived: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'proftpd-basic' instead of 'proftpd' The following packages will be REMOVED: proftpd-basic 0 upgraded, 0 newly installed, 1 to remove and 30 not upgraded. 1 not fully installed or removed. After this operation, 4170 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 56142 files and directories currently installed.) Removing proftpd-basic ... invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found. dpkg: error processing proftpd-basic (--remove): subprocess installed pre-removal script returned error exit status 100 configured to not write apport reports Errors were encountered while processing: proftpd-basic E: Sub-process /usr/bin/dpkg returned an error code (1) Code (markup): Then I tryed with reuploading missing files with the default ones. After I ran apt-get update and apt-get upgrade, and still did not get proFTPD working. After tryed agin with the uninstall command which returned this: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'proftpd-basic' instead of 'proftpd' The following packages will be REMOVED: proftpd-basic 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 4170 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 56142 files and directories currently installed.) Removing proftpd-basic ... : not found/proftpd: 2: : not found/proftpd: 7: : not found/proftpd: 9: /etc/init.d/proftpd: 19: Syntax error: word unexpected (expecting "in") invoke-rc.d: initscript proftpd, action "stop" failed. dpkg: error processing proftpd-basic (--remove): subprocess installed pre-removal script returned error exit status 2 configured to not write apport reports insserv: warning: script 'K01proftpd' missing LSB tags and overrides insserv: warning: script 'proftpd' missing LSB tags and overrides Cannot start proftpd, please check syntax of your configuration file /etc/proftpd/proftpd.conf Errors were encountered while processing: proftpd-basic E: Sub-process /usr/bin/dpkg returned an error code (1) Code (markup):
Thank you for your response. Unfortunately, it did not solved the problem either. Finally I tried to find deleted files on the web. In the third attempt I found proper files. After a system restart it worked. Thank you all.