LoginSignup
0

posted at

updated at

Ubuntu 22.04 + WSL2でGenie「systemd-sysusers.service loaded failed failed Create System Users」

Ubuntu 22.04 + WSL2 + Windows11でGenieをインストール後、エラーが発生し起動しなかったのでメモ

まず、こちらのページを見ながら設定したところ「genie 起動 -> 成功」のところで、記載と異なるエラーが発生
https://hiro20180901.hatenablog.com/entry/2022/03/10/070000

エラー内容

Starting genie:
Waiting for systemd....!!!!!!!(略)

Timed out waiting for systemd to enter running state.
This may indicate a systemd configuration error.
Attempting to continue.
Failed units will now be displayed (systemctl list-units --failed):
  UNIT                     LOAD   ACTIVE SUB    DESCRIPTION
● systemd-sysusers.service loaded failed failed Create System Users

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.

問題となった部分:「systemd-sysusers.service loaded failed failed Create System Users」

対処方法

  • こちらのファイルを開く
$ sudo vi /usr/lib/systemd/system/systemd-sysusers.service
  • 末尾の3行をコメントアウトし、さらに1行追記
# LoadCredential=passwd.hashed-password.root
# LoadCredential=passwd.plaintext-password.root
# LoadCredential=passwd.shell.root
LoadCredential=
  • その後、念のため、wslを再起動
> wsl.exe --shutdown
  • Ubuntuを起動してGenieを実行したところ、無事動作
$ genie -s
Waiting for systemd....!

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
What you can do with signing up
0