LoginSignup
2
1

More than 1 year has passed since last update.

エラー `System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down` の対処法

Posted at

環境

  • Windows 11 Home
  • WSL2
  • Ubuntu 20.04.4 LTS

エラー

こちらのサイトを参考に、UbuntuにDockerをインストールしようとしたところ、手順の途中でエラーが出る。

sudo systemctl daemon-reload
~~ 省略 ~~
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

解決策

  1. 以下のGitHubから、systemd-genie.debをダウンロード
    https://github.com/arkane-systems/genie/releases/tag/1.26
    2.png

  2. ダウンロードしたファイルを、Linux上の/home/<username>に移す
    タイトルなし.png

  3. 以下のコマンド2つを実行

    sudo apt-get update; \
    sudo apt-get install -y apt-transport-https && \
    sudo apt-get update && \
    sudo apt-get install -y aspnetcore-runtime-3.1
    
    sudo dpkg -i systemd-genie.deb
    
  4. 以下のコマンドを実行し、エラーが出なければ完了

    genie -s
    
2
1
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
2
1