Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manzyun opened this issue Feb 18, 2019 · 0 comments
Open

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

manzyun opened this issue Feb 18, 2019 · 0 comments

Comments

@manzyun
Copy link

manzyun commented Feb 18, 2019

事象

パッケージ、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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant