
Ubuntu日本語フォーラム

ログインしていません。
$ do-release-upgrade
:
:
:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
error: cannot list snaps: cannot communicate with server: Get "http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: connection refused
で止まってしまいます。
それで
$ sudo systemctl start snapd
を打ったら、
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xeu snapd.service" for details.
$ systemctl start snapd.service
でも同じ結果でした。
どなたかご教示お願いいたします。
オフライン
"journalctl -xeu snapd.service"を読むとエラー理由がわかると思います。
(少なくとも手掛かりにはなります。)
蛇足ですが、アップグレードは過去に自分で入れた様々なアプリ(apt/dnf installしたもの)を
削除しないといけないケースが多いので新たに構築するのも1つです。
オフライン
oppssidsure_ による投稿:
"journalctl -xeu snapd.service"を読むとエラー理由がわかると思います。
(少なくとも手掛かりにはなります。)
蛇足ですが、アップグレードは過去に自分で入れた様々なアプリ(apt/dnf installしたもの)を
削除しないといけないケースが多いので新たに構築するのも1つです。
ご教示ありがとうございます。
結果の上部を以下に書きます。
4月 12 09:41:36 user-cfsv9 systemd[1]: Failed to start Snap Daemon.
░░ Subject: A start job for unit snapd.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit snapd.service has finished with a failure.
░░
░░ The job identifier is 1866 and the job result is failed.
4月 12 09:41:36 user-cfsv9 systemd[1]: snapd.service: Triggering OnFailure= dependencies.
-- Boot c4f27fe222d6472392acf7726ad6506b --
4月 12 13:16:15 user-cfsv9 systemd[1]: Starting Snap Daemon...
░░ Subject: A start job for unit snapd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit snapd.service has begun execution.
░░
░░ The job identifier is 129.
4月 12 13:16:16 user-cfsv9 snapd[904]: overlord.go:274: Acquiring state lock file
4月 12 13:16:16 user-cfsv9 snapd[904]: overlord.go:279: Acquired state lock file
4月 12 13:16:16 user-cfsv9 snapd[904]: cannot run daemon: cannot read state: invalid character '\x00' looking for beginning of value
4月 12 13:16:16 user-cfsv9 snapd[1127]: overlord.go:274: Acquiring state lock file
4月 12 13:16:16 user-cfsv9 snapd[1127]: overlord.go:279: Acquired state lock file
4月 12 13:16:16 user-cfsv9 snapd[1127]: cannot run daemon: cannot read state: invalid character '\x00' looking for beginning of value
4月 12 13:16:16 user-cfsv9 systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit snapd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
4月 12 13:16:16 user-cfsv9 systemd[1]: snapd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit snapd.service has entered the 'failed' state with result 'exit-code'.
ちなみに私は同じパソコンをもう一台持っていて、そちらで同様にやってみたところ、エラーもなく24.04LTSにできました。
オフライン
自己解決しました。
やったことは以下のとおり。
$ sudo umount /var/snap/firefox/common/host-hunspell
$ sudo apt autoremove --purge snapd
$ sudo apt install snapd
オフライン