0

Hi
How can I remove vsftpd on Kali linux?
I used all commands but its not work?

apt-get remove vsftpd

sudo apt-get remove --auto-remove vsftpd

sudo apt-get purge vsftpd

Any Help please

3
Contributors
7
Replies
40
Views
3 Years
Discussion Span
Last Post by matosha
0

Hi,

what error do you get when you try the above commands? And have you tried to stop the service? For example:

sudo service vsftpd stop
sudo apt-get remove vsftpd
0

Thanks for answer and I got this error.
Still not work???

root@kali:~# service vsftpd stop
Stopping FTP server: vsftpd.
root@kali:~# apt-get remove vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  vsftpd
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 374 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 341887 files and directories currently installed.)
Removing vsftpd ...
Stopping FTP server: No /usr/sbin/vsftpd found running; none killed.
vsftpd.
update-inetd: --disable requires only one argument
dpkg: error processing vsftpd (--remove):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for man-db ...
Errors were encountered while processing:
 vsftpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@kali:~# 
0

Thanks for answer
It seems still not work.

root@kali:~# service vsftpd stop
root@kali:~# dpkg --purge vsftpd
(Reading database ... 341839 files and directories currently installed.)
Removing vsftpd ...
update-inetd: --disable requires only one argument
dpkg: error processing vsftpd (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 vsftpd
root@kali:~# killall vsftpd
vsftpd: no process found
0

I don't have other ideas, try follow the suggestions of this post:

The file to check it should be /var/lib/dpkg/info/vsftpd.postinst and in practice you have to check if there is something like this:

#!/bin/sh -e

Or:

#!/bin/sh

set -e

And in the first case remove -e, in the second remove set -e. If it still does not work, repeat it for all these files:

ls /var/lib/dpkg/info/vsftpd.*

Hope it helps. Bye!

2

I found my answer here. The issue lied in this file. I commented out 3 parameters and the removal worked. installed pure-ftpd afterwards. -at the bottom of post
Click Here

Votes + Comments
thanks!
thanks for the feedback
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.