Installing snap on Raspbian

Snap can be installed on a Raspberry Pi running the latest version of Raspbian by opening a terminal and typing a couple of commands.

The default terminal, also known as a command line, is called LXTerminal and it’s launched from its icon on the desktop. Take a look at the official Raspberry Pi documentation if you’re unfamiliar with the terminal.

Enter the following into the terminal:

$ sudo apt update
$ sudo apt install snapd

You will also need to reboot your device. This can be accomplished from the terminal (and from the desktop), but make sure you save any open documents first:

$ sudo reboot

To test your system, install the hello-world snap and make sure it runs correctly:

$ snap install hello-world
hello-world 6.3 from Canonical✓ installed
$ hello-world
Hello World!

Snap is now installed and ready to go! If you’re using a desktop, a great next step is to install the Snap Store app.

:information_source: Snap is an integral part of Ubuntu Core, which can be installed as the native Raspberry Pi operating system. Ubuntu Core provides more permissive access to the Raspberry Pi, and may enable functionality not easily mirrored when snap is installed on Raspbian. A good example of this is low-level access to a Raspberry Pi’s GPIO pins.

Last updated a month ago. Help improve this document in the forum.