title: Linux_bug收集_linux重新启动错误 could not update ICEauthority file
tags: Python
grammar_cjkRuby: true
linux启动时报Could not update ICEauthority file /var/lib/gdm/.ICEauthority
错误原因:出现此错误的原因是由于/var/lib/gdm/.ICEauthority下的文件被更改所引起的。我们只要按如下操作即可:
这是之前能用方法,目前好多网友反馈无法使用,请大家慎重操作!!!!
这是之前能用方法,目前好多网友反馈无法使用,请大家慎重操作!!!!
这是之前能用方法,目前好多网友反馈无法使用,请大家慎重操作!!!!
解决办法:
1 首先需要通过linux单用户模式登陆该系统
进入单用户模式:
出现这个画面

按 e 键
显示
![![enter description here][2]](https://i-blog.csdnimg.cn/blog_migrate/8a52bf3aa52caed89c422d119dc4b53f.png)
继续按e键
显示

按上下键选择 kernel 那一行
按e键 进入后 追加 空格+single
如图:
![![enter description here][4]](https://i-blog.csdnimg.cn/blog_migrate/dda2a512decc24155c41652bd94cbc04.png)

回车确认
按 b 键 启动进入单用户模式
2. 修改权限
[root@www tmp]# chown -R root:root /var
[root@www tmp]# chown -R gdm: /var/lib/gdm
如果操作此命令chown -R gdm: /var/lib/gdm 提示错误,则使用以下命令
[root@www tmp]# cd /var/lib/gdm
[root@www tmp]#lsattr .ICEauthority
#此命令为查看此文件所具有的隐藏属性,然后次用chattr命令更改属性。
eg:这个文件的隐藏属性是i,则用命令
[root@www tmp]# chattr -i .ICEauthority
最后在执行
[root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm
就不会提示错误了。
[root@hsdb02 tmp]# reboot
完成相应操作后,重启系统即可。
本文介绍了解决Linux系统启动时出现的“Could not update ICE authority file”错误的方法。通过进入单用户模式调整文件权限及属性,可以有效解决此问题。
3700

被折叠的 条评论
为什么被折叠?



