はじめに
WSL2
ではLinux GUI アプリを実行するできるようだ。
今回は、GNOME デスクトップ用のファイル マネージャーである、Nautilus
を入れて使ってみる。
https://learn.microsoft.com/ja-jp/windows/wsl/tutorials/gui-apps
環境
Windows 11 Professional
WSL2 Ubuntu 24.04 LTS
Nautilusのインストール
sudo apt install nautilus -y
ログ
sudo apt install nautilus -y ✔ │ 13:48:46
[sudo] password for kbushi:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm17t64
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
accountsservice acl apg aptdaemon aptdaemon-data avahi-daemon bluez bluez-obexd bolt colord colord-data
cracklib-runtime cups-pk-helper dconf-cli desktop-file-utils dmidecode dns-root-data dnsmasq-base
docbook-xml dosfstools evolution-data-server evolution-data-server-common fwupd fwupd-signed gcr gcr4
gdm3 geoclue-2.0 geocode-glib-common gir1.2-accountsservice-1.0 gir1.2-adw-1 gir1.2-atk-1.0
gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gck-2 gir1.2-gcr-4 gir1.2-gdesktopenums-3.0
gir1.2-gdkpixbuf-2.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebg-4.0 gir1.2-gnomebluetooth-3.0
gir1.2-gnomedesktop-4.0 gir1.2-graphene-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 gir1.2-gtk-4.0
gir1.2-gweather-4.0 gir1.2-harfbuzz-0.0 gir1.2-ibus-1.0 gir1.2-javascriptcoregtk-6.0 gir1.2-mutter-14
gir1.2-nm-1.0 gir1.2-nma4-1.0 gir1.2-notify-0.7 gir1.2-pango-1.0 gir1.2-polkit-1.0 gir1.2-rsvg-2.0
gir1.2-secret-1 gir1.2-soup-3.0 gir1.2-upowerglib-1.0 gir1.2-vte-2.91 gir1.2-webkit-6.0 gkbd-capplet
glib-networking glib-networking-common glib-networking-services gnome-bluetooth-3-common
gnome-bluetooth-sendto gnome-control-center gnome-control-center-data gnome-control-center-faces
gnome-keyring gnome-keyring-pkcs11 gnome-menus gnome-online-accounts gnome-remote-desktop
gnome-session-bin gnome-session-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell
gnome-shell-common gnome-startup-applications gnome-user-docs gstreamer1.0-gl gstreamer1.0-pipewire
gstreamer1.0-plugins-good gstreamer1.0-x gtk-update-icon-cache gvfs gvfs-backends gvfs-common
gvfs-daemons gvfs-libs heif-gdk-pixbuf heif-thumbnailer ibus ibus-data ibus-gtk ibus-gtk3 ibus-gtk4
ibverbs-providers iio-sensor-proxy im-config ipp-usb language-selector-common language-selector-gnome
libaa1 libabsl20220623t64 libaccountsservice0 libacl1 libadwaita-1-0 libatasmart4 libavahi-core7
libavahi-glib1 libayatana-appindicator3-1 libayatana-ido3-0.4-0 libayatana-indicator3-7
libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3
libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 libbluetooth3 libbytesize-common
libbytesize1 libcairo-script-interpreter2 libcamel-1.2-64t64 libcanberra-gtk3-0t64
libcanberra-gtk3-module libcanberra-pulse libcanberra0t64 libcolord-gtk4-1t64 libcolorhug2 libcrack2
libcue2 libdaemon0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdee-1.0-4 libdrm-amdgpu1 libdrm-common
libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libdv4t64 libebackend-1.2-11t64 libebook-1.2-21t64
libebook-contacts-1.2-4t64 libecal-2.0-3 libedata-book-1.2-27t64 libedata-cal-2.0-2t64
libedataserver-1.2-27t64 libedataserverui-1.2-4t64 libegl-mesa0 libei1 libeis1 libevdev2 libexempi8
libexif12 libexiv2-27 libflashrom1 libfreeaptx0 libfreerdp-server3-3 libfreerdp3-3 libftdi1-2 libfwupd2
libgail-common libgail18t64 libgbm1 libgck-1-0 libgck-2-2 libgcr-4-4 libgcr-base-3-1 libgcr-ui-3-1
libgdata-common libgdata22 libgdm1 libgee-0.8-2 libgeoclue-2-0 libgeocode-glib-2-0 libgexiv2-2 libgif7
libgjs0g libgl1-mesa-dri libglapi-mesa libglx-mesa0 libgnome-autoar-0-0 libgnome-bg-4-2t64
libgnome-bluetooth-3.0-13 libgnome-bluetooth-ui-3.0-13 libgnome-desktop-4-2t64 libgnome-rr-4-2t64
libgnomekbd-common libgnomekbd8 libgoa-1.0-0b libgoa-1.0-common libgoa-backend-1.0-2 libgpgme11t64
libgphoto2-6t64 libgphoto2-l10n libgphoto2-port12t64 libgraphene-1.0-0 libgsf-1-114 libgsf-1-common
libgsound0t64 libgssdp-1.6-0 libgstreamer-gl1.0-0 libgstreamer-plugins-good1.0-0 libgtk-3-0t64
libgtk-3-bin libgtk-3-common libgtk-4-1 libgtk-4-bin libgtk-4-common libgtk-4-media-gstreamer
libgtk2.0-0t64 libgtk2.0-bin libgtk2.0-common libgtop-2.0-11 libgtop2-common libgudev-1.0-0
libgupnp-1.6-0 libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 libgusb2 libgweather-4-0t64 libgweather-4-common
libharfbuzz-gobject0 libharfbuzz-icu0 libhyphen0 libibus-1.0-5 libibverbs1 libical3t64 libieee1284-3t64
libimobiledevice6 libinput-bin libinput10 libjavascriptcoregtk-4.1-0 libjavascriptcoregtk-6.0-1 libjcat1
libjson-glib-1.0-0 libjson-glib-1.0-common liblc3-1 libldacbt-abr2 libldacbt-enc2 libldb2 libllvm19
liblmdb0 liblua5.4-0 libmalcontent-0-0 libmanette-0.2-0 libmbim-glib4 libmbim-proxy libmbim-utils
libmediaart-2.0-0 libmm-glib0 libmozjs-115-0t64 libmsgraph-0-1 libmtdev1t64 libmtp-common libmtp-runtime
libmtp9t64 libmutter-14-0 libnautilus-extension4 libndp0 libnetfilter-conntrack3 libnfnetlink0 libnfs14
libnftables1 libnftnl11 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnm0 libnma-common
libnma-gtk4-0 libnma0 libnotify4 libnss-mdns libntfs-3g89t64 libnvme1t64 libpam-gnome-keyring
libpangoxft-1.0-0 libparted2t64 libpcap0.8t64 libpci3 libpcsclite1 libphonenumber8
libpipewire-0.3-modules libplist-2.0-4 libpolkit-agent-1-0 libpolkit-gobject-1-0 libportal-gtk4-1
libportal1 libprotobuf-c1 libprotobuf32t64 libproxy1v5 libpulse-mainloop-glib0 libpulse0
libpwquality-common libpwquality1 libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 librest-1.0-0
libroc0.3 librygel-core-2.8-0 librygel-db-2.8-0 librygel-renderer-2.8-0 librygel-server-2.8-0
libsane-common libsane1 libsbc1 libshout3 libsmbclient0 libsnapd-glib-2-1 libsnmp-base libsnmp40t64
libsoup-2.4-1 libsoup-3.0-0 libsoup-3.0-common libsoup2.4-common libspa-0.2-bluetooth libspeexdsp1
libstartup-notification0 libtag1v5 libtag1v5-vanilla libtalloc2 libtdb1 libteamdctl0 libtevent0t64
libtotem-plparser-common libtotem-plparser18 libtracker-sparql-3.0-0 libtss2-esys-3.0.2-0t64
libtss2-mu-4.0.1-0t64 libtss2-rc0t64 libtss2-sys1t64 libtss2-tcti-cmd0t64 libtss2-tcti-device0t64
libtss2-tcti-libtpms0t64 libtss2-tcti-mssim0t64 libtss2-tcti-spi-helper0t64 libtss2-tcti-swtpm0t64
libtss2-tctildr0t64 libudisks2-0 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity9
libupower-glib3 libusbmuxd6 libv4l-0t64 libv4lconvert0t64 libvolume-key1 libvte-2.91-0
libvte-2.91-common libwacom-common libwacom9 libwavpack1 libwbclient0 libwebkit2gtk-4.1-0
libwebkitgtk-6.0-4 libwhoopsie-preferences0 libwhoopsie0 libwinpr3-3 libwireplumber-0.4-0 libwoff1
libwrap0 libxatracker2 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-res0
libxcb-util1 libxcb-xkb1 libxcb-xv0 libxcvt0 libxfont2 libxkbcommon-x11-0 libxklavier16 libxslt1.1
libxvmc1 libyelp0 mesa-libgallium mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers
mobile-broadband-provider-info modemmanager mutter-common mutter-common-bin nautilus-data
network-manager network-manager-gnome network-manager-pptp ntfs-3g p11-kit p11-kit-modules parted
pinentry-gnome3 pipewire pipewire-alsa pipewire-audio pipewire-bin pipewire-pulse pkexec policykit-1
polkitd power-profiles-daemon ppp pptp-linux python3-aptdaemon python3-aptdaemon.gtk3widgets
python3-cairo python3-cups python3-cupshelpers python3-defer python3-ibus-1.0 rtkit rygel samba-libs
sane-airscan sane-utils sbsigntool secureboot-db sgml-data sound-theme-freedesktop switcheroo-control
system-config-printer-common system-config-printer-udev tecla tpm-udev tracker tracker-extract
tracker-miner-fs ubuntu-docs ubuntu-session ubuntu-wallpapers ubuntu-wallpapers-noble udisks2
update-inetd upower usb-modeswitch usb-modeswitch-data usbmuxd wamerican webp-pixbuf-loader whoopsie
whoopsie-preferences wireless-regdb wireplumber wpasupplicant x11-xkb-utils xcvt xdg-dbus-proxy
xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-gtk xfonts-base xserver-common
xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput
xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu
xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
xwayland yaru-theme-gnome-shell yelp yelp-xsl zenity zenity-common
Suggested packages:
avahi-autoipd pulseaudio-module-bluetooth colord-sensor-argyll docbook docbook-dsssl docbook-xsl
docbook-defguide evolution gir1.2-fwupd-2.0 orca libpam-fprintd libpam-sss libpam-pkcs11 gnome-software
| gnome-packagekit gnome-user-share gstreamer1.0-pulseaudio realmd usbguard gir1.2-malcontent-0
gir1.2-telepathyglib-0.12 gir1.2-telepathylogger-0.2 gnome-backgrounds gnome-shell-extension-prefs
chrome-gnome-shell samba-common wsdd ibus-clutter ibus-doc mdadm libcanberra-gtk0 libdv-bin oss-compat
exiv2 freerdp3-x11 gphoto2 libusbmuxd-tools avahi-autoipd | zeroconf nvme-cli libparted-dev
libparted-i18n pcscd pulseaudio hplip snmp-mibs-downloader unity-common libwacom-bin gstreamer1.0-libav
gstreamer1.0-plugins-bad gstreamer1.0-alsa eog gnome-sushi nautilus-extension-brasero totem
| mp3-decoder libteam-utils iptables network-manager-openconnect-gnome network-manager-openvpn-gnome
network-manager-vpnc-gnome network-manager-pptp-gnome parted-doc pinentry-doc pulseaudio-utils
polkitd-pkla gstreamer1.0-plugins-ugly rygel-playbin rygel-preferences rygel-ruih rygel-tracker tumbler
unpaper perlsgml w3-recs opensp libxml2-utils gnome-software python3-smbc ubuntu-wallpapers-karmic
ubuntu-wallpapers-lucid ubuntu-wallpapers-maverick ubuntu-wallpapers-natty ubuntu-wallpapers-oneiric
ubuntu-wallpapers-precise ubuntu-wallpapers-quantal ubuntu-wallpapers-raring ubuntu-wallpapers-saucy
ubuntu-wallpapers-trusty ubuntu-wallpapers-utopic ubuntu-wallpapers-vivid ubuntu-wallpapers-wily
ubuntu-wallpapers-xenial ubuntu-wallpapers-yakkety ubuntu-wallpapers-zesty ubuntu-wallpapers-artful
ubuntu-wallpapers-bionic ubuntu-wallpapers-cosmic ubuntu-wallpapers-disco ubuntu-wallpapers-eoan
ubuntu-wallpapers-focal ubuntu-wallpapers-groovy ubuntu-wallpapers-hirsute ubuntu-wallpapers-impish
ubuntu-wallpapers-jammy ubuntu-wallpapers-kinetic ubuntu-wallpapers-lunar ubuntu-wallpapers-mantic
btrfs-progs f2fs-tools nilfs-tools reiserfsprogs udftools udisks2-btrfs udisks2-lvm2 xfsprogs exfatprogs
comgt wvdial libspa-0.2-libcamera wireplumber-doc wpagui libengine-pkcs11-openssl xfonts-100dpi
| xfonts-75dpi xfonts-scalable xinput firmware-amd-graphics xserver-xorg-video-r128
xserver-xorg-video-mach64 firmware-misc-nonfree
The following NEW packages will be installed:
accountsservice acl apg aptdaemon aptdaemon-data avahi-daemon bluez bluez-obexd bolt colord colord-data
cracklib-runtime cups-pk-helper dconf-cli desktop-file-utils dmidecode dns-root-data dnsmasq-base
docbook-xml dosfstools evolution-data-server evolution-data-server-common fwupd fwupd-signed gcr gcr4
gdm3 geoclue-2.0 geocode-glib-common gir1.2-accountsservice-1.0 gir1.2-adw-1 gir1.2-atk-1.0
gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gck-2 gir1.2-gcr-4 gir1.2-gdesktopenums-3.0
gir1.2-gdkpixbuf-2.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebg-4.0 gir1.2-gnomebluetooth-3.0
gir1.2-gnomedesktop-4.0 gir1.2-graphene-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 gir1.2-gtk-4.0
gir1.2-gweather-4.0 gir1.2-harfbuzz-0.0 gir1.2-ibus-1.0 gir1.2-javascriptcoregtk-6.0 gir1.2-mutter-14
gir1.2-nm-1.0 gir1.2-nma4-1.0 gir1.2-notify-0.7 gir1.2-pango-1.0 gir1.2-polkit-1.0 gir1.2-rsvg-2.0
gir1.2-secret-1 gir1.2-soup-3.0 gir1.2-upowerglib-1.0 gir1.2-vte-2.91 gir1.2-webkit-6.0 gkbd-capplet
glib-networking glib-networking-common glib-networking-services gnome-bluetooth-3-common
gnome-bluetooth-sendto gnome-control-center gnome-control-center-data gnome-control-center-faces
gnome-keyring gnome-keyring-pkcs11 gnome-menus gnome-online-accounts gnome-remote-desktop
gnome-session-bin gnome-session-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell
gnome-shell-common gnome-startup-applications gnome-user-docs gstreamer1.0-gl gstreamer1.0-pipewire
gstreamer1.0-plugins-good gstreamer1.0-x gvfs gvfs-backends gvfs-common gvfs-daemons gvfs-libs
heif-gdk-pixbuf heif-thumbnailer ibus ibus-data ibus-gtk ibus-gtk3 ibus-gtk4 ibverbs-providers
iio-sensor-proxy im-config ipp-usb language-selector-common language-selector-gnome libaa1
libabsl20220623t64 libaccountsservice0 libadwaita-1-0 libatasmart4 libavahi-core7 libavahi-glib1
libayatana-appindicator3-1 libayatana-ido3-0.4-0 libayatana-indicator3-7 libblockdev-crypto3
libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3
libblockdev-swap3 libblockdev-utils3 libblockdev3 libbluetooth3 libbytesize-common libbytesize1
libcairo-script-interpreter2 libcamel-1.2-64t64 libcanberra-gtk3-0t64 libcanberra-gtk3-module
libcanberra-pulse libcanberra0t64 libcolord-gtk4-1t64 libcolorhug2 libcrack2 libcue2 libdaemon0
libdbusmenu-glib4 libdbusmenu-gtk3-4 libdee-1.0-4 libdv4t64 libebackend-1.2-11t64 libebook-1.2-21t64
libebook-contacts-1.2-4t64 libecal-2.0-3 libedata-book-1.2-27t64 libedata-cal-2.0-2t64
libedataserver-1.2-27t64 libedataserverui-1.2-4t64 libei1 libeis1 libevdev2 libexempi8 libexif12
libexiv2-27 libflashrom1 libfreeaptx0 libfreerdp-server3-3 libfreerdp3-3 libftdi1-2 libfwupd2
libgail-common libgail18t64 libgck-1-0 libgck-2-2 libgcr-4-4 libgcr-base-3-1 libgcr-ui-3-1
libgdata-common libgdata22 libgdm1 libgee-0.8-2 libgeoclue-2-0 libgeocode-glib-2-0 libgexiv2-2 libgif7
libgjs0g libgnome-autoar-0-0 libgnome-bg-4-2t64 libgnome-bluetooth-3.0-13 libgnome-bluetooth-ui-3.0-13
libgnome-desktop-4-2t64 libgnome-rr-4-2t64 libgnomekbd-common libgnomekbd8 libgoa-1.0-0b
libgoa-1.0-common libgoa-backend-1.0-2 libgpgme11t64 libgphoto2-6t64 libgphoto2-l10n
libgphoto2-port12t64 libgraphene-1.0-0 libgsf-1-114 libgsf-1-common libgsound0t64 libgssdp-1.6-0
libgstreamer-gl1.0-0 libgstreamer-plugins-good1.0-0 libgtk-4-1 libgtk-4-bin libgtk-4-common
libgtk-4-media-gstreamer libgtk2.0-0t64 libgtk2.0-bin libgtk2.0-common libgtop-2.0-11 libgtop2-common
libgudev-1.0-0 libgupnp-1.6-0 libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 libgusb2 libgweather-4-0t64
libgweather-4-common libharfbuzz-gobject0 libharfbuzz-icu0 libhyphen0 libibus-1.0-5 libibverbs1
libical3t64 libieee1284-3t64 libimobiledevice6 libinput-bin libinput10 libjavascriptcoregtk-4.1-0
libjavascriptcoregtk-6.0-1 libjcat1 libjson-glib-1.0-0 libjson-glib-1.0-common liblc3-1 libldacbt-abr2
libldacbt-enc2 libldb2 libllvm19 liblmdb0 liblua5.4-0 libmalcontent-0-0 libmanette-0.2-0 libmbim-glib4
libmbim-proxy libmbim-utils libmediaart-2.0-0 libmm-glib0 libmozjs-115-0t64 libmsgraph-0-1 libmtdev1t64
libmtp-common libmtp-runtime libmtp9t64 libmutter-14-0 libnautilus-extension4 libndp0
libnetfilter-conntrack3 libnfnetlink0 libnfs14 libnftables1 libnftnl11 libnl-3-200 libnl-genl-3-200
libnl-route-3-200 libnm0 libnma-common libnma-gtk4-0 libnma0 libnotify4 libnss-mdns libntfs-3g89t64
libnvme1t64 libpam-gnome-keyring libpangoxft-1.0-0 libparted2t64 libpcap0.8t64 libpci3 libpcsclite1
libphonenumber8 libpipewire-0.3-modules libplist-2.0-4 libportal-gtk4-1 libportal1 libprotobuf-c1
libprotobuf32t64 libproxy1v5 libpulse-mainloop-glib0 libpwquality-common libpwquality1 libqmi-glib5
libqmi-proxy libqmi-utils libqrtr-glib0 librest-1.0-0 libroc0.3 librygel-core-2.8-0 librygel-db-2.8-0
librygel-renderer-2.8-0 librygel-server-2.8-0 libsane-common libsane1 libsbc1 libshout3 libsmbclient0
libsnapd-glib-2-1 libsnmp-base libsnmp40t64 libsoup-2.4-1 libsoup-3.0-0 libsoup-3.0-common
libsoup2.4-common libspa-0.2-bluetooth libspeexdsp1 libstartup-notification0 libtag1v5 libtag1v5-vanilla
libtalloc2 libtdb1 libteamdctl0 libtevent0t64 libtotem-plparser-common libtotem-plparser18
libtracker-sparql-3.0-0 libtss2-esys-3.0.2-0t64 libtss2-mu-4.0.1-0t64 libtss2-rc0t64 libtss2-sys1t64
libtss2-tcti-cmd0t64 libtss2-tcti-device0t64 libtss2-tcti-libtpms0t64 libtss2-tcti-mssim0t64
libtss2-tcti-spi-helper0t64 libtss2-tcti-swtpm0t64 libtss2-tctildr0t64 libudisks2-0
libunity-protocol-private0 libunity-scopes-json-def-desktop libunity9 libupower-glib3 libusbmuxd6
libv4l-0t64 libv4lconvert0t64 libvolume-key1 libvte-2.91-0 libvte-2.91-common libwacom-common libwacom9
libwavpack1 libwbclient0 libwebkit2gtk-4.1-0 libwebkitgtk-6.0-4 libwhoopsie-preferences0 libwhoopsie0
libwinpr3-3 libwireplumber-0.4-0 libwoff1 libwrap0 libxatracker2 libxcb-icccm4 libxcb-image0
libxcb-keysyms1 libxcb-render-util0 libxcb-res0 libxcb-util1 libxcb-xkb1 libxcb-xv0 libxcvt0 libxfont2
libxkbcommon-x11-0 libxklavier16 libxslt1.1 libxvmc1 libyelp0 mesa-libgallium
mobile-broadband-provider-info modemmanager mutter-common mutter-common-bin nautilus nautilus-data
network-manager network-manager-gnome network-manager-pptp ntfs-3g p11-kit p11-kit-modules parted
pinentry-gnome3 pipewire pipewire-alsa pipewire-audio pipewire-bin pipewire-pulse pkexec policykit-1
power-profiles-daemon ppp pptp-linux python3-aptdaemon python3-aptdaemon.gtk3widgets python3-cairo
python3-cups python3-cupshelpers python3-defer python3-ibus-1.0 rtkit rygel samba-libs sane-airscan
sane-utils sbsigntool secureboot-db sgml-data sound-theme-freedesktop switcheroo-control
system-config-printer-common system-config-printer-udev tecla tpm-udev tracker tracker-extract
tracker-miner-fs ubuntu-docs ubuntu-session ubuntu-wallpapers ubuntu-wallpapers-noble udisks2
update-inetd upower usb-modeswitch usb-modeswitch-data usbmuxd wamerican webp-pixbuf-loader whoopsie
whoopsie-preferences wireless-regdb wireplumber wpasupplicant x11-xkb-utils xcvt xdg-dbus-proxy
xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-gtk xfonts-base xserver-common
xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput
xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu
xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
xwayland yaru-theme-gnome-shell yelp yelp-xsl zenity zenity-common
The following packages will be upgraded:
gtk-update-icon-cache libacl1 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libdrm2 libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 libgtk-3-0t64 libgtk-3-bin
libgtk-3-common libpolkit-agent-1-0 libpolkit-gobject-1-0 libpulse0 mesa-va-drivers mesa-vdpau-drivers
mesa-vulkan-drivers polkitd
23 upgraded, 470 newly installed, 0 to remove and 95 not upgraded.
Need to get 300 MB of archives.
After this operation, 952 MB of additional disk space will be used.
長いのでインストールパッケージのみ抜粋
Nautilusを使う
nautilus
** Message: 13:51:04.508: Connecting to org.freedesktop.Tracker3.Miner.Files
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI3: Screen seems not DRI3 capable
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
少し待つと以下のログも流れた。
ログ
** (org.gnome.Nautilus:10174): WARNING **: 13:51:52.747: Unable to get contents of the bookmarks file: Error opening file /home/kbushi/.gtk-bookmarks: No such file or directory
** (org.gnome.Nautilus:10174): WARNING **: 13:51:52.747: Unable to get contents of the bookmarks file: Error opening file /home/kbushi/.gtk-bookmarks: No such file or directory
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.487: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.487: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.538: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.538: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.573: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.573: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.737: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.737: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.773: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.773: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:53.809: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:53.810: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:54.109: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:54.109: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:51:54.145: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:51:54.145: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:52:16.332: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:52:16.332: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:52:16.368: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:52:16.368: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:55:05.427: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:55:05.427: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:55:05.464: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:55:05.464: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:55:41.361: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:55:41.361: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10174): GLib-GIO-CRITICAL **: 13:55:41.400: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10174): GLib-CRITICAL **: 13:55:41.400: g_str_match_string: assertion 'potential_hit != NULL' failed
error: ZINK: failed to choose pdev
と出て、Nautilus
が起動しないようだ。
調査をしてみる。
WSL の GUI サポートが有効か確認
一つずつ問題をつぶしていく。
echo $DISPLAY
echo $DISPLAY
:0
:0
または:1
のような出力がある場合 → GUI サポートは有効。- 何も表示されない場合 → X11 の設定が必要。
GUIサポートは有効となっている。
Ubuntu に Mesa ドライバーの最新の安定バージョンをインストールする
- MESA and glx errors when running glxinfo Ubuntu 24.04
https://askubuntu.com/questions/1516040/mesa-and-glx-errors-when-running-glxinfo-ubuntu-24-04
この辺っぽいので、MESA
を入れてみる。
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade
環境変数とかいじらなくてもエラーが出なくなった。
nautilus ✔ │ 14:23:25
** Message: 14:26:18.592: Connecting to org.freedesktop.Tracker3.Miner.Files
↓だが、エラーはずっと出るようだ。
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shmのエラーを解消する
- MESA ERROR
https://github.com/microsoft/wslg/issues/1283 https://github.com/microsoft/wslg/issues/1244
この issue
と全く同じ現象なので、これを見てみる。
ln -sf /mnt/wslg/runtime-dir/wayland* $XDG_RUNTIME_DIR/
※そもそも実行ができなかった。
よく issue
を見てみると、ここのディレクトリ(/mnt/wslg/runtime-dir/
)は ubuntu
ユーザしか見られないようだった。
そのため、sudo su - ubuntu
でubuntu
ユーザにスイッチして起動してみる。
sudo su - ubuntu
ln -sf /mnt/wslg/runtime-dir/wayland* $XDG_RUNTIME_DIR/
nautilus

※kbushi
ユーザなど作成したユーザで実行するにはどうすればという課題が残った…。
上記以外に試行錯誤した結果 (不要な手順だった)
export GALLIUM_DRIVER=d3d12を指定して再実行する
- WSL2 MESA: error: ZINK: failed to choose pdev after glxinfo -B
https://askubuntu.com/questions/1530856/wsl2-mesa-error-zink-failed-to-choose-pdev-after-glxinfo-b
にある、export GALLIUM_DRIVER=d3d12
を指定して再実行をしてみる。
ログ
** Message: 13:56:44.645: Connecting to org.freedesktop.Tracker3.Miner.Files
libEGL warning: DRI3: Screen seems not DRI3 capable
** (org.gnome.Nautilus:10425): WARNING **: 13:57:33.110: Unable to get contents of the bookmarks file: Error opening file /home/kbushi/.gtk-bookmarks: No such file or directory
** (org.gnome.Nautilus:10425): WARNING **: 13:57:33.111: Unable to get contents of the bookmarks file: Error opening file /home/kbushi/.gtk-bookmarks: No such file or directory
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.360: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.360: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.385: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.385: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.483: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.483: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.623: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.623: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.658: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.658: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:33.693: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:33.693: g_str_match_string: assertion 'potential_hit != NULL' failed
MESA: error: Failed to attach to x11 shm
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:42.576: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:42.576: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:57:42.603: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:57:42.603: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:58:16.417: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:58:16.417: g_str_match_string: assertion 'potential_hit != NULL' failed
(org.gnome.Nautilus:10425): GLib-GIO-CRITICAL **: 13:58:16.456: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
(org.gnome.Nautilus:10425): GLib-CRITICAL **: 13:58:16.456: g_str_match_string: assertion 'potential_hit != NULL' failed
変わらずエラーになる。
だがエラー分は少し変化しており、error: ZINK: failed to choose pdev
のエラーは出ていない。
必要なパッケージのインストール
sudo apt update && sudo apt install -y dbus-x11 x11-apps mesa-utils
dbus-x11
→ Nautilus などの GTK アプリが D-Bus を使うために必要x11-apps
→ X11 の動作確認用mesa-utils
→ OpenGL (MESA) のトラブルシューティング用
export LIBGL_ALWAYS_INDIRECT=1を設定
export GALLIUM_DRIVER=d3d12
export LIBGL_ALWAYS_INDIRECT=1
nautilus &
これでもダメ…。
起動はするけど、ウィンドウの影だけあるような感じになる。
NVIDIAドライバーを入れる
sudo apt-get install libnvidia-egl-wayland1
参考
Linux 用 Windows サブシステム で Linux GUI アプリを実行する
https://learn.microsoft.com/ja-jp/windows/wsl/tutorials/gui-appsMESA and glx errors when running glxinfo Ubuntu 24.04
https://askubuntu.com/questions/1516040/mesa-and-glx-errors-when-running-glxinfo-ubuntu-24-04Ubuntu 24.04 Wayland falling back to X11
https://github.com/microsoft/wslg/issues/1244WSL2 MESA: error: ZINK: failed to choose pdev after glxinfo -B
https://askubuntu.com/questions/1530856/wsl2-mesa-error-zink-failed-to-choose-pdev-after-glxinfo-bWSLにGUIアプリを入れてWindowsから使う
https://note.com/irid192/n/n2c6f390769b4
おわりに
nautilus
を実行するだけだったのにかなり時間がかかった。
自分で作ったユーザで実行はできなかったので、それだけ課題として残った…。