Estou tentando seguir as instruções Preparando-se para instalar o Snapcraft no Ubuntu 14.04 (o documento é ambíguo sobre 14.04 e 16.04, mas 1.x procedimento de instalação parece ser exatamente o mesmo).
Eu sigo as etapas, não recebo nenhum erro, no entanto, não consigo obter o snapcraft
instalado.
-
Verifique a versão:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
-
Adicione o repositório:
$ sudo apt-add-repository ppa:snappy-dev/tools
...
OK
-
Executar atualização:
$ sudo apt update
... (altogether 57 lines, no error) ...
Reading package lists... Done
-
Instale 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) ...
-
Verifique a instalação:
$ 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
$
Estou faltando alguma coisa aqui?
Também snappy
e snappy-remote
, apesar de estarem instalados, apresentam um erro:
$ 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