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?

Lubuntu を WSLにインストール

Last updated at Posted at 2025-12-15

Lubuntu のインストール

Lubuntu を WSL にインストールしてみようと思ったら、最初に Ubuntu を入れて、Lubuntu デスクトップをインストールせよという話が出てきて、単純なインストールはさせてはくれないようです。Gentoo の時は、公式の tar から WSL にインストールをしましたが、今回はどうしましょう?

Lubuntu の ISO イメージを使う

Lubuntu には公式の ISO イメージがあるので、それを使うことにします。

ISO イメージダウンロード

ISO イメージをまずダウンロードします。

WSL Ubuntu で tar イメージを作成する

Windows で tar を作成すると、以前やったときにもあったのですが、権限関係がおかしくなって、うまく動かないことがあるので、Ubuntu 環境で行います。

$ sudo mount -o loop lubuntu-24.04.3-desktop-amd64.iso /mnt/iso
$ sudo unsquashfs /mnt/iso/casper/filesystem.squashfs
$ cd squashfs-root
$ sudo tar -cvf ../lubuntu-rootfs.tar .

WSL でインポートする

WSL で実行するためには、tar ファイルをインポートしないといけません。

> wsl --import Lubuntu C:\wsl\lubuntu C:\PATH\to\lubuntu-rootfs.tar
この操作を正しく終了しました。

Lubuntu 起動

起動してみます

> >wsl -d Lubuntu
root@Penpen:/mnt/c/Users/penpen# # uname -a
Linux Penpen 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

無事起動できましたね。

ペンギンマスコットの Lenny

image.png

まとめ

ということで、Lubuntu の WSL へのインストールをやってみました。少し迂遠な方法でのインストールですが、うまく動いてよかったです。WSL 自体は、メジャーなディストリビューションしか公式イメージがないので、マイナーなイメージは自力で入れないといけないのが、面倒なとこですね。

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?