更改主机名后 Google Chrome 无法启动

更改主机名后 Google Chrome 无法启动

我尝试在终端中启动 Google Chrome 多次,但一直收到以下消息:

... :ERROR:process_singleton_linux.cc(309)] The profile appears to be in use by another Google Chrome process (8629) on another computer ("previous name of the computer").  Chrome has locked the profile so that it doesn't get corrupted.  If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome.
... :ERROR:simple_message_box_views.cc(208)] Unable to show a dialog outside the UI thread message loop: Google Chrome - The profile appears to be in use by another Google Chrome process (8629) on another computer ("previous name of the computer").  Chrome has locked the profile so that it doesn't get corrupted.  If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome.

有什么建议么?

提前致谢。

答案1

这看起来像Chrome 错误 #367048 - 更改主机名后无法启动 Chrome, 尝试:

rm -rf ~/.config/google-chrome/Singleton*

答案2

如果您使用的是较新的 Ubuntu(例如 20.04),则必须删除不同路径中的文件,因为您可能使用了 snap 包:

rm -rf ~/snap/chromium/common/chromium/Singleton*

答案3

在 ubuntu 22.o4 上更改主机名后,brave 无法启动,也遇到了同样的问题

解决方案

移除个人资料锁定:导航到存储 Brave 个人资料的目录。此位置因操作系统而异:

On Windows: C:\Users\YourUsername\AppData\Local\BraveSoftware\Brave-Browser\User Data\
On macOS: ~/Library/Application Support/BraveSoftware/Brave-Browser/
On Linux: ~/.config/BraveSoftware/Brave-Browser/

查找名为 LOCK 或 lockfile 的文件并将其删除。Brave 使用此文件来锁定配置文件。

这对我有用 rm -rf SingletonLock

答案4

我试过了rm,但没有用,所以我检查了一下

ls into ~/.config/google 

ls ~/.config/google-chrome-beta/ 

并没有发现单例文件,但以下工作,因为它是一个新系统,并ls发现文件

rm -rf ~/snap/chromium/common/chromium/Singleton*

相关内容