3
4

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) snapが動かない時のチェック

Last updated at Posted at 2020-07-22

1. 確認手順

Ubuntu 20.04 でsnap (というパッケージ管理ツール) が動かなくなった時の作業メモ

1.1. 通信の確認

sudo snap debug connectivity

以下なら問題なし

Connectivity status:
 * PASS

1.2. ログの確認

vi /var/log/syslog

snapが動いているなら、以下のメッセージの後HTTPエラー等になるはず

Jul 17 07:04:33 ip-10-10-174-153 snapd[751]: api.go:990: Installing snap "microk8s" revision unset

1.3. snapdの動作確認

systemctl status snapd

出力例

● snapd.service - Snap Daemon
   Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: en
   Active: active (running) since Fri 2020-07-17 06:48:13 UTC; 38min ago
 Main PID: 751 (snapd)
    Tasks: 27 (limit: 4915)
   Memory: 256.9M
   CGroup: /system.slice/snapd.service
           mq751 /usr/lib/snapd/snapd

また、設定ファイルは、/etc/environmentにある。

1.4. snapレポジトリのリフレッシュ

snapのレポジトリのリフレッシュをしてみる。

sudo snap refresh

A. 参考資料

3
4
1

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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?