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 崩溃时用户数据目录可能会损坏。因此,为了修复它,我做了以下操作:
- 卸载 Chrome
apt-get purge google-chrome-stable
- 安装 chromehttp://chrome.google.com
- 删除缓存和配置文件夹。
rm -rf /home/<<your username>>/.config/google-chrome/
和rm -rf /home/<<your username>>/.cache/google-chrome/
- 启动 Chrome 并尽情享受吧!
答案3
删除
google-chrome
或chromium
文件夹.config
rm -rf ~/.config/google-chrome/
重命名
google-chrome-backup
或chromium-backup
mv ~/.config/chromium-backup chromium
重新启动 Chrome 或 Chromium。