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

Recommended Answers

All 7 Replies

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

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:~# 

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

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!

Thanks sir for you help I think there is a bug in vsftpd.

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

commented: thanks for the feedback +14
commented: thanks! +13
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.