Я пытаюсь следовать Getting настроить инструкции по установке Snapcraft на Ubuntu 14.04 (документ неоднозначен о 14.04 и 16.04, но 1.x процедуре установки , кажется, точно так же).
Я следую за шагами, не получаю ошибку, однако я не могу быть snapcraft
установлен.
Проверьте версию:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty
Добавьте репозиторий:
$ sudo apt-add-repository ppa:snappy-dev/tools ... OK
Запустите обновление:
$ sudo apt update ... (altogether 57 lines, no error) ... Reading package lists... Done
устанавливать
snappy-tools
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: android-tools-adb android-tools-fastboot apparmor-easyprof binfmt-support click-reviewers-tools click-ubuntu-policy debsig-verify kpartx libxmltok1 python3-apparmor python3-bs4 python3-html5lib python3-libapparmor python3-lxml python3-magic Preparing to unpack .../snappy-tools_10_amd64.deb ... Unpacking snappy-tools (10) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (225-1ubuntu9) ... Processing triggers for man-db (2.7.4-1) ... Setting up binfmt-support (2.1.5-1) ... Setting up python3-lxml (3.4.4-1) ... Setting up python3-magic (1:5.22+15-2ubuntu1) ... Setting up python3-simplejson (3.7.3-1ubuntu1) ... Setting up python3-xdg (0.25-4) ... Setting up click-reviewers-tools (0.34) ... Setting up libxmltok1 (1.2-3build3) ... Setting up debsig-verify (0.13) ... Setting up python3-bs4 (4.3.2-2ubuntu4) ... Setting up python3-html5lib (0.999-3build1) ... Setting up qemu-user-static (1:2.3+dfsg-5ubuntu9.2) ... Setting up seccomp (2.2.3-2ubuntu1) ... Setting up snappy-remote (0.4-0ubuntu1build1) ... # -*- mode: ruby -*- Setting up android-tools-adb (4.2.2+git20130218-3ubuntu42) ... Setting up android-tools-fastboot (4.2.2+git20130218-3ubuntu42) ... Setting up click-ubuntu-policy (0.1) ... Setting up kpartx (0.5.0-7ubuntu7.1) ... Setting up ubuntu-snappy-cli (1.5ubuntu1) ... Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory Adding system user `snappypkg' (UID 115) ... Adding new group `snappypkg' (GID 121) ... Adding new user `snappypkg' (UID 115) with group `snappypkg' ... Not creating home directory `/nonexistent'. Setting up ubuntu-device-flash (0.31-0ubuntu1) ... Setting up ubuntu-core-security-seccomp (15.10.17) ... Setting up python3-libapparmor (2.10-0ubuntu6) ...
Проверьте правильность установки:
$ which snappy /usr/bin/snappy $ which snappy-remote /usr/bin/snappy-remote $ which snapcraft $ snapcraft snapcraft: command not found $ find / -name snapcraft 2> /dev/null $
Я что-то здесь упускаю?
Также snappy
и snappy-remote
при установке выдают ошибку:
$ snappy try
Unknown command `try'. Please specify one command of: booted, build, config, firstboot, hw-assign, hw-info, hw-unassign, info, install, internal-run-hooks, internal-unpack, list, login, purge, remove, rollback, search, set, update or versions
$ snappy-remote
the required flag `--url' was not specified
apt-cache policy snapcraft; apt install snapcraft
и вставьте оба вывода здесь.
snapcraft
как отдельный пакет и ясно говорит, что я «получу (это) после установки» snappy-tools. Конечно apt install snapcraft
установил.