![浏览器(Opera、Chromium...)开始导致共享内存出现权限被拒绝 (13) 错误](https://linux22.com/image/210723/%E6%B5%8F%E8%A7%88%E5%99%A8%EF%BC%88Opera%E3%80%81Chromium...%EF%BC%89%E5%BC%80%E5%A7%8B%E5%AF%BC%E8%87%B4%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98%E5%87%BA%E7%8E%B0%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D%20(13)%20%E9%94%99%E8%AF%AF.png)
使用 Manjaro / Arch linux,我想安装另一个浏览器。但是,无论我安装 Opera 还是 Chromium(通过 pacman),在执行它时(从应用程序启动器和 shell)我总是会收到错误。
跑步铬我从外壳中得到:
$ chromium
[11452:11452:0914/225931.419271:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.5FNz4h failed: Permission denied (13)
[11452:11452:0914/225931.419316:ERROR:platform_shared_memory_region_posix.cc(220)] Unable to access(W_OK|X_OK) /dev/shm: Permission denied (13)
[11452:11452:0914/225931.419320:FATAL:platform_shared_memory_region_posix.cc(222)] This is frequently caused by incorrect permissions on /dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix.
[0914/225931.424145:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0914/225931.424372:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0914/225931.424389:ERROR:elf_dynamic_array_reader.h(64)] tag not found
zsh: trace trap (core dumped) chromium
类似的错误歌剧:
$ opera
[11882:11882:0914/230407.927506:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.VS4HRD failed: Permission denied (13)
[11882:11882:0914/230407.927725:ERROR:platform_shared_memory_region_posix.cc(220)] Unable to access(W_OK|X_OK) /dev/shm: Permission denied (13)
[11882:11882:0914/230407.927735:FATAL:platform_shared_memory_region_posix.cc(222)] This is frequently caused by incorrect permissions on /dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix.
Discarded=1
zsh: illegal hardware instruction (core dumped) opera
Discarded=1
然而,默认安装的 Firefox 工作正常(因此没有网络问题或此类问题)。我可以想象这是一个配置/安全问题(如 Apparmor 等)。
有任何想法吗?
答案1
看来重启解决了问题。然而我不知道发生了什么 - 以及为什么它似乎只发生在浏览器上。