You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.4 LTS上Snap版Firefox及Snap应用无法启动的问题求助

Ubuntu 22.04.4 LTS上Snap版Firefox及Snap应用无法启动的问题求助

大家好,我目前在用Ubuntu 22.04.4 LTS(内核为GNU/Linux 6.5.0-1021-oracle aarch64),通过Snap安装了Firefox,现在遇到了启动故障,具体情况如下:

问题描述

  • 以root用户从命令行启动时:
    执行命令 $ firefox,弹出错误:
Client is not authorized to connect to ServerError: cannot open display: :1.0
  • 以普通用户启动时:
    执行命令 $ firefox,出现两条警告/错误信息:
2024/05/08 19:18:26.344861 cmd_run.go:1081: WARNING: cannot start document portal: Expected portal at
 "/run/user/1001/doc", got "/home/ubuntu/.cache/doc"
/user.slice/user-0.slice/session-333.scope is not a snap cgroup

已尝试的排查步骤

针对root用户的错误,我知道和DISPLAY变量有关——当前我是通过VNC连接的,DISPLAY变量是正确的。我尝试过执行以下命令:

$ xhost +SI:localuser:$USER

得到的反馈是:

localuser:root being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  109 (X_ChangeHosts)
Value in failed request:  0x5
Serial number of failed ...

备注:内容来源于stack exchange,提问作者prince royce

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 07:58:04