snap: command not found
安装指令是 apt-get install snapd
apt-get install snapd
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
apparmor
Suggested packages:
apparmor-profiles apparmor-profiles-extra apparmor-docs apparmor-utils zenity | kdialog
The following NEW packages will be installed:
apparmor snapd
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 21.5 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apparmor amd64 2.10.95-0ubuntu2.11 [451 kB]
Get:2 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snapd amd64 2.48.3 [21.1 MB]
Fetched 21.5 MB in 6s (3,284 kB/s)
Preconfiguring packages …
Selecting previously unselected package apparmor.
(Reading database … 67645 files and directories currently installed.)
Preparing to unpack …/apparmor_2.10.95-0ubuntu2.11_amd64.deb …
Unpacking apparmor (2.10.95-0ubuntu2.11) …
Selecting previously unselected package snapd.
Preparing to unpack …/snapd_2.48.3_amd64.deb …
Unpacking snapd (2.48.3) …
Processing triggers for systemd (229-4ubuntu21.31) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for mime-support (3.59ubuntu1) …
Setting up apparmor (2.10.95-0ubuntu2.11) …
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up snapd (2.48.3) …
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real …
Installing new version of config file /etc/profile.d/apps-bin-path.sh …
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
root@ubuntu:~/hccb_agent/agent# snap
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.
Usage: snap […]
Commonly used commands can be classified as follows:
Basics: find, info, install, remove, list
...more: refresh, revert, switch, disable, enable, create-cohort
History: changes, tasks, abort, watch
Daemons: services, start, stop, restart, logs
Permissions: connections, interface, connect, disconnect
Configuration: get, set, unset, wait
App Aliases: alias, aliases, unalias, prefer
Account: login, logout, whoami
Snapshots: saved, save, check-snapshot, restore, forget
Device: model, reboot, recovery
… Other: warnings, okay, known, ack, version
Development: download, pack, run, try
For more information about a command, run ‘snap help ’.
For a short summary of all commands, run ‘snap help --all’.