1

无法执行任何成功的 Snapcraft 程序安装。

尽管按照以下说明成功安装了 snapd 命令行: https ://snapcraft.io/install/hello-world/ubuntu#install

  1. 这是初始 chroot 条目的输出:
crosh> shell
chronos@localhost / $ sudo startxfce4 -n xenial
Entering /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-128-generic x86_64 Ubuntu
Current Operating System: Linux localhost 4.4.211-17203-gbe96242e05a2 #1 SMP PREEMPT Tue May 5 00:06:55 PDT 2020 x86_64
  1. 这是 xenial chroot 命令行的输出:
➜ ~ sudo apt update
[sudo] password for killshot:
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
➜ ~ sudo apt install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
snapd is already the newest version (2.42.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
➜ ~ sudo snap install hello-world
error: cannot communicate with server: Post http://localhost/v2/snaps/hello-world: dial unix /run/snapd.socket: connect: no such file or directory
➜ ~

想法?

4

0 回答 0