Install Snap on Ubuntu: A Step-by-Step Guide
In this article
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
- 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. - 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. - Install the Snap daemon. Run
sudo apt install snapdand review the proposed changes. TypeYand 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. - 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.
- Verify that Snap works. Run
snap versionagain. You should see version details for the Snap command-line client and snapd. You can also check the service withsystemctl status snapd. A status ofactive (running)means the service is running; press q to leave the status screen. Some service states can be socket-activated, so usesnap versionas the main functional check. - 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 runhello-world. The test prints a short message. If you do not need this test package, remove it withsudo snap remove hello-world. - Install the snap you actually want. Search for a package with
snap find PACKAGE, replacingPACKAGEwith a search term. Review the result and publisher before installing. Usesudo snap install PACKAGEfor 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--channelor--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 versionfirst rather than treating an installed service as a problem. - Confusing Snap with APT.
apt installinstalls packages from configured Ubuntu repositories;snap installinstalls 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 updateandsudo apt upgradeperiodically to receive available system package and security updates. Snap applications update automatically by default. - Review snap details before installing. Use
snap info PACKAGEto inspect a snap’s description, publisher, channels, and available versions. - Know how to update and remove snaps. Run
sudo snap refreshto check for snap updates. Remove an app withsudo 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 foundafter installation: Confirm thatsudo apt install snapdcompleted successfully. Close and reopen Terminal, then trysnap version. If it still fails, runcommand -v snapand check whether/snap/binis 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, trysudo systemctl start snapd, then test again. If the service is missing or failed, review its details withjournalctl -u snapd --no-pager -n 50and address the reported error. - APT cannot download packages: Check your internet connection, VPN or proxy settings, and Ubuntu software sources. Run
sudo apt updateagain 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 TERMor 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.