installing_snap_on_raspberry_pi_os

Installing snap on Raspberry Pi OS

Installing snap on Raspberry Pi OS - Snap Package Manager -

Installing snap on Raspberry Pi OS

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

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

Enter the following into the terminal:

$ sudo apt update

$ sudo apt install snapd

  • Reading package lists… Done
  • Building dependency tree
  • Reading state information… Done
  • The following packages were automatically installed and are no longer required:
    • libexiv2-14 libgfortran3 libgmime-2.6-0 libncurses5 libssl1.0.2 uuid-dev
  • Use 'sudo apt autoremove' to remove them.
  • The following additional packages will be installed:
    • liblzo2-2 squashfs-tools

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

Need to get 12.1 MB of archives.

After this operation, 48.7 MB of additional disk space will be used.

  • Get:1 http://mirrors.syringanetworks.net/raspbian /raspbian buster/main armhf liblzo2-2 armhf 2.10-0.1 [48.4 kB]
  • Get:2 http://mirrors.syringanetworks.net/raspbian /raspbian buster/main armhf squashfs-tools armhf 1:4.3-12 [108 kB]
  • Get:3 http://mirror.pit.teraswitch.com/raspbian /raspbian buster/main armhf snapd armhf 2.37.4-1+rpi1 [11.9 MB]
  • Fetched 12.1 MB in 12s (972 kB/s)
  • Selecting previously unselected package liblzo2-2:armhf.
  • (Reading database … 164115 files and directories currently installed.)
  • Preparing to unpack …/liblzo2-2_2.10-0.1_armhf.deb …
  • Unpacking liblzo2-2:armhf (2.10-0.1) …
  • Selecting previously unselected package squashfs-tools.
  • Preparing to unpack …/squashfs-tools_1%3a4.3-12_armhf.deb …
  • Unpacking squashfs-tools (1:4.3-12) …
  • Selecting previously unselected package snapd.
  • Preparing to unpack …/snapd_2.37.4-1+rpi1_armhf.deb …
  • Unpacking snapd (2.37.4-1+rpi1) …
  • Setting up liblzo2-2:armhf (2.10-0.1) …
  • Setting up squashfs-tools (1:4.3-12) …
  • Setting up snapd (2.37.4-1+rpi1) …
  • Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
  • Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
  • Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service.
  • Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket.
  • Processing triggers for mime-support (3.62) …
  • Processing triggers for gnome-menus (3.31.4-3) …
  • Processing triggers for libc-bin (2.28-10+rpi1) …
  • Processing triggers for man-db (2.8.5-2) …
  • Processing triggers for desktop-file-utils (0.23-4) …

You will also need to reboot Linux. This can be accomplished from the terminal (and from the Linux 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:

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.

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 from Raspberry Pi OS. A good example of this is low-level access to a Raspberry Pi’s GPIO pins.

Fair Use Source: https://snapcraft.io/docs/installing-snap-on-raspbian

installing_snap_on_raspberry_pi_os.txt · Last modified: 2020/11/20 01:10 by 127.0.0.1