WSL v1.0.0でUbuntu 22.04LTS: その2 [WSL]
login時のうざいエラーを黙らせるというのをやります。
/etc/wsl.confに
https://github.com/microsoft/WSL/issues/8723
この辺眺めていると、/etc/wsl.confに
書いたらsystemdが動いているならreboot(実はshutdown)でもshutdownでもイイですが、wslから抜けて、外からwsl -l -vでステータスがStoppedになってから、もう一度wslに入ります。
すると...
うーん、ここで行き詰まった...
おまけ
/etc/wsl.confの内容については
https://learn.microsoft.com/ja-jp/windows/wsl/wsl-config
ここ。
さらにおまけ
Windowsから
<3>WSL (305) ERROR: CreateProcessParseCommon:782: Failed to translate C:\Users\ユーザー名
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\WINDOWS\System32\OpenSSH\
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files\dotnet\
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files (x86)\Common Files\Sony Shared\FeliCaLibrary
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files\Common Files\Sony Shared\FeliCaLibrary
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files (x86)\Common Files\Sony Shared\FeliCaNFCLibrary
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files\Common Files\Sony Shared\FeliCaNFCLibrary
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files (x86)\JustSystems\JSLIB32
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\PROGRA~1\JPKI
<3>WSL (305) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Users\ユーザー名\AppData\Local\Microsoft\WindowsApps
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.74.2-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This message is shown once a day. To disable it please create the
/home/ubuntu/.hushlogin file.
毎回うざいよね.../etc/wsl.confに
[automount]
enabled = false
って書いたのが、これの始まりですが...https://github.com/microsoft/WSL/issues/8723
この辺眺めていると、/etc/wsl.confに
[interop]
appendWindowsPath = false
って書くと消えそうです。書いたらsystemdが動いているならreboot(実はshutdown)でもshutdownでもイイですが、wslから抜けて、外からwsl -l -vでステータスがStoppedになってから、もう一度wslに入ります。
すると...
<3>WSL (300) ERROR: CreateProcessParseCommon:782: Failed to translate C:\Users\ユーザー名
まで減ります。うーん、ここで行き詰まった...
おまけ
/etc/wsl.confの内容については
https://learn.microsoft.com/ja-jp/windows/wsl/wsl-config
ここ。
さらにおまけ
Windowsから
wsl --cd ~
で入ると、エラーが出ない... initの中で出しているエラーと言うことまでは突き止めたんだけど、うーむ。
コメント 0