0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 26.04でアイコンが何故か表示できなくなった

0
Last updated at Posted at 2026-05-22

トラブったので、備忘録

スタートメニュー内のアイコンやディスクトップの壁紙が何故か読めなくなったのでそのメモ

以下コマンドを実行する

sudo journalctl -fx | grep -i apparmor

以下のようなログがでる

 5月 22 07:37:26 karosu-gametab systemd[1]: Starting apparmor.service - Load App
Armor profiles...
 5月 22 07:37:26 karosu-gametab apparmor.systemd[1463]: Restarting AppArmor
 5月 22 07:37:26 karosu-gametab apparmor.systemd[1463]: Reloading AppArmor profi
les
 5月 22 07:37:26 karosu-gametab apparmor.systemd[1529]: Skipping profile in /etc
/apparmor.d/disable: bwrap-userns-restrict
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:2)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="brave" p
id=1527 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:3)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="balena-e
tcher" pid=1523 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:4)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="buildah"
 pid=1528 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:5)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="chrome" 
pid=1533 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:6)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="ch-check
ns" pid=1531 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.427:7)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="QtWebEng
ineProcess" pid=1519 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.428:8)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name="1passwor
d" pid=1516 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.428:9)
: apparmor="STATUS" operation="profile_load" profile="unconfined" name=4D6F6E676
F444220436F6D70617373 pid=1518 comm="apparmor_parser"
 5月 22 07:37:26 karosu-gametab kernel: audit: type=1400 audit(1779403046.428:10
): apparmor="STATUS" operation="profile_load" profile="unconfined" name="cam" pi
d=1530 comm="apparmor_parser"

自分は、以下のようにファイルを作成して再起動したら解決

/etc/apparmor.d/bwrap
abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}

Geminiに聞いたら以下の結果をもらった

bwrap-userns-restrict(bubblewrapのユーザー名前空間を制限するプロファイル)が、/etc/apparmor.d/disable フォルダにあるため 「スキップされた(適用されなかった)」 と出ています。

一見すると「制限がスキップされたなら、動くはずでは?」と思ってしまいますが、Ubuntu 24.04 / 26.04では逆になります。
現在のUbuntuでは、システム全体で「非特権ユーザー名前空間の作成を原則禁止する」という強力なカーネル側のセキュリティ制限がデフォルトで有効になっています。

そのため、通常は「bwrap にだけは例外的に名前空間の作成を許可する」というプロファイル(防壁に穴を空けるための設定)が動く必要があるのですが、それが無効化(disable)フォルダに隔離されていたため、システムは 例外を認めず一律で bwrap をブロックしてしまった、

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?