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
相关产品推荐
相关产品推荐

