Ubuntu 22.04 中的 Firefox 权限被拒绝错误

Ubuntu 22.04 中的 Firefox 权限被拒绝错误

操作系统是 Ubuntu 22.04。此操作系统安装高度定制。它具有 ZFS 加密文件系统和 RAID。如果您想查看详细信息,可以在此处下载:

https://www.mediafire.com/file/2w8mdb96tbzslub/Ubuntu_22.04_Root_on_ZFS_Encryption.odt/file

我现在遇到的问题是,当从 Konsole 终端仿真器启动 Firefox 时,会出现许多权限被拒绝的错误。这些错误粘贴在下面。虽然 Firefox 确实可以运行,而且我可以用它浏览网页,但这些错误是不能忽略的。显然 Firefox 没有必要的权限。它需要什么权限?通常如何获得这些权限?应该如何处理它们?

错误:

$ firefox
2022/07/19 17:59:48.273436 cmd_run.go:1053: WARNING: cannot start document portal: Expected portal at "/run/user/1000/doc", got "/home/stephen/.cache/doc"
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gtk-doc /usr/share/gtk-doc none bind,ro 0 0): cannot open directory "/var/lib": permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied
mkdir: cannot create directory '/run/user/1000': Permission denied
Gtk-Message: 18:00:12.253: Failed to load module "colorreload-gtk-module"
Gtk-Message: 18:00:12.253: Failed to load module "window-decorations-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

(firefox:16099): dconf-CRITICAL **: 18:00:13.676: unable to create directory '/run/user/1000/snap.firefox/dconf': Permission denied.  dconf will not work properly.

(firefox:16099): dconf-WARNING **: 18:00:13.676: unable to open file '/etc/dconf/db/site': Failed to open file ?/etc/dconf/db/site?: open() failed: No such file or directory; expect degraded performance

(firefox:16099): dconf-CRITICAL **: 18:00:13.676: unable to create directory '/run/user/1000/snap.firefox/dconf': Permission denied.  dconf will not work properly.

答案1

这些问题已经解决。我在这个帖子中描述了如何解决这些问题: http://forums.mozillazine.org/viewtopic.php?f=38&t=3097766

我打开此线程时链接到的安装文档已在提供的链接中更新。

相关内容