sudo:sorry,you must have a tty to run sudo


解决办法:


# visudo


#Defaults    requiretty        (注释掉即可)

:wq