0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntuが「systemd-logind failed to get session PID XXXX does not belong to any known session」のエラーで起動しない時の対処

Last updated at Posted at 2021-12-01

状況

ここ数ヶ月Ubuntu20.04で開発やネットなど普通に利用をしていて、先ほどAudacityをインストールしたり色々してたら急に画面が固まり、どうにもならないのでPCの電源ボタン長押しで強制終了したところ、今度は画面が真っ黒になって起動しなくなりました。

解決した方法

リカバリーモードで入り、rootユーザーでCUI起動。
/var/log/Xorg.0.logを見ると(EE) systemd-logind failed to get session PID 1013 does not belong to any known sessionのエラーが。

ここで/etc/gdm3/custom.confの中にあるWaylandEnable=falseのコメントアウトを外して再起動。
これで無事デスクトップの表示ができました。(良かった、、、)

余談

これまでWindowsやMacを使ってきてバックアップ真面目にとらなくても運良く問題なかったので油断してましたが、特にLinuxを扱う時はこまめにデータをバックアップとっておこうと思います...。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?