sudo: no tty present and no askpass program specified 解决方法
作者:互联网
sudo: no tty present and no askpass program specified 解决方法
sudo: no tty present and no askpass program specified
由于帐号并没有开启免密码导致的
假设当前帐号为abc
切换到root下
1 打开sudoers
vi /etc/sudoers
2 添加免密码
abc ALL = NOPASSWD: ALL
参考:
https://blog.csdn.net/a_little_a_day/article/details/78282983
标签:tty,sudo,no,askpass,program,specified 来源: https://blog.csdn.net/JacksonKing/article/details/96492973