修复Linux下keyring错误

来自YTYZX有图有真相的百科
跳转至: 导航搜索

在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.
进入到系统/首选项/密码和加密密钥,右键单击相应的文件夹,然后单击“更改密码”。把您的旧密码,并留下了一个空白。
但是在CentOS里找不密码和加密密钥
再搜索发现,可以在终端中输入seahorse调用。


图中第一条,因为我已经删除了,所以没有。
选中右键,本来还有修改密码,解锁,几个选项,但是我记得很清楚,我没有设置过任何密码,
我的常用密码也都试过了,没有一个正确的,所以就删除了。
删除后,退出google chrome 重启打开,会提示你设置一个新的密码,我设置了,之后就没有再弹出来过。