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.

unable to launch "/usr/bin/lxsession" で Lubuntu にログインできない

Last updated at Posted at 2020-07-02

症状

ログイン画面でパスワードを入力すると、以下のメッセージが表示される。
"okay" ボタンをクリックすると、ログイン画面に戻されてしまい、ログインできない。
loginerror.PNG
原因が不明だが、/usr/bin/lxsession が存在していない状態らしい。

バージョン

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

対処

1.[Ctrl] + [Alt] + [F2] を押下し、コンソール画面のモードに切り替える。
ユーザとパスワードを入力し、ログインする。

2.以下のコマンドで lxsession の再インストールを行う。

sudo apt-get install --reinstall lxsession

3.lxsession が存在していることを確認する。
※再インストール前は、/usr/bin/lxsession が消えていた
lxsession.PNG

4.再起動し、ログインが可能になっていることを確認する。
一応、バグとして報告がされているようですが、同じ理由で消えてしまったかどうかは不明。
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1770801
今回は幸い復旧できる範囲でしたが、何れにしても突然重要なファイルが消失してしまうのは困るので何らかの備えが必要(いつも後回しになりがちですが)。

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?