Ubuntu 22.04 환경에서 Firefox 실행 불가

사용 환경

  • 보드: D3G
  • OS 이미지: D3G-ubuntu-22.04-topst-weston_desktop-v1.0.0
  • Firefox 설치 방식: sudo apt install firefox
  • 실행 명령: firefox

문제 설명

Firefox 설치 후 실행 시 아래와 같은 오류 메시지가 출력되며 실행되지 않는 문제가 발생합니다.
$ firefox
/usr/bin/firefox: 12: xdg-settings: not found
Authorization required, but no authorization protocol specified
Error: cannot open display: :0

$ ./run_firefox.sh
topst@TOPST:~$ /usr/bin/firefox: 12: xdg-settings: not found
I2025-07-25 05:23:23.530941 instance.cpp:1394] Override Enabled Addons: {}
I2025-07-25 05:23:23.531064 instance.cpp:1395] Override Disabled Addons: {}
Authorization required, but no authorization protocol specified
I2025-07-25 05:23:23.536956 addonmanager.cpp:191] Loaded addon xcb
I2025-07-25 05:23:23.541167 addonmanager.cpp:191] Loaded addon quickphrase
I2025-07-25 05:23:23.541614 addonmanager.cpp:191] Loaded addon imselector
I2025-07-25 05:23:23.559494 addonmanager.cpp:191] Loaded addon keyboard
E2025-07-25 05:23:23.561288 addonloader.cpp:61] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2025-07-25 05:23:23.561356 addonmanager.cpp:188] Could not load addon dbus
I2025-07-25 05:23:23.561470 addonmanager.cpp:297] Unloading addon keyboard
I2025-07-25 05:23:23.561761 addonmanager.cpp:297] Unloading addon imselector
I2025-07-25 05:23:23.561819 addonmanager.cpp:297] Unloading addon quickphrase
I2025-07-25 05:23:23.562206 addonmanager.cpp:297] Unloading addon xcb
Authorization required, but no authorization protocol specified
Error: cannot open display: :0

설치 정보는 아래와 같습니다.
$ firefox --version
Mozilla Firefox 141.0

$ dpkg -l | grep firefox
ii firefox 1:1snap1-0ubuntu2 arm64 Transitional package - firefox → firefox snap

안녕하세요.

firefox는 보드에 연결된 Main display의 weston 화면에서
하단 왼쪽의 아이콘을 눌러 shell window 실행 하신 후, 그곳에서 직접 실행하시기를 권장 드립니다.

만약, firefox 내에서 youtube 등 오디오 출력을 사용하실 경우, root 계정이 아닌 topst 나 일반 계정을 사용하시되 아래와 같이 xhost 추가한 후 사용해 주세요.

$ su - topst
$ sudo xhost +
$ firefox

해보시고 추가 질문 있으시면 댓글 주세요.

고맙습니다.

안녕하세요.

혹시 아래와 같은 environment들이 존재하는지도 확인해 주세요.

DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/root
XDG_CONFIG_HOME=/usr/share/weston

d3-g 이미지 최초 설치 후, 바로 firefox를 설치해 실행이 확인이 되고 있습니다만,
그 이후에 설정을 바꾸시거나 한것이 있다면 알려주세요.

고맙습니다.

가이드 주신 것 적용하여 브라우저 동작 확인하였습니다.

topst@TOPST:~$ sudo xhost +

topst@TOPST:~$ export | grep XDG
declare -x XDG_DATA_DIRS=“/usr/local/share:/usr/share:/var/lib/snapd/desktop”
topst@TOPST:~$
topst@TOPST:~$ export XDG_CONFIG_HOME=/usr/share/weston
topst@TOPST:~$ export | grep XDG
declare -x XDG_CONFIG_HOME=“/usr/share/weston”
declare -x XDG_DATA_DIRS=“/usr/local/share:/usr/share:/var/lib/snapd/desktop”

topst@TOPST:~$ firefox