[SOLVED] Urgent: I have uninstalled and purged(deleted config files) ftp and vsftp
by marcello.ligi from LinuxQuestions.org on (#57807)
I have uninstalled and purged(deleted config files) ftp and vsftp
now I cannot use ftp/vsftp, I have tried to reinstall both ftp and vsftp the following issues occurs, anyone can help please.
itad@itad-virtual-machine:~$ sudo systemctl restart vsftpd
itad@itad-virtual-machine:~$ sudo netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 998/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 9694/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 6841/cupsd
tcp6 0 0 :::22 :::* LISTEN 9694/sshd
tcp6 0 0 ::1:631 :::* LISTEN 6841/cupsd
itad@itad-virtual-machine:~$ sudo service vsftp start
Failed to start vsftp.service: Unit vsftp.service not found.
itad@itad-virtual-machine:~$ sudo vsftpd start
500 OOPS: cannot read config file: start
itad@itad-virtual-machine:~$ ls -lh /etc/vsftpd.conf
-rw-r--r-- 1 root root 6.3K Aug 23 02:26 /etc/vsftpd.conf
itad@itad-virtual-machine:~$ sudo nano /etc/vsftpd.conf
[sudo] password for itad:
itad@itad-virtual-machine:~$ sudo nano /etc/vsftpd.conf.orig


now I cannot use ftp/vsftp, I have tried to reinstall both ftp and vsftp the following issues occurs, anyone can help please.
itad@itad-virtual-machine:~$ sudo systemctl restart vsftpd
itad@itad-virtual-machine:~$ sudo netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 998/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 9694/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 6841/cupsd
tcp6 0 0 :::22 :::* LISTEN 9694/sshd
tcp6 0 0 ::1:631 :::* LISTEN 6841/cupsd
itad@itad-virtual-machine:~$ sudo service vsftp start
Failed to start vsftp.service: Unit vsftp.service not found.
itad@itad-virtual-machine:~$ sudo vsftpd start
500 OOPS: cannot read config file: start
itad@itad-virtual-machine:~$ ls -lh /etc/vsftpd.conf
-rw-r--r-- 1 root root 6.3K Aug 23 02:26 /etc/vsftpd.conf
itad@itad-virtual-machine:~$ sudo nano /etc/vsftpd.conf
[sudo] password for itad:
itad@itad-virtual-machine:~$ sudo nano /etc/vsftpd.conf.orig