ubuntu-desktop-jp icon indicating copy to clipboard operation
ubuntu-desktop-jp copied to clipboard

[Bug?] Snapの実行ができない

Open manzyun opened this issue 6 years ago • 0 comments

事象

パッケージ、snapd をインストールし、 snap 関係のコマンドを実行すると、以下のエラー出力され、パッケージのインストールなどができません。以下は LXD をインストールしようとした際の結果です:

error: cannot communicate with server: Post http://localhost/v2/snaps/lxd: dial unix /run/snapd.socket: connect: no such file or directory

再現手順

提供されているDockerイメージからコンテナを起動。

docker run --name test_desktop -p 8080:8080 uphy/ubuntu-desktop-jp

noVNCでコンテナ内デスクトップ環境にログイン。 その後、コンテナ内デスクトップ環境で以下コマンドを実行。

apt update
apt full-upgrade
apt install snapd

一度コンテナを再起動したあと、以下のコマンドをコンテナ内デスクトップ環境で実行。

snap install lxd

再現環境

  • Windows 10 Pro

    • Version: 1803
    • Build: 17134.590
  • Docker Desktop Community

    • Version 2.0.0.3(31259)
    • Channel: stable
    • Build: 8858db3
      • Docker Engine: 18.09.2

補足

なお、この事象に関連しそうなバグが Launchpad のバグ報告に掲載されておりました。

Bug #1631514 “snap doesnt work. error: cannot communicate with s...” : Bugs : snapd package : Ubuntu

これを参考に以下のコマンドを実行しましたが、 System has not been booted with systemd as init system (PID 1). Can't operate. と出力され、Snapデーモンの状態が確認できませんでした。

systemctl status snapd.service

manzyun avatar Feb 18 '19 01:02 manzyun