Google Chrome 无法启动

Google Chrome 无法启动

google-chrome这是我在终端中运行时出现的错误:

[0505/065554:ERROR:nss_util.cc(94)] Failed to create
/home/pipi/.pki/nssdb directory. [0505/065554:ERROR:nss_util.cc(94)]
Failed to create /home/pipi/.pki/nssdb directory.
[3545:3545:0505/065557:ERROR:nss_util.cc(94)] Failed to create
/home/pipi/.pki/nssdb directory.
[3545:3545:0505/065558:ERROR:process_singleton_posix.cc(417)] readlink
failed: Permission denied
[3545:3545:0505/065558:ERROR:process_singleton_posix.cc(253)]
readlink(/home/pipi/.config/google-chrome/SingletonLock) failed:
Permission denied
[3545:3545:0505/065558:ERROR:process_singleton_posix.cc(253)]
readlink(/home/pipi/.config/google-chrome/SingletonLock) failed:
Permission denied
[3545:3545:0505/065558:ERROR:process_singleton_posix.cc(277)] Failed
to create /home/pipi/.config/google-chrome/SingletonLock: Permission
denied [3545:3545:0505/065558:ERROR:process_singleton_posix.cc(417)]
readlink failed: Permission denied
[3545:3545:0505/065558:ERROR:process_singleton_posix.cc(253)]
readlink(/home/pipi/.config/google-chrome/SingletonLock) failed:
Permission denied
[3545:3545:0505/065558:ERROR:chrome_browser_main.cc(1213)] Failed to
create a ProcessSingleton for your profile directory. This means that
running multiple instances would start multiple browser processes
rather than opening a new window in the existing process. Aborting now
to avoid profile corruption.

答案1

更正所有权,假设pipi是您的用户名:

chown -R pipi:pipi /home/pipi

以及所有文件夹的权限:

find /home/pipi -type d -print0 | xargs -0 chmod 775

775- 这些是您创建新文件夹时的默认权限。

答案2

很多人说删除~/.gtkrc-2.0就可以解决问题。有时权限才是罪魁祸首。我也遇到了同样的问题,但都无济于事!卸载并安装 chrome 也无济于事。

事实证明,当 Chrome 崩溃时用户数据目录可能会损坏。因此,为了修复它,我做了以下操作:

  1. 卸载 Chromeapt-get purge google-chrome-stable
  2. 安装 chromehttp://chrome.google.com
  3. 删除缓存和配置文件夹。 rm -rf /home/<<your username>>/.config/google-chrome/rm -rf /home/<<your username>>/.cache/google-chrome/
  4. 启动 Chrome 并尽情享受吧!

答案3

  1. 删除google-chromechromium文件夹.config

    rm -rf ~/.config/google-chrome/
    
  2. 重命名google-chrome-backupchromium-backup

    mv ~/.config/chromium-backup chromium
    
  3. 重新启动 Chrome 或 Chromium。

相关内容