修复Linux下keyring错误

来自YTYZX有图有真相的百科
137.201.242.130讨论2020年10月25日 (日) 09:43的版本
跳转至: 导航搜索

在Linux下修改密码之后,开机重复弹出错误(特别是GNOME环境),部分情况下输入旧密码并点击“Unlock”按钮依然无法修复此错误,按照以下方法可修复此错误。

1.错误截图如下:
  错误信息:Enter password to unlock your login keyring
            The password you use to log in to your computer no longer matches that os your lgoin keyring.

LinuxLoginKeyring1.png

2.在Shell中输入“su -”并按回车键确定,然后输入root密码。

Linuxsuroot.png

3.输入“locate login.keyring”查找login.keyring文件位置,本例中为“/home/detail(替换为用户名)/.local/share/keyrings/login.keyring”,
  输入“mv /home/detail/.local/share/keyrings/login.keyring /home/detail/.local/share/keyrings/login.keyringbk”将login.keyring重命名为login.keyringbk。
  备注:如未安装locate,可以使用“find / -name login.keyring”命令查找。

LinuxLoginKeyring2.png

4.点击屏幕右上角,并点击用户名下的“Log Out”按钮注销,重新登录即可。

LinuxLoginKeyring3.png


Open Applications -> Accessories -> Password and Encryption Keys
Right-click on the "login" keyring
Select "Change password"
Enter your old password and leave the new password blank
Press ok, read the security warning, think about it and if you still want to get rid of this dialog, choose "use unsafe storage".
Again, as the message says: This will expose all your passwords (e.g. email passwords) that you chose to save in the default keyring to anyone using your computer or having access to your files and is therefore not recommended.