ubuntu启动报/root/.profile mesg:ttyname failed错误的解决办法

修改/root/.profile文件,如下命令

sudo gedit /root/profile

将文中的最后一行mesg n修改成tty -s && mesg n