当前位置: 首页>>技术教程>>正文


Chrome 和 Chromium 需要很长时间才能加载

, ,

问题描述

我使用的是 Ubuntu 16.04.2,今天 Google Chrome 和 Chromium 开始需要很长时间才能加载。一旦打开,它们就会经常冻结。

我从命令行加载 Chrome 并收到以下消息:

$ google-chrome
Gkr-Message: secret service operation failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[8032:8100:0504/165233.258127:ERROR:connection.cc(1954)] Cookie sqlite error 5, errno 0: database is locked, sql: DELETE FROM cookies WHERE persistent != 1
[8032:8070:0504/165235.449471:ERROR:leveldb_database.cc(311)] Failed to open LevelDB database from /home/fd/.config/google-chrome/Default/IndexedDB/https_www.google.pt_0.indexeddb.leveldb,IO error: /home/fd/.config/google-chrome/Default/IndexedDB/https_www.google.pt_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[8032:8070:0504/165235.450323:ERROR:indexed_db_backing_store.cc(1403)] Unable to open backing store, not trying to recover - IO error: /home/fd/.config/google-chrome/Default/IndexedDB/https_www.google.pt_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
Gkr-Message: secret service operation failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[8032:8074:0504/165337.922687:ERROR:connection.cc(1954)] Cookie sqlite error 5, errno 0: database is locked, sql: COMMIT

从命令行加载 chromium 将返回:

$ chromium-browser
Gkr-Message: secret service operation failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Killed

我已经完全删除了 chrome/chromium,删除了 .config 和 .cache 中各自的文件夹

我怎样才能解决这个问题?

最佳方案

通过创建包含以下内容的文件 ~/.config/autostart/gnome-keyring-daemon.desktop 解决了这个问题:

[Desktop Entry]
Type=Application
Exec=/usr/bin/gnome-keyring-daemon
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Gnome Keyring Daemon
Name=Gnome Keyring Daemon
Comment[en_US]=Load gnome keyring daemon
Comment=Load gnome keyring daemon

然后我重新启动,Chrome/Chromium 恢复正常( source )。

重新启动后,我不断收到此消息“登录时密钥环未解锁”,并且必须输入密码。我通过关注 How can I stop being prompted to unlock the ‘default’ keyring on boot? 摆脱了它

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/14383.html,未经允许,请勿转载。