Ubuntu16.04登陆时“读取/root/.profile时发现错误”的解

来源:互联网 发布:96是什么意思网络用语 编辑:程序博客网 时间:2024/06/14 09:10

在Ubuntu16.04中使能root用户登陆后,会弹出如下所示的对话框。


错误详细内容如下:

读取 /root/.profile 时发现错误:
mesg: ttyname failed: 对设备不适当的 ioctl 操作
作为结果,会话不会被正确配置。
您应该尽快解决该问题。


解决方法为:
gedit /root/.profile
将文件末尾一句 mesg n 更改为:
tty -s && mesg n


本文永久更新地址:http://www.linuxdiyf.com/linux/21422.html

0 0
原创粉丝点击