firefoxのインストール
問題
環境はubuntu23.10. firefoxを立ち上げるとこんなエラーが出てきて日本語入力(fcitx5)が出来ない.
[Parent 19490, Main Thread] WARNING: Create input context failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.277" (uid=1000 pid=19490 comm="/snap/firefox/3728/usr/lib/firefox/firefox" label="snap.firefox.firefox (enforce)") interface="org.freedesktop.IBus" member="CreateInputContext" error name="(unset)" requested_reply="0" destination="org.freedesktop.IBus" (uid=1000 pid=2289 comm="fcitx5" label="unconfined").: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187 (firefox:19490): IBUS-WARNING **: 14:31:23.240: Create input context failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.277" (uid=1000 pid=19490 comm="/snap/firefox/3728/usr/lib/firefox/firefox" label="snap.firefox.firefox (enforce)") interface="org.freedesktop.IBus" member="CreateInputContext" error name="(unset)" requested_reply="0" destination="org.freedesktop.IBus" (uid=1000 pid=2289 comm="fcitx5" label="unconfined"). [Parent 19490, Main Thread] WARNING: Create input context failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.277" (uid=1000 pid=19490 comm="/snap/firefox/3728/usr/lib/firefox/firefox" label="snap.firefox.firefox (enforce)") interface="org.freedesktop.IBus" member="CreateInputContext" error name="(unset)" requested_reply="0" destination="org.freedesktop.IBus" (uid=1000 pid=2289 comm="fcitx5" label="unconfined").: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187 (firefox:19490): IBUS-WARNING **: 14:31:23.241: Create input context failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.277" (uid=1000 pid=19490 comm="/snap/firefox/3728/usr/lib/firefox/firefox" label="snap.firefox.firefox (enforce)") interface="org.freedesktop.IBus" member="CreateInputContext" error name="(unset)" requested_reply="0" destination="org.freedesktop.IBus" (uid=1000 pid=2289 comm="fcitx5" label="unconfined").
解決策
ubuntuのfirefoxはsnap版を入れるらしい.解決できそうな感じのページを見つけたが時間をかけたくないので,手っ取り早く解決するために,snap版を捨てて,バイナリをダウンロードした. 以下のページからlinux用のバイナリをダウンロードする. www.mozilla.org ダウンロードして,/opt に入れて,リンクしておけば良い.
tar xjf firefox-xx.x.tar.bz2 sudo mv firefox /opt/ sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox