差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
windows:wsl:lxrunoffline [2021/03/25 05:27] – [パッケージインストール時に個別にドキュメント類もインストールするように指示する方法] ともやん | windows:wsl:lxrunoffline [2021/11/16 17:22] (現在) – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ~~CLOSETOC~~ | ||
====== LxRunOffline - システムドライブ外に WSL 環境を構築する方法 ====== | ====== LxRunOffline - システムドライブ外に WSL 環境を構築する方法 ====== | ||
- | ドキュメント: | + | ドキュメント: |
- | ソースコード: | + | ソースコード: |
- | 下記の手順は genie さんの機能強化に伴い | + | 下記の手順は genie さんの機能強化に伴い |
[[tw> | [[tw> | ||
[[tw> | [[tw> | ||
[[tw> | [[tw> | ||
+ | |||
+ | {{INLINETOC wide 1-2}} | ||
===== インストール ===== | ===== インストール ===== | ||
行 558: | 行 561: | ||
[[tw> | [[tw> | ||
Fedora 以外のディストリビューションでは❓\\ | Fedora 以外のディストリビューションでは❓\\ | ||
- | [[https:// | + | [[qita>hiromitsu7/ |
==== デフォルトユーザーの作成 ==== | ==== デフォルトユーザーの作成 ==== | ||
行 2087: | 行 2090: | ||
===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== man コマンドが bash: man: command not found と言われる ==== | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ man | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | bash: man: command not found | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | man コマンドの関連パッケージをインストールする。\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ sudo dnf install --setopt=tsflags='' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Last metadata expiration check: 0:49:08 ago on 2021年03月25日 04時51分25秒. | ||
+ | Dependencies resolved. | ||
+ | ==================================================================================================== | ||
+ | | ||
+ | ==================================================================================================== | ||
+ | Installing: | ||
+ | | ||
+ | Installing dependencies: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ==================================================================================================== | ||
+ | Install | ||
+ | |||
+ | Total download size: 1.2 M | ||
+ | Installed size: 2.6 M | ||
+ | Downloading Packages: | ||
+ | (1/2): libpipeline-1.5.2-5.fc33.x86_64.rpm | ||
+ | (2/2): man-db-2.9.2-6.fc33.x86_64.rpm | ||
+ | ---------------------------------------------------------------------------------------------------- | ||
+ | Total 292 kB/s | 1.2 MB 00:04 | ||
+ | Running transaction check | ||
+ | Transaction check succeeded. | ||
+ | Running transaction test | ||
+ | Transaction test succeeded. | ||
+ | Running transaction | ||
+ | Preparing | ||
+ | Installing | ||
+ | Running scriptlet: man-db-2.9.2-6.fc33.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: man-db-2.9.2-6.fc33.x86_64 | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Installed: | ||
+ | libpipeline-1.5.2-5.fc33.x86_64 | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== man コマンドで No manual entry for ... と言われる ==== | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ man ls | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | No manual entry for ls | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | man コマンド用のドキュメント関連パッケージをインストールする。\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ sudo dnf install --setopt=tsflags='' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Last metadata expiration check: 0:53:47 ago on 2021年03月25日 04時51分25秒. | ||
+ | Dependencies resolved. | ||
+ | ==================================================================================================== | ||
+ | | ||
+ | ==================================================================================================== | ||
+ | Installing: | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ==================================================================================================== | ||
+ | Install | ||
+ | |||
+ | Total download size: 11 M | ||
+ | Installed size: 11 M | ||
+ | Downloading Packages: | ||
+ | (1/2): man-pages-ja-20200315-2.fc33.noarch.rpm | ||
+ | (2/2): man-pages-5.07-3.fc33.noarch.rpm | ||
+ | ---------------------------------------------------------------------------------------------------- | ||
+ | Total 1.3 MB/s | 11 MB 00:08 | ||
+ | Running transaction check | ||
+ | Transaction check succeeded. | ||
+ | Running transaction test | ||
+ | Transaction test succeeded. | ||
+ | Running transaction | ||
+ | Preparing | ||
+ | Installing | ||
+ | Running scriptlet: man-pages-5.07-3.fc33.noarch | ||
+ | Installing | ||
+ | Running scriptlet: man-pages-5.07-3.fc33.noarch | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Installed: | ||
+ | man-pages-5.07-3.fc33.noarch | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ man ls | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== dnf コマンドの tsflags=nodocs RPM トランザクション フラグでインストール済みのパッケージのドキュメント類を再インストールする方法 ==== | ||
+ | 既にインストール済みのパッケージで欠落しているドキュメント類のファイルは以下のように調べることが出来る🤤\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ man rsync | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | No manual entry for rsync | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ ls -lha $(rpm -q -d rsync) | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | ls: cannot access '/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 欠落したドキュメント類のファイルを再インストールする。\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ sudo dnf reinstall --setopt=tsflags='' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Last metadata expiration check: 1:06:07 ago on 2021年03月25日 04時51分25秒. | ||
+ | Dependencies resolved. | ||
+ | ==================================================================================================== | ||
+ | | ||
+ | ==================================================================================================== | ||
+ | Reinstalling: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ==================================================================================================== | ||
+ | |||
+ | Total download size: 393 k | ||
+ | Installed size: 731 k | ||
+ | Downloading Packages: | ||
+ | rsync-3.2.3-3.fc33.x86_64.rpm | ||
+ | ---------------------------------------------------------------------------------------------------- | ||
+ | Total 168 kB/s | 393 kB 00:02 | ||
+ | Running transaction check | ||
+ | Transaction check succeeded. | ||
+ | Running transaction test | ||
+ | Transaction test succeeded. | ||
+ | Running transaction | ||
+ | Preparing | ||
+ | Reinstalling | ||
+ | Cleanup | ||
+ | Running scriptlet: rsync-3.2.3-3.fc33.x86_64 | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Reinstalled: | ||
+ | rsync-3.2.3-3.fc33.x86_64 | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ドキュメント類が配置されていることを確認する。\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ ls -lha $(rpm -q -d rsync) | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | -rw-r--r-- 1 root root | ||
+ | -rw-r--r-- 1 root root 4.0K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1.2K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1005 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 4.9K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 538 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 3.8K 7月 18 2020 / | ||
+ | -rw-r--r-- 1 root root 2.8K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1.1K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 2.6K 7月 14 2020 / | ||
+ | -rw-r--r-- 1 root root 1010 6月 5 2020 / | ||
+ | -rw-r--r-- 1 root root 633 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 625 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1.9K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1.5K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 1.5K 8月 6 2020 / | ||
+ | -rw-r--r-- 1 root root 7.3K 6月 28 2020 / | ||
+ | -rw-r--r-- 1 root root 275 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 651 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 8.5K 6月 17 2020 / | ||
+ | -rw-r--r-- 1 root root 4.5K 12月 18 2006 / | ||
+ | -rw-r--r-- 1 root root 15K 11月 23 1998 / | ||
+ | -rw-r--r-- 1 root root 1.8K 8月 7 2020 / | ||
+ | -rw-r--r-- 1 root root 63K 12月 8 20:57 / | ||
+ | -rw-r--r-- 1 root root 20K 12月 8 20:57 / | ||
+ | </ | ||
+ | </ | ||
==== genie で dumpwslenv.sh が No such file or directory になる ==== | ==== genie で dumpwslenv.sh が No such file or directory になる ==== | ||
行 2164: | 行 2421: | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
- | [[https:// | + | [[git>DDoSolitary/ |
- | [[https:// | + | [[qita>mark-n2/ |
[[https:// | [[https:// | ||