LoginSignup
2
2

More than 5 years have passed since last update.

Debianでsystemctlが動かない

Posted at

先日リリースされたDebian 9 "Stretch" にアップグレードして、そういえば Debian は SysV Initからsystemdに変更されていたんだよなと(Debian 8 "jessie"から)、いまさらのように思い出してサービスの一覧を表示しようとしてみたら、以下のようなエラーが。

% systemctl -t service
Failed to list units: No such method 'ListUnitsFiltered' 

どうやらsystemdがちゃんと動いていない様子。調べたところ systemd-shim というパッケージが入っているせいのようです。

本パッケージは systemd の機能を模倣して、systemd の init サービスを使わずに systemd のヘルパを実行する際に必要なものを提供します。

とのことなのでこれを以下のように削除してrebootをかけたところ正常にsystemctlが実行できるようになりました(運用中のマシンでは怖くてできませんが)。

% sudo apt remove systemd-shim
2
2
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
2