EN
Debian 10 - install snap command (snap package manager)
10
points
In this short article, we would like to show how to install snap
command under Debian 10 (it should be working with Debian 11).
Quick steps:
- upgrade available packages list using:
sudo apt-get update
- install
snapd
package using:sudo apt-get install snapd
Note: snapd contains
snap
command. - install
snap
core
package using:sudo snap install core
- check if
snapd
service / daemon is working using:sudo systemctl status snapd
Example output:
● snapd.service - Snappy daemon Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2021-11-03 03:57:56 CDT; 20s ago Main PID: 3386 (snapd) Tasks: 26 (limit: 4915) Memory: 57.7M CGroup: /system.slice/snapd.service └─3386 /usr/lib/snapd/snapd Nov 03 03:57:55 debian systemd[1]: Starting Snappy daemon... Nov 03 03:57:55 debian snapd[3386]: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, network Nov 03 03:57:55 debian snapd[3386]: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, network Nov 03 03:57:55 debian snapd[3386]: patch.go:63: Patching system state level 6 to sublevel 1... Nov 03 03:57:55 debian snapd[3386]: patch.go:63: Patching system state level 6 to sublevel 2... Nov 03 03:57:55 debian snapd[3386]: patch.go:63: Patching system state level 6 to sublevel 3... Nov 03 03:57:55 debian snapd[3386]: daemon.go:242: started snapd/2.52.1 (series 16; classic; devmode) debian/10 (amd64) linux/4.19.0-17-amd64. Nov 03 03:57:55 debian snapd[3386]: daemon.go:335: adjusting startup timeout by 35s (pessimistic estimate of 30s plus 5s per snap) Nov 03 03:57:56 debian snapd[3386]: helpers.go:105: error trying to compare the snap system key: system-key versions not comparable Nov 03 03:57:56 debian systemd[1]: Started Snappy daemon.
Note: if snapd is not
active
use the following command:sudo systemctl start snapd
.