网上都是复制粘贴,解决不了问题
主要是因为安全模式下进去无法修改
.ICEauthority这个文件的用户和组
关键在于 mount -o / rw, remount /
参考这篇文章
How to fix .ICEauthority
Lifted from this post.
First you need to boot into recovery mode. If Ubuntu is the only system installed on your computer you need to hold Shift-Key while booting.
Select the "recovery mode"-entry which is usually the second one.
- Select "root Drop to root shell prompt".
- Enter
mount -o rw,remount /
to make your system writeable
Repairing
Go to your home folder. Change USERNAME with you actual username:
cd /home/USERNAME
Check if .ICEAuthority is owned by you
ls -al .ICEauthority
If it isn't (like it is owned by root) change it to you. As above change USERNAME with you actual username:
sudo chown USERNAME:USERNAME .ICEauthority
If you there is no such file you need to recreate it. Change USERNAME yada yada ... :
touch .ICEauthority
sudo chown USERNAME:USERNAME .ICEauthority
sudo chmod 600 .ICEauthority
Type
reboot
to reboot your system.
Probale cause
You probably ran a graphical application with sudo as explained here.