系统教程
您现在的位置是:首页>服务器系统>Linux系统内容

启动报错:Could not update ICEauthority file /var/lib/gdm/

时间:2018-05-11 出处:未知复制分享人气(次) 【

CentOS6.8启动报错:Could not update ICEauthority file /var/lib/gdm/.ICEauthority
出此错误前,我做过什么?更新yum源,安装配置MySQL(mysql5.6.34二进制文件编译版本)
 
问题描述
启动报错:Could not update ICEauthority file /var/lib/gdm/
如上图所示,重启系统,出现此提示。
 
问题原因
由于/var/lib/gdm/.ICEauthority下的文件被更改所引起的。
 
解决方案
首先需要通过Linux单用户模式登陆该系统:
1.开机进入系统启动画面之后,敲入“e”,把光标移动到kernel …那一行,再敲入“e”,在kernel 一行的最后加上空格single,回车敲入“b”,启动系统,即进入单用户模式。
2.执行命令
[root@XXXX AA]# chown -R root:root /var
[root@XXXX AA]# chown -R gdm: /var/lib/gdm
ok!执行后,没问题出现!
什么?你执行后报错?请看附【linux重新启动错误 could not update ICEauthority file】文章,那里可能有解决你问题的方案。
好,重启机器试试!
 
附:linux重新启动错误 could not update ICEauthority file
linux启动时报Could not update ICEauthority file /var/lib/gdm/.ICEauthority
首先需要通过linux单用户模式登陆该系统
进入单用户模式:
grub 进入启动画面之后,敲入“e”,把光标移动到kernel ...那一行,再敲入“e”,在kernel 一行的最后加上空格single,回车敲入“b”,启动系统,即进入单用户模式。
出现此错误的原因是由于/var/lib/gdm/.ICEauthority下的文件被更改所引起的。我们只要操作以下命令即可:
[root@hsdb02 tmp]# chown -R root:root /var 
[root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm
如果操作此命令chown -R gdm: /var/lib/gdm 提示错误,则使用以下命令
[root@hsdb02 tmp]# cd /var/lib/gdm
[root@hsdb02 tmp]#lsattr .ICEauthority  #此命令为查看此文件所具有的隐藏属性,然后次用chattr命令更改属性。
eg:这个文件的隐藏属性是i,则用命令
[root@hsdb02 tmp]# chattr -i .ICEauthority
最后在执行  [root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm 就不会提示错误了。
完成相应操作后,重启系统即可。
    最新资讯
    热门内容
    小米移动电源能为iPad mini充几次电