Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Snap on Ubuntu: A Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Snap is Ubuntu’s package system for installing and updating applications in self-contained packages called snaps. Many Ubuntu editions include Snap support already; if yours does not, you can install the Snap daemon and check that it is working with a few terminal commands. You’ll need an internet connection and an account with administrator privileges.

What You'll Need

  • A computer running Ubuntu with access to a terminal. Open Terminal from the applications menu, or press Ctrl+Alt+T.
  • An administrator account whose password you can enter when prompted by sudo.
  • An internet connection to download packages and, later, snaps.

Step-by-Step

  1. Check whether Snap is already installed. In Terminal, run snap version. If the command prints version information for snap and snapd, Snap is installed and responding; skip to step 5. If you see “command not found,” continue. If the command exists but reports a service or connection error, see Troubleshooting before reinstalling anything.
  2. Refresh Ubuntu’s package information. Run sudo apt update. Enter your password if prompted; it will not appear on screen as you type. Wait for the command to finish. If it reports repository or network errors, resolve those first using the troubleshooting section.
  3. Install the Snap daemon. Run sudo apt install snapd and review the proposed changes. Type Y and press Enter to confirm if you are happy to proceed. Ubuntu’s package manager installs snapd, the background service that manages snap packages, along with any required dependencies.
  4. Wait for installation to finish. Keep the terminal open until you get the command prompt back. On standard Ubuntu installations, systemd starts the snapd service automatically. You usually do not need to enable or start it manually.
  5. Verify that Snap works. Run snap version again. You should see version details for the Snap command-line client and snapd. You can also check the service with systemctl status snapd. A status of active (running) means the service is running; press q to leave the status screen. Some service states can be socket-activated, so use snap version as the main functional check.
  6. Optionally install a test snap. To check that snap downloads and runs applications, install a small, familiar package, for example sudo snap install hello-world. Then run hello-world. The test prints a short message. If you do not need this test package, remove it with sudo snap remove hello-world.
  7. Install the snap you actually want. Search for a package with snap find PACKAGE, replacing PACKAGE with a search term. Review the result and publisher before installing. Use sudo snap install PACKAGE for a system-wide installation, substituting the snap’s exact name. Some snaps offer a specific channel or classic confinement; check the publisher’s instructions before choosing options such as --channel or --classic. Only use classic confinement when you trust the publisher and understand that it gives the application broader access to the system.

Common Mistakes

  • Installing Snap when it is already present. Several Ubuntu desktop releases include snapd by default. Check with snap version first rather than treating an installed service as a problem.
  • Confusing Snap with APT. apt install installs packages from configured Ubuntu repositories; snap install installs snaps. Use the command that matches the package’s distribution method.
  • Leaving out administrator privileges. Installing snapd or most snaps system-wide requires sudo. Without it, the command may fail with a permissions error.
  • Using a display name instead of the snap name. The name shown in an app listing may differ from its install command. Check the package details or search results and use the exact snap name.
  • Copying commands from untrusted sources. Installing a snap gives its publisher’s software access allowed by its confinement settings. Check the publisher, requested permissions, and whether classic confinement is necessary.

Tips

  • Keep Ubuntu updated. Run sudo apt update and sudo apt upgrade periodically to receive available system package and security updates. Snap applications update automatically by default.
  • Review snap details before installing. Use snap info PACKAGE to inspect a snap’s description, publisher, channels, and available versions.
  • Know how to update and remove snaps. Run sudo snap refresh to check for snap updates. Remove an app with sudo snap remove PACKAGE; verify the name first, since removal deletes the installed application and may remove its associated data depending on the options and configuration.
  • Expect a short first-launch delay. A newly installed snap may take a little longer to start on its first run while it sets up its environment.

Troubleshooting

  • snap: command not found after installation: Confirm that sudo apt install snapd completed successfully. Close and reopen Terminal, then try snap version. If it still fails, run command -v snap and check whether /snap/bin is available in your command path. Log out and back in after installation if needed.
  • Snap cannot connect to the service: Check the service using systemctl status snapd. If it is stopped on a systemd-based Ubuntu installation, try sudo systemctl start snapd, then test again. If the service is missing or failed, review its details with journalctl -u snapd --no-pager -n 50 and address the reported error.
  • APT cannot download packages: Check your internet connection, VPN or proxy settings, and Ubuntu software sources. Run sudo apt update again and read the error; do not ignore repository or signature warnings. If you are on a restricted network, your administrator may need to allow access to Ubuntu’s package repositories and the Snap Store.
  • Installation says the snap cannot be found: Search with snap find TERM or check the publisher’s official installation instructions. The package may use a different name, be unavailable for your Ubuntu architecture, or require a different channel.
  • A snap installs but will not launch: Check the app’s instructions and required permissions, then try launching it from Terminal to see any error message. Make sure the snap is current with sudo snap refresh PACKAGE. Do not change confinement or grant broad permissions simply to bypass an error; look up the specific message in the publisher’s documentation.

Frequently Asked Questions

Does Ubuntu come with Snap already installed?
Many standard Ubuntu desktop installations include snapd. Availability differs by Ubuntu edition and installation image, so check with snap version.

Is snapd the same thing as Snap?
Snap is the packaging and distribution system; snapd is its background service, which installs and manages snap packages.

Do I need to restart Ubuntu after installing snapd?
Usually not. The service normally starts during installation. If Snap is not recognized in an existing terminal, reopen it or log out and back in.

How do I install a snap without using Terminal?
Ubuntu Software can browse and install snaps when snapd and the relevant store integration are available. The terminal commands above provide a direct way to check and manage installations.

Are snaps updated automatically?
Yes. Snap packages normally refresh automatically. You can check manually with sudo snap refresh.

Can I uninstall snapd later?
Yes, but first remove any snaps you still need. Removing snapd may also remove installed snaps and affect Ubuntu features that depend on them. Check what APT proposes to remove before confirming, and do not proceed if the list includes software you want to keep.