To install vsftpd on ubuntu, run
apt-get install vsftpd
Now you need to edit vsftpd config file
vi /etc/vsftpd.conf
You need to add
write_enable=YES chroot_local_user=YES allow_writeable_chroot=YES local_umask=002 file_open_mode=0755 force_dot_files=YES
After chroot_local_user.