Snap Chromium 错误:process_singleton:绑定失败

Snap Chromium 错误:process_singleton:绑定失败

在 ubuntu 中启动通过 snap 安装的 chromium 时,我得到了

ERROR:process_singleton_posix.cc(1080)] Failed to bind() /tmp/.org.chromium.Chromium SingletonSocket: Operation not permitted

它与下面的不同,因为我甚至没有~/.config文件夹。

以及/tmp文件夹 LGTM:

$ stat /tmp
  File: /tmp
  Size: 12288       Blocks: 24         IO Block: 4096   directory
Device: 10302h/66306d   Inode: 1551        Links: 15
Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)

# creating the folder myself OK too:
$ mkdir /tmp/.org.chromium.Chromium.p4CAxj
$ rmdir /tmp/.org.chromium.Chromium.p4CAxj

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy

完整错误日志:

[40378:40378:0202/162457.837469:ERROR:process_singleton_posix.cc(1080)] Failed to bind() /tmp/.org.chromium.Chromium.p4CAxj/SingletonSocket: Operation not permitted (1)
[40378:40378:0202/162457.838481:ERROR:chrome_main_delegate.cc(555)] 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.

相关内容