I am trying to follow Getting set up instructions for installing Snapcraft on Ubuntu 14.04 (the document is ambiguous about 14.04 and 16.04, but 1.x installation procedure seems to be exactly the same).
I follow the steps, get no error, however I cannot get snapcraft installed.
Check the version:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trustyAdd the repository:
$ sudo apt-add-repository ppa:snappy-dev/tools ... OKRun update:
$ sudo apt update ... (altogether 57 lines, no error) ... Reading package lists... DoneInstall
snappy-toolsReading 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) ...Verify the installation:
$ 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 $
Am I missing something here?
Also snappy and snappy-remote although being installed give an error:
$ 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 snapcraftand paste both outputs here.snapcraftas being separate package and clearly says I "will get (it) after installation" of snappy-tools. Of courseapt install snapcraftdid install it.