![Chronium 登录错误](https://linux22.com/image/862516/Chronium%20%E7%99%BB%E5%BD%95%E9%94%99%E8%AF%AF.png)
每次启动 Chromium 时都会得到:
您的个人资料无法正确打开。(在许多不同的弹出窗口中重复出现 - 准确地说是 6 个)。
然后我必须(再次)登录。
请帮忙。
以下是我从命令行运行 chromium 时出现的更多信息:
chromium-browser
[9784:9810:0924/204936:ERROR:connection.cc(1060)] Web sqlite error 5, errno 0: database is locked, sql: PRAGMA journal_mode = PERSIST
[9784:9784:0924/204936:ERROR:connection.cc(1060)] sqlite error 5, errno 0: database is locked, sql: PRAGMA journal_mode = PERSIST
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[9784:9810:0924/204937:ERROR:connection.cc(1060)] Web sqlite error 5, errno 0: database is locked, sql: PRAGMA cache_size=32
[9784:9810:0924/204937:ERROR:connection.cc(1060)] Web sqlite error 5, errno 0: database is locked, sql: CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR)
[9784:9810:0924/204937:ERROR:web_data_service_backend.cc(54)] Cannot initialize the web database: 1
[9784:9784:0924/204937:ERROR:connection.cc(1060)] sqlite error 5, errno 0: database is locked, sql: PRAGMA cache_size=32
[9784:9784:0924/204937:ERROR:connection.cc(1060)] sqlite error 5, errno 0: database is locked, sql: CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR)
[9784:9784:0924/204937:ERROR:password_store_factory.cc(135)] Could not initialize login database.
[9784:9784:0924/204937:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[9784:9784:0924/204937:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[9784:9784:0924/204937:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[9784:9784:0924/204937:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[9784:9784:0924/204941:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
[9784:9784:0924/204941:ERROR:desktop_window_tree_host_x11.cc(769)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
答案1
我通过关闭 chrome 然后运行解决了这个问题:
find ~/.config/google-chrome/ -name LOCK -delete
答案2
首先检查没有进程正在使用您的配置文件。关闭所有 Chromium 窗口,然后在终端运行
$ killall -9 chromium-browser
然后重新启动 Chromium。如果仍然出现相同的错误,则可能是您的配置文件已损坏。您可以创建一个新的配置文件,关闭 Chromium 并运行
$ mv ~/.config/chromium ~/chromium_profile_backup
这会将您当前的配置文件移动到您的主文件夹(您可以稍后决定如何处理它)。下次启动 Chromium 时,它将创建一个新的配置文件。
请注意,您的下载历史记录、书签(如果未在线同步)、历史记录等将会消失。
答案3
我也遇到了同样的问题。执行以下命令修复:
cd ~/.config/chromium
find . -type f -exec file {} + | grep -i SQLite | cut -d: -f1 | while read FILE; do
fuser -k -TERM "$FILE"
done