{"id":1642,"date":"2022-07-06T12:02:24","date_gmt":"2022-07-06T03:02:24","guid":{"rendered":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1642"},"modified":"2022-07-06T12:02:24","modified_gmt":"2022-07-06T03:02:24","slug":"wsl2-ubuntu-%e4%bd%9c%e6%a5%ad%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1642","title":{"rendered":"WSL2 Ubuntu \u4f5c\u696d\u30e1\u30e2"},"content":{"rendered":"\n<p>\u3068\u308a\u3042\u3048\u305a\u9806\u4e0d\u540c\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u304f\u65b9\u304c\u826f\u3055\u305d\u3046\u306a\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">WSL\u306b\u5897\u8a2d\u3057\u305fSSD\u3092\u5272\u308a\u5f53\u3066\u308b<\/h4>\n\n\n\n<p>Windows\u304c\u8d77\u52d5\u3057\u305f\u6642\u70b9\u3067\u5897\u8a2d\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u308c\u3070\u554f\u984c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5bfe\u7b56\u65b9\u6cd5\u304c\u4e0d\u660e\u306a\u305f\u3081\u73fe\u72b6\u306f\u6bce\u56de\u500b\u5225\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Windows\\System32&gt; GET-CimInstance -query \"SELECT * from Win32_DiskDrive\"\n\nDeviceID           Caption                  Partitions Size          Model\n--------           -------                  ---------- ----          -----\n\\\\.\\PHYSICALDRIVE1 KINGSTON OM8PDP3256B-A01 3          512105932800  KINGSTON OM8PDP3256B-A01\n\\\\.\\PHYSICALDRIVE0 CT1000BX500SSD1          4          1000202273280 CT1000BX500SSD1\n\nPS C:\\Windows\\System32&gt; wsl --mount \\\\.\\PHYSICALDRIVE0 --bare\n\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u5185\u5bb9\u306e &#8211;mount \u3067\u3001WSL2 \u306b\u5897\u8a2d\u3057\u305f SSD \u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u81ea\u52d5\u7684\u306b\u5272\u308a\u632f\u3089\u308c\u308b\u30db\u30b9\u30c8\u540d\u3092\u5909\u66f4<\/h5>\n\n\n\n<p>\u96e3\u3057\u3044\u30db\u30b9\u30c8\u540d\u3092\u5358\u7d14\u306a &#8220;WSL01&#8221; \u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u518d\u8d77\u52d5\u5f8c\u306b\u9069\u7528\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Windows\\System32&gt; Rename-Computer -NewName \"WSL01\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4eee\u60f3\u30de\u30b7\u30f3(Ubuntu) \u306e\u8d77\u52d5\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b<\/h4>\n\n\n\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u5165\u3063\u3066\u3001\/etc\/wsl.conf \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u4e2d\u306b\u6b21\u3092\u8a18\u8ff0\u3059\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cat &lt;&lt; EOF &gt; \/etc\/wsl.conf\n&gt; &#91;user]\n&gt; default=sunao\n&gt; EOF<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Ubuntu\u5074\u306e\u6f22\u5b57\u51e6\u7406\u3092\u7d44\u8fbc\u3080<\/h4>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u8aac\u660e\u3092\u53c2\u8003\u306b\u3057\u3066\u3001\u4e2d\u3067\u8aac\u660e\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u518d\u8d77\u52d5\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;astherier.com\/blog\/2021\/07\/windows11-wsl2-wslg-japanese\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>$ wget https:\/\/astherier.com\/static\/blog\/2021-07-11\/japanize-wslg.sh\n$ bash japanize-wslg.sh\n\n$ rm japanize-wslg.sh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">systemctl \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u306a\u3044<\/h3>\n\n\n\n<p>WSL2 \u306f\u3001PID 1 \u306b init \u304c\u9663\u53d6\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u8272\u3005\u306a\u30b7\u30b9\u30c6\u30e0\u304c\u52d5\u4f5c\u3067\u304d\u306a\u3044\u72b6\u614b\u306b\u306a\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u3002\u3053\u3053\u3067\u30c7\u30a3\u30ba\u30cb\u30fc\u306b\u51fa\u3066\u304f\u308b genie \u306e\u529b\u3092\u501f\u308a\u3066 systemd \u3092 PID 1 \u306b\u5165\u308c\u66ff\u3048\u3066\u3057\u307e\u3046\u3053\u3068\u3092\u3059\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ localectl set-locale LANG=ja_JP.UTF-8 LANGUAGE=\"ja_JP:ja\"\nSystem has not been booted with systemd as init system (PID 1). Can't operate.\nFailed to connect to bus: \u30db\u30b9\u30c8\u304c\u843d\u3061\u3066\u3044\u307e\u3059<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u518d\u78ba\u8a8d\u3067\u3082\u540c\u3058\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ systemctl\nSystem has not been booted with systemd as init system (PID 1). Can't operate.\nFailed to connect to bus: \u30db\u30b9\u30c8\u304c\u843d\u3061\u3066\u3044\u307e\u3059<\/code><\/pre>\n\n\n\n<p>PID 1 \u304c systemd \u3067\u306a\u3044\u305f\u3081\u306b\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u6b21\u306e\u60c5\u5831\u3092\u53c2\u8003\u306b\u4f5c\u696d\u3057\u3066\u30e9\u30f3\u30d7\u304b\u3089 genie \u306b\u304a\u8d8a\u3057\u3044\u305f\u3060\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;qiita.com\/RyoSakon001\/items\/26b3d073b70dfe911d59<\/code><\/pre>\n\n\n\n<p>\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3068\u51fa\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30e1\u30e2\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ sudo apt install daemonize dbus gawk libc6 libstdc++6 policykit-1 systemd systemd-container\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\ndbus \u306f\u3059\u3067\u306b\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3 (1.12.20-2ubuntu4) \u3067\u3059\u3002\ndbus \u306f\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f\u3002\n\u53d6\u5f97:3 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/main amd64 libnss-mymachines amd64 249.11-0ubuntu3.3 &#91;146 kB]\n547 kB \u3092 2\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (279 kB\/s)\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 daemonize \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 83017 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\n...\/daemonize_1.7.8-1_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ndaemonize (1.7.8-1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 systemd-container \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/systemd-container_249.11-0ubuntu3.3_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\nsystemd-container (249.11-0ubuntu3.3) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 libnss-mymachines:amd64 \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/libnss-mymachines_249.11-0ubuntu3.3_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\nlibnss-mymachines:amd64 (249.11-0ubuntu3.3) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\nsystemd-container (249.11-0ubuntu3.3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/machines.target \u2192 \/lib\/systemd\/system\/machines.target.\ndaemonize (1.7.8-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibnss-mymachines:amd64 (249.11-0ubuntu3.3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nFirst installation detected...\nChecking NSS setup...\nlibc-bin (2.35-0ubuntu3) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nman-db (2.10.2-1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\ndbus (1.12.20-2ubuntu4) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nScanning processes...\nScanning processor microcode...\nScanning linux images...\n\nFailed to retrieve available kernel versions.\n\nThe processor microcode seems to be up-to-date.\n\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\nsunao@WSL01:~$ wget https:\/\/packages.microsoft.com\/config\/debian\/10\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb\n--2022-06-30 10:12:52--  https:\/\/packages.microsoft.com\/config\/debian\/10\/packages-microsoft-prod.deb\npackages.microsoft.com (packages.microsoft.com) \u3092DNS\u306b\u554f\u3044\u3042\u308f\u305b\u3066\u3044\u307e\u3059... 23.99.120.248\npackages.microsoft.com (packages.microsoft.com)|23.99.120.248|:443 \u306b\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059... \u63a5\u7d9a\u3057\u307e\u3057\u305f\u3002\nHTTP \u306b\u3088\u308b\u63a5\u7d9a\u8981\u6c42\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\u3001\u5fdc\u7b54\u3092\u5f85\u3063\u3066\u3044\u307e\u3059... 200 OK\n\u9577\u3055: 3124 (3.1K) &#91;application\/octet-stream]\n\u2018packages-microsoft-prod.deb\u2019 \u306b\u4fdd\u5b58\u4e2d\n\npackages-microsoft-prod.de 100%&#91;========================================&gt;]   3.05K  --.-KB\/s    in 0s\n\n2022-06-30 10:12:52 (1.10 GB\/s) - \u2018packages-microsoft-prod.deb\u2019 \u3078\u4fdd\u5b58\u5b8c\u4e86 &#91;3124\/3124]\n\nsunao@WSL01:~$ sudo dpkg -i packages-microsoft-prod.deb\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 packages-microsoft-prod \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 83093 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\npackages-microsoft-prod.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\npackages-microsoft-prod (1.0-debian10.1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\npackages-microsoft-prod (1.0-debian10.1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nsunao@WSL01:~$ rm packages-microsoft-prod.deb\nsunao@WSL01:~$ sudo apt update\n\u53d6\u5f97:1 https:\/\/packages.microsoft.com\/debian\/10\/prod buster InRelease &#91;29.8 kB]\n\u30d2\u30c3\u30c8:2 http:\/\/archive.ubuntu.com\/ubuntu jammy InRelease\n\u53d6\u5f97:3 http:\/\/security.ubuntu.com\/ubuntu jammy-security InRelease &#91;110 kB]\n\u53d6\u5f97:4 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main arm64 Packages &#91;25.9 kB]\n\u53d6\u5f97:5 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates InRelease &#91;109 kB]\n\u53d6\u5f97:6 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main armhf Packages &#91;26.5 kB]\n\u53d6\u5f97:7 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main amd64 Packages &#91;174 kB]\n\u53d6\u5f97:8 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main all Packages &#91;4,034 B]\n\u53d6\u5f97:9 http:\/\/archive.ubuntu.com\/ubuntu jammy-backports InRelease &#91;99.8 kB]\n\u53d6\u5f97:10 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main Translation-ja &#91;295 kB]\n\u53d6\u5f97:11 http:\/\/security.ubuntu.com\/ubuntu jammy-security\/main amd64 c-n-f Metadata &#91;3,156 B]\n\u53d6\u5f97:12 http:\/\/archive.ubuntu.com\/ubuntu jammy\/universe Translation-ja &#91;1,534 kB]\n\u53d6\u5f97:13 http:\/\/archive.ubuntu.com\/ubuntu jammy\/multiverse Translation-ja &#91;7,160 B]\n\u53d6\u5f97:14 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/main amd64 c-n-f Metadata &#91;5,720 B]\n2,425 kB \u3092 2\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (973 kB\/s)\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3059\u3079\u3066\u6700\u65b0\u3067\u3059\u3002<\/code><\/pre>\n\n\n\n<p>\u6307\u5b9a\u3055\u308c\u305f dotnet-runtime-5.0 \u304c\u53e4\u3044\u3089\u3057\u304f\u4f9d\u5b58\u95a2\u4fc2\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ sudo apt install dotnet-runtime-5.0\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u304a\u305d\u3089\u304f\u3001\u3042\u308a\u5f97\n\u306a\u3044\u72b6\u6cc1\u3092\u8981\u6c42\u3057\u305f\u304b\u3001(\u4e0d\u5b89\u5b9a\u7248\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\n\u3067\u3042\u308c\u3070) \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u307e\u3060\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a Incoming \u304b\u3089\u79fb\n\u52d5\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\n\u4ee5\u4e0b\u306e\u60c5\u5831\u304c\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u5f79\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093:\n\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u6e80\u305f\u305b\u306a\u3044\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059:\n dotnet-runtime-deps-5.0 : \u4f9d\u5b58: libssl1.0.0 \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093 \u307e\u305f\u306f\n                                   libssl1.0.2 \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093 \u307e\u305f\u306f\n                                   libssl1.1 \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\nE: \u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u58ca\u308c\u305f\u5909\u66f4\u7981\u6b62\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002\nsunao@WSL01:~$ sudo apt install dotnet-runtime\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\nE: \u30d1\u30c3\u30b1\u30fc\u30b8 dotnet-runtime \u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\nsunao@WSL01:~$ aptitude search dotnet-runtime\np   dotnet-runtime-2.1                            - Microsoft .NET Core Runtime - 2.1.30 Microsoft.NETCore.A\np   dotnet-runtime-2.2                            - Microsoft .NET Core Runtime - 2.2.8 Microsoft.NETCore.Ap\np   dotnet-runtime-3.0                            - Microsoft .NET Core Runtime - 3.0.3 Microsoft.NETCore.Ap\np   dotnet-runtime-3.1                            - Microsoft .NET Core Runtime - 3.1.26 Microsoft.NETCore.A\np   dotnet-runtime-5.0                            - Microsoft .NET Runtime - 5.0.17 Microsoft.NETCore.App 5.\np   dotnet-runtime-6.0                            - Microsoft.NETCore.App.Runtime 6.0.6\np   dotnet-runtime-deps-2.1                       - dotnet-runtime-deps-2.1 2.1.30\np   dotnet-runtime-deps-2.2                       - dotnet-runtime-deps-2.2 2.2.8<\/code><\/pre>\n\n\n\n<p>\u6700\u65b0\u306f\u30016.0 \u306e\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u6700\u65b0\u7248\u3092\u7d99\u7d9a\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u7d9a\u3051\u307e\u3059\u3002\u30ed\u30b0\u306f aptitude \u3067\u78ba\u8a8d\u3092\u631f\u3093\u3060\u7d50\u679c\u3001\u8a18\u9332\u3055\u308c\u305f\u4e00\u90e8\u306e\u884c\u304c\u6d88\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u53d6\u5f97:3 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main amd64 dotnet-runtime-deps-6.0 amd64 6.0.6-1 &#91;2,806 B]\n\u53d6\u5f97:4 https:\/\/packages.microsoft.com\/debian\/10\/prod buster\/main amd64 dotnet-runtime-6.0 amd64 6.0.6-1 &#91;22.8 MB]\n23.0 MB \u3092 12\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (1,865 kB\/s)\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 dotnet-host \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 83101 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\n...\/dotnet-host_6.0.6-1_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-host (6.0.6-1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 dotnet-hostfxr-6.0 \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/dotnet-hostfxr-6.0_6.0.6-1_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-hostfxr-6.0 (6.0.6-1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 dotnet-runtime-deps-6.0 \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/dotnet-runtime-deps-6.0_6.0.6-1_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-runtime-deps-6.0 (6.0.6-1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 dotnet-runtime-6.0 \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/dotnet-runtime-6.0_6.0.6-1_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-runtime-6.0 (6.0.6-1) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\ndotnet-host (6.0.6-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-runtime-deps-6.0 (6.0.6-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-hostfxr-6.0 (6.0.6-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ndotnet-runtime-6.0 (6.0.6-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nman-db (2.10.2-1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nScanning processes...\nScanning processor microcode...\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\nsunao@WSL01:~$ sudo apt install apt-transport-https\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u65b0\u305f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  apt-transport-https\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 1 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002\n1,512 B \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b\u8ffd\u52a0\u3067 169 kB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\n\u53d6\u5f97:1 http:\/\/archive.ubuntu.com\/ubuntu jammy\/universe amd64 apt-transport-https all 2.4.5 &#91;1,512 B]\n1,512 B \u3092 1\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (2,864 B\/s)\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 apt-transport-https \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 83307 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\n...\/apt-transport-https_2.4.5_all.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\napt-transport-https (2.4.5) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\napt-transport-https (2.4.5) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nScanning processes...\nScanning processor microcode...\nScanning linux images...\n\nFailed to retrieve available kernel versions.\n\nThe processor microcode seems to be up-to-date.\n\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\nsunao@WSL01:~$ sudo wget -O \/etc\/apt\/trusted.gpg.d\/wsl-transdebian.gpg https:\/\/arkane-systems.github.io\/wsl-\ntransdebian\/apt\/wsl-transdebian.gpg\n--2022-06-30 10:19:17--  https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt\/wsl-transdebian.gpg\narkane-systems.github.io (arkane-systems.github.io) \u3092DNS\u306b\u554f\u3044\u3042\u308f\u305b\u3066\u3044\u307e\u3059... 185.199.109.153, 185.199.108.153, 185.199.111.153, ...\narkane-systems.github.io (arkane-systems.github.io)|185.199.109.153|:443 \u306b\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059... \u63a5\u7d9a\u3057\u307e\u3057\u305f\u3002\nHTTP \u306b\u3088\u308b\u63a5\u7d9a\u8981\u6c42\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\u3001\u5fdc\u7b54\u3092\u5f85\u3063\u3066\u3044\u307e\u3059... 200 OK\n\u9577\u3055: 2280 (2.2K) &#91;application\/octet-stream]\n\u2018\/etc\/apt\/trusted.gpg.d\/wsl-transdebian.gpg\u2019 \u306b\u4fdd\u5b58\u4e2d\n\n\/etc\/apt\/trusted.gpg.d\/wsl 100%&#91;========================================&gt;]   2.23K  --.-KB\/s    in 0s\n\n2022-06-30 10:19:17 (30.7 MB\/s) - \u2018\/etc\/apt\/trusted.gpg.d\/wsl-transdebian.gpg\u2019 \u3078\u4fdd\u5b58\u5b8c\u4e86 &#91;2280\/2280]\n\nsunao@WSL01:~$ sudo chmod a+r \/etc\/apt\/trusted.gpg.d\/wsl-transdebian.gpg<\/code><\/pre>\n\n\n\n<p>root \u30e6\u30fc\u30b6\u30fc\u306b\u5909\u66f4\u3057\u3066\u4f5c\u696d\u3092\u7d99\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ sudo su -\nWelcome to Ubuntu 22.04 LTS (GNU\/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)\n\n * Documentation:  https:\/\/help.ubuntu.com\n * Management:     https:\/\/landscape.canonical.com\n * Support:        https:\/\/ubuntu.com\/advantage\n\n  System information as of 2022\u5e74  6\u6708 30\u65e5 \u6728\u66dc\u65e5 10:20:27 JST\n\n  System load:    0.0029296875      Processes:             28\n  Usage of \/home: 0.0% of 95.56GB   Users logged in:       0\n  Memory usage:   3%                IPv4 address for eth0: 172.28.186.10\n  Swap usage:     0%\n\n\n0 updates can be applied immediately.\n\n\n\nThis message is shown once a day. To disable it please create the\n\/root\/.hushlogin file.\nroot@WSL01:~# cat &lt;&lt; EOF &gt; \/etc\/apt\/sources.list.d\/wsl-transdebian.list\ndeb https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt\/ $(lsb_release -cs) main\ndeb-src https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt\/ $(lsb_release -cs) main\nEOF\nroot@WSL01:~#\n\u30ed\u30b0\u30a2\u30a6\u30c8<\/code><\/pre>\n\n\n\n<p>\u8ffd\u52a0\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 genie \u95a2\u9023\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ sudo apt update\n\u53d6\u5f97:1 https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt jammy InRelease &#91;3,215 B]\n\u30d2\u30c3\u30c8:2 https:\/\/packages.microsoft.com\/debian\/10\/prod buster InRelease\n\u53d6\u5f97:3 https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt jammy\/main Sources &#91;1,609 B]\n\u30d2\u30c3\u30c8:4 http:\/\/archive.ubuntu.com\/ubuntu jammy InRelease\n\u53d6\u5f97:5 https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt jammy\/main amd64 Packages &#91;2,115 B]\n\u30d2\u30c3\u30c8:6 http:\/\/security.ubuntu.com\/ubuntu jammy-security InRelease\n\u30d2\u30c3\u30c8:7 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates InRelease\n\u53d6\u5f97:8 http:\/\/archive.ubuntu.com\/ubuntu jammy-backports InRelease &#91;99.8 kB]\n107 kB \u3092 1\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (83.5 kB\/s)\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3059\u3079\u3066\u6700\u65b0\u3067\u3059\u3002\nsunao@WSL01:~$ sudo apt install systemd-genie\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u4ee5\u4e0b\u306e\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  build-essential dpkg-dev fakeroot g++ g++-11 gcc gcc-11 libalgorithm-diff-perl libalgorithm-diff-xs-perl\n  libalgorithm-merge-perl libasan6 libatomic1 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev\n  libexpat1-dev libfakeroot libgcc-11-dev libitm1 libjs-sphinxdoc liblsan0 libnsl-dev libpython3-dev\n  libpython3.10-dev libstdc++-11-dev libtirpc-dev libtsan0 libubsan1 linux-libc-dev lto-disabled-list make\n  manpages-dev python3-dev python3-pip python3-psutil python3-wheel python3.10-dev rpcsvc-proto zlib1g-dev\n\u63d0\u6848\u30d1\u30c3\u30b1\u30fc\u30b8:\n  debian-keyring g++-multilib g++-11-multilib gcc-11-doc gcc-multilib autoconf automake libtool flex bison\n  gdb gcc-doc gcc-11-multilib gcc-11-locales glibc-doc libstdc++-11-doc make-doc python-psutil-doc\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u65b0\u305f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  build-essential dpkg-dev fakeroot g++ g++-11 gcc gcc-11 libalgorithm-diff-perl libalgorithm-diff-xs-perl\n  libalgorithm-merge-perl libasan6 libatomic1 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev\n  libexpat1-dev libfakeroot libgcc-11-dev libitm1 libjs-sphinxdoc liblsan0 libnsl-dev libpython3-dev\n  libpython3.10-dev libstdc++-11-dev libtirpc-dev libtsan0 libubsan1 linux-libc-dev lto-disabled-list make\n  manpages-dev python3-dev python3-pip python3-psutil python3-wheel python3.10-dev rpcsvc-proto\n  systemd-genie zlib1g-dev\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 42 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002\n57.5 MB \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b\u8ffd\u52a0\u3067 200 MB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\n\u7d9a\u884c\u3057\u307e\u3059\u304b? &#91;Y\/n]\n\u53d6\u5f97:1 https:\/\/arkane-systems.github.io\/wsl-transdebian\/apt jammy\/main amd64 systemd-genie amd64 2.4 &#91;53.8 kB]\n\u53d6\u5f97:2 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libc-dev-bin amd64 2.35-0ubuntu3 &#91;20.3 kB]\n\u53d6\u5f97:3 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/main amd64 linux-libc-dev amd64 5.15.0-40.43 &#91;1,286 kB]\n\u53d6\u5f97:4 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libcrypt-dev amd64 1:4.4.27-1 &#91;112 kB]\n\u53d6\u5f97:5 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu6 &#91;68.5 kB]\n\u53d6\u5f97:6 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libtirpc-dev amd64 1.3.2-2build1 &#91;192 kB]\n\u53d6\u5f97:7 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libnsl-dev amd64 1.3.0-2build2 &#91;71.3 kB]\n\u53d6\u5f97:8 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libc6-dev amd64 2.35-0ubuntu3 &#91;2,099 kB]\n\u53d6\u5f97:9 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libcc1-0 amd64 12-20220319-1ubuntu1 &#91;47.2 kB]\n\u53d6\u5f97:10 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libitm1 amd64 12-20220319-1ubuntu1 &#91;30.2 kB]\n\u53d6\u5f97:11 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libatomic1 amd64 12-20220319-1ubuntu1 &#91;10.4 kB]\n\u53d6\u5f97:12 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libasan6 amd64 11.2.0-19ubuntu1 &#91;2,283 kB]\n\u53d6\u5f97:13 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 liblsan0 amd64 12-20220319-1ubuntu1 &#91;1,069 kB]\n\u53d6\u5f97:14 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libtsan0 amd64 11.2.0-19ubuntu1 &#91;2,261 kB]\n\u53d6\u5f97:15 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libubsan1 amd64 12-20220319-1ubuntu1 &#91;976 kB]\n\u53d6\u5f97:16 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libgcc-11-dev amd64 11.2.0-19ubuntu1 &#91;2,526 kB]\n\u53d6\u5f97:17 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 gcc-11 amd64 11.2.0-19ubuntu1 &#91;20.1 MB]\n\u53d6\u5f97:18 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 gcc amd64 4:11.2.0-1ubuntu1 &#91;5,112 B]\n\u53d6\u5f97:19 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 libstdc++-11-dev amd64 11.2.0-19ubuntu1 &#91;2,083 kB]\n\u53d6\u5f97:20 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 g++-11 amd64 11.2.0-19ubuntu1 &#91;11.4 MB]\n\u53d6\u5f97:21 http:\/\/archive.ubuntu.com\/ubuntu jammy\/main amd64 g++ amd64 4:11.2.0-1ubuntu1 &#91;1,412 B]\nlibitm1:amd64 (12-20220319-1ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibc-devtools (2.35-0ubuntu3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibalgorithm-merge-perl (0.08-3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibtsan0:amd64 (11.2.0-19ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nsystemd-genie (2.4) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ndpkg-dev (1.21.1ubuntu2.1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibgcc-11-dev:amd64 (11.2.0-19ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ngcc-11 (11.2.0-19ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibc6-dev:amd64 (2.35-0ubuntu3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ngcc (4:11.2.0-1ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibexpat1-dev:amd64 (2.4.7-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibstdc++-11-dev:amd64 (11.2.0-19ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nzlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ng++-11 (11.2.0-19ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibpython3.10-dev:amd64 (3.10.4-3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\npython3.10-dev (3.10.4-3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\ng++ (4:11.2.0-1ubuntu1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nupdate-alternatives: \/usr\/bin\/c++ (c++) \u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u81ea\u52d5\u30e2\u30fc\u30c9\u3067 \/usr\/bin\/g++ \u3092\u4f7f\u3044\u307e\u3059\nbuild-essential (12.9ubuntu3) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibpython3-dev:amd64 (3.10.4-0ubuntu2) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\npython3-dev (3.10.4-0ubuntu2) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nman-db (2.10.2-1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nlibc-bin (2.35-0ubuntu3) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nScanning processes...\nScanning processor microcode...\nScanning linux images...\n\nFailed to retrieve available kernel versions.\n\nThe processor microcode seems to be up-to-date.\n\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\nsunao@WSL01:~$ genie -l\ngenie: WARNING: systemd default target is default.target; targets other than multi-user.target may not work\ngenie: WARNING: if you wish to use a different target, this warning can be disabled in the config file\ngenie: WARNING: if you experience problems, please change the target to multi-user.target\nWaiting for systemd....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\u3000\u3000^C \u3067\u5f37\u5236\u505c\u6b62\u3092\u884c\u3044\u307e\u3057\u305f\u3002\n\nTraceback (most recent call last):\n  File \"\/usr\/lib\/python3.10\/runpy.py\", line 196, in _run_module_as_main\n    return _run_code(code, main_globals, None,\n  File \"\/usr\/lib\/python3.10\/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 581, in &lt;module&gt;\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 564, in entrypoint\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 351, in do_initialize\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 294, in inner_do_initialize\nKeyboardInterrupt\nTraceback (most recent call last):\n  File \"\/usr\/lib\/python3.10\/runpy.py\", line 196, in _run_module_as_main\n    return _run_code(code, main_globals, None,\n  File \"\/usr\/lib\/python3.10\/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 581, in &lt;module&gt;\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 568, in entrypoint\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 384, in do_login\n  File \"\/usr\/lib\/genie\/genie\/__main__.py\", line 112, in pre_systemd_action_checks\n  File \"\/usr\/lib\/python3.10\/subprocess.py\", line 503, in run\n    stdout, stderr = process.communicate(input, timeout=timeout)\n  File \"\/usr\/lib\/python3.10\/subprocess.py\", line 1141, in communicate\n    self.wait()\n  File \"\/usr\/lib\/python3.10\/subprocess.py\", line 1204, in wait\n    return self._wait(timeout=timeout)\n  File \"\/usr\/lib\/python3.10\/subprocess.py\", line 1938, in _wait\n    (pid, sts) = self._try_wait(0)\n  File \"\/usr\/lib\/python3.10\/subprocess.py\", line 1896, in _try_wait\n    (pid, sts) = os.waitpid(self.pid, wait_flags)\nKeyboardInterrupt\n<\/code><\/pre>\n\n\n\n<p>PID 1 \u304c systemd \u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u308b\u306e\u304b\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002 top \u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01:~$ genie -s\ngenie: WARNING: systemd is in degraded state, issues may occur!\nsunao@WSL01-wsl:~$ top\ntop - 10:26:42 up  1:57,  1 user,  load average: 0.03, 0.12, 0.06\nTasks:  32 total,   1 running,  31 sleeping,   0 stopped,   0 zombie\n%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st\nMiB Mem :  15705.3 total,  13924.7 free,    593.7 used,   1186.9 buff\/cache\nMiB Swap:   4096.0 total,   4096.0 free,      0.0 used.  14828.2 avail Mem\n\n    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND\n   1117 sunao     20   0   11388   3800   3208 R   0.3   0.0   0:00.01 top\n      1 root      20   0  171676  13176   8592 S   0.0   0.1   0:00.71 systemd\n     48 root      19  -1   39600  15708  14616 S   0.0   0.1   0:00.09 systemd-journal\n     72 root      20   0   22944   6560   4456 S   0.0   0.0   0:00.09 systemd-udevd\n     95 systemd+  20   0   16112   7984   6976 S   0.0   0.0   0:00.05 systemd-network\n     96 message+  20   0    8852   5028   4148 S   0.0   0.0   0:00.10 dbus-daemon\n     99 root      20   0   39580  21104  11820 S   0.0   0.1   0:00.08 networkd-dispat\n    100 root      20   0  236444   9216   7036 S   0.0   0.1   0:00.03 polkitd\n    101 syslog    20   0  222396   5312   4488 S   0.0   0.0   0:00.04 rsyslogd\n    102 root      20   0 2279332  49004  17588 S   0.0   0.3   0:00.65 snapd\n    106 root      20   0   15304   7308   6344 S   0.0   0.0   0:00.10 systemd-logind\n    110 root      20   0  392764  13156  10816 S   0.0   0.1   0:00.05 udisksd\n    151 root      20   0  316920  11872  10100 S   0.0   0.1   0:00.05 ModemManager\n    246 systemd+  20   0   25256  12412   8384 S   0.0   0.1   0:00.06 systemd-resolve\n    329 root      20   0    7936   1256   1116 S   0.0   0.0   0:00.00 cron\n    341 root      20   0  116584  23532  14824 S   0.0   0.1   0:00.03 unattended-upgr\n    353 root      20   0    7216   1096   1008 S   0.0   0.0   0:00.00 agetty\n    355 root      20   0    7216   1072    984 S   0.0   0.0   0:00.00 agetty\n   1039 root      20   0    2884    952    856 S   0.0   0.0   0:00.00 sh<\/code><\/pre>\n\n\n\n<p>systemd \u304c PID 1 \u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">genie\u306e\u52b9\u679c\u306f\u3044\u3064\u307e\u3067\u7d9a\u304f\u306e\u304b?<\/h3>\n\n\n\n<p>\u6c38\u4e45\u7684\u306b genie \u306e\u52b9\u679c\u304c\u6301\u7d9a\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u306f\u306a\u3044\u3089\u3057\u304f\u3001systemd \u304c PID 1 \u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u306e\u306f\u7279\u5b9a\u306e\u671f\u9593\u3060\u3051\u306e\u3088\u3046\u3067\u3001\u3069\u306e\u6642\u70b9\u306b\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u5143\u306e init \u306b\u623b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">genie \u306e\u74b0\u5883\u304c\u523b\u3005\u3068\u5909\u5316\u3057\u3066\u3044\u308b\u3088\u3046\u3067<\/h2>\n\n\n\n<p>\u4eca\u5e74 2022 \u5e74 GW\u524d\u5f8c\u306e\u65b0\u3057\u3044\u52d5\u304d\u3001\u300eWSL2+Ubuntu22.04\u306b\u6a19\u6e96\u3067\u5165\u3063\u305fsystemd\u3092\u8a66\u3059\u300f\u3068\u306e\u60c5\u5831\u306b systemd\u3092\u8d77\u52d5\u3057\u3066 PID 1 \u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u73fe\u6642\u70b9\u3067\u78ba\u8a8d\u3059\u308b\u3068 PID 1 \u306f\u5143\u3005\u306e\u3000init \u304c\u5360\u3081\u3066\u3044\u3066\u3001\u5225\u306a\u5834\u6240\u306b systemd \u304c\u4e57\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u3053\u306e systemd \u306f wsl2 \u5c02\u7528\u3089\u3057\u3044<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01-wsl:~$ ls -l \/usr\/libexec\/wsl-systemd\r\n-rwxr-xr-x 1 root root 550  3\u6708 18 00:08 \/usr\/libexec\/wsl-systemd\n\nsunao@WSL01-wsl:~$ \/usr\/libexec\/nslogin\r\nsunao@WSL01-wsl:~$\n\r<\/code><\/pre>\n\n\n\n<p>\u30e9\u30f3\u30d7\u306e\u7cbe\u306e genie \u541b\u3082\u6210\u308a\u3092\u6f5c\u3081\u3066\u3044\u3066 PID 1 \u3092\u596a\u3044\u53d6\u308b\u3053\u3068\u3092\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u305d\u306e\u8aac\u660e\u306e\u4e2d\u3067\u66f8\u304b\u308c\u3066\u3044\u308b <strong>nslogin \u3092\u8d77\u52d5\u3057\u3066<\/strong>\u3082\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u306a\u304f\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u5e30\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">apache2\u3092\u8d77\u52d5\u3057\u3066\u7d50\u679c\u3092\u898b\u307e\u3057\u305f<\/h4>\n\n\n\n<p>\u4f55\u304b\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001apache2 \u3092\u8d77\u52d5\u3059\u308b\u3068\u3001\u7279\u306b\u30a8\u30e9\u30fc\u3082\u306a\u304f\u8d77\u52d5\u3055\u308c\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sunao@WSL01-wsl:~$ sudo systemctl start apache2\r\nsunao@WSL01-wsl:~$ sudo systemctl status apache2\r\n\u25cf apache2.service - The Apache HTTP Server\r\n     Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Wed 2022-07-06 10:14:08 JST; 13s ago\r\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\r\n    Process: 816 ExecStart=\/usr\/sbin\/apachectl start (code=exited, status=0\/SUCCESS)\r\n   Main PID: 820 (apache2)\r\n      Tasks: 4 (limit: 18840)\r\n     Memory: 5.3M\r\n     CGroup: \/system.slice\/apache2.service\r\n             \u251c\u2500820 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u2500821 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u2500822 \/usr\/sbin\/apache2 -k start\r\n             \u2514\u2500823 \/usr\/sbin\/apache2 -k start\r\n\r\n 7\u6708 06 10:14:08 WSL01-wsl systemd&#91;1]: Starting The Apache HTTP Server...\r\n 7\u6708 06 10:14:08 WSL01-wsl systemd&#91;1]: Started The Apache HTTP Server.<\/code><\/pre>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9 top \u306e\u7d50\u679c\u3092\u6b21\u306b\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u5f53\u521d\u304b\u3089\u306e init \u304c PID 1 \u3092\u5360\u3081\u3066\u3044\u308b\u3088\u3046\u3067\u3001systemd \u306f\u5225\u306e\u5834\u6240\u306b\u4e57\u3063\u3066\u3044\u308b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>top - 11:22:05 up  2:02,  3 users,  load average: 0.00, 0.00, 0.00\r\nTasks:  70 total,   1 running,  69 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st\r\nMiB Mem :  15705.3 total,  14445.1 free,    511.9 used,    748.2 buff\/cache\r\nMiB Swap:   4096.0 total,   4096.0 free,      0.0 used.  14932.6 avail Mem\r\n\r\n    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND\r\n      1 root      20   0    1776   1056   1020 S   0.0   0.0   0:00.02 init\r\n     13 root      20   0    2116    356      0 S   0.0   0.0   0:00.00 init\r\n     14 root      20   0    2124    356      0 S   0.0   0.0   0:00.19 init\r\n     15 sunao     20   0    9748   5376   3628 S   0.0   0.0   0:00.02 bash\r\n     34 sunao     20   0    8164   2148   1716 S   0.0   0.0   0:00.00 dbus-launch\r\n     35 sunao     20   0    8292   2432   2052 S   0.0   0.0   0:00.00 dbus-daemon\r\n     38 sunao     20   0  323148  38188  29196 S   0.0   0.2   0:00.13 fcitx\r\n     45 sunao     20   0    8292   2928   2568 S   0.0   0.0   0:00.00 dbus-daemon\r\n     49 sunao     39  19    6572    236      0 S   0.0   0.0   0:00.00 fcitx-dbus-watc\r\n     50 sunao     20   0  187448  20192  13688 S   0.0   0.1   0:00.07 mozc_server\r\n     82 root      20   0    2116    356      0 S   0.0   0.0   0:00.01 init\r\n    107 root      20   0    6812    960    872 S   0.0   0.0   0:00.00 unshare\r\n    108 root      20   0   18900  11340   7932 S   0.0   0.1   0:00.69 systemd\r\n    155 root      19  -1   47796  15572  14464 S   0.0   0.1   0:00.16 systemd-journal\r\n    189 root      20   0   23068   6672   4480 S   0.0   0.0   0:00.35 systemd-udevd\r\n    191 root      20   0    4732   1684   1228 S   0.0   0.0   0:00.21 snapfuse\r\n    192 root      20   0    4796   1804   1220 S   0.0   0.0   0:02.17 snapfuse\r\n    217 systemd+  20   0   16112   8040   7028 S   0.0   0.0   0:00.16 systemd-network\r\n    218 message+  20   0    9044   4892   4012 S   0.0   0.0   0:00.18 dbus-daemon\r\n    221 root      20   0   39580  21088  11800 S   0.0   0.1   0:00.08 networkd-dispat\r\n    222 root      20   0  236444  11000   6780 S   0.0   0.1   0:00.04 polkitd<\/code><\/pre>\n\n\n\n<p>\u4f7f\u3044\u65b9\u3084\u52d5\u304d\u304c\u3057\u3063\u304f\u308a\u304d\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3057\u3070\u3089\u304f\u69d8\u5b50\u3092\u898b\u306a\u304c\u3089\u4ed8\u304d\u5408\u3063\u3066\u3044\u3053\u3046\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u308a\u3042\u3048\u305a\u9806\u4e0d\u540c\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u304f\u65b9\u304c\u826f\u3055\u305d\u3046\u306a\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002 WSL\u306b\u5897\u8a2d\u3057\u305fSSD\u3092\u5272\u308a\u5f53\u3066\u308b Windows\u304c\u8d77\u52d5\u3057\u305f\u6642\u70b9\u3067\u5897\u8a2d\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u308c\u3070\u554f\u984c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5bfe\u7b56\u65b9\u6cd5\u304c\u4e0d\u660e\u306a\u305f\u3081\u73fe &hellip; <a href=\"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1642\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">WSL2 Ubuntu \u4f5c\u696d\u30e1\u30e2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7,22,9,11],"tags":[],"_links":{"self":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1642"}],"collection":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1642"}],"version-history":[{"count":9,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions"}],"predecessor-version":[{"id":1667,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions\/1667"}],"wp:attachment":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1642"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}