If you’re running Xubuntu 16.04 LTS (Xenial Xerus) or later, including Xubuntu 18.04 LTS (Bionic Beaver) and Xubuntu 18.10 (Cosmic Cuttlefish), you don’t need to do anything. Snap is already installed and ready to go.
If you need to know which version of Xubuntu you’re running, select Help from the desktop launch menu. This opens the documentation and the version is in the main title. Alternatively, from the command line, type
Versions of Xubuntu between 14.04 LTS (Trusty Tahr) and 15.10 (Wily Werewolf) don’t include snap by default, but snap can be installed from the Ubuntu Software Centre by searching for
snapd (make sure your distro is up-to-date first).
Alternatively, snapd can be installed from the command line:
$ sudo apt update $ sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To test your system, install the hello-world snap and make sure it runs correctly:
$ sudo 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.