我用的系统Ubuntu14.02 64位

sudo: unable to resolve host iZo2r847v66i3lZ

sudo: /etc/init.d/vsftpd: command not found

经过网上查找,问题解决如下:

一、第一个错误

1、在Ubuntu系统中,快速查看主机名有多种方法:
其一,打开一个GNOME终端窗口,在命令提示符中可以看到主机名,主机名通常位于“@”符号后;
其二,在终端窗口中输入命令:hostname或uname –n,均可以查看到当前主机的主机名。

2、Ubuntu环境, 假设这台机器名字叫abc(机器的hostname), 每次执行sudo 就出现这个警告讯息:
sudo: unable to resolve host abc
虽然sudo 还是可以正常执行, 所以就直接从/etc/hosts 设定, 让abc(hostname) 可以解回127.0.0.1 的IP 即可.   

在127.0.0.1 localhost 后面加上主机名称(hostname) 即可:

二、第二个错误

需要重装vsftpd

 

sudo apt-get --reinstall install vsftpd

 

sudo apt-get --purge remove vsftpd

 

sudo apt-get install vsftpd

 


链接端口:

 

 

 

 

 

 

 

http://www.cnblogs.com/pinganzi/p/5895070.html