How To Install snapd on Ubuntu 20.04
Introduction
In this tutorial we learn how to install snapd
on Ubuntu 20.04.
What is snapd
snapd is:
Install, configure, refresh and remove snap packages. Snaps are ‘universal’ packages that work across many different Linux systems, enabling secure distribution of the latest apps and utilities for cloud, servers, desktops and the internet of things.
Start with ‘snap list’ to see installed snaps. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: snapd Architecture: amd64 Version: 2.48.3+20.04 Built-Using: apparmor (= 2.13.3-7ubuntu5), golang-1.13 (= 1.13.8-1ubuntu1), libcap2 (= 1:2.32-1), libseccomp (= 2.4.3-1ubuntu3.20.04.3) Priority: optional Section: devel Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 123368 Depends: adduser, apparmor (>= 2.10.95-0ubuntu2.2), ca-certificates, openssh-client, squashfs-tools, systemd, udev, libc6 (>= 2.27), libfuse2 (>= 2.6), liblzma5 (>= 5.1.1alpha+20110809), liblzo2-2 (>= 2.02), libudev1 (>= 183), zlib1g (>= 1:1.1.4) Recommends: gnupg Suggests: zenity | kdialog Conflicts: snap (« 2013-11-29-1ubuntu1) Breaks: snap-confine (« 2.23), snapd-xdg-open (<= 0.0.0), ubuntu-core-launcher (« 2.22), ubuntu-snappy (« 1.9), ubuntu-snappy-cli (« 1.9) Replaces: snap-confine (« 2.23), snapd-xdg-open (<= 0.0.0), ubuntu-core-launcher (« 2.22), ubuntu-snappy (« 1.9), ubuntu-snappy-cli (« 1.9) Filename: pool/main/s/snapd/snapd_2.48.3+20.04_amd64.deb Size: 28595792 MD5sum: 5f8cacbaedca4faad49d4a24611d58ba SHA1: 9c4770d5b9f81d37748fd0a7f1cd87eb9f1c29bc SHA256: 59383993a84aa7b1d754b3f95e61ca54e1d60da9a7f8ca82431e6dd44028a91d SHA512: aa093b0c14cd5c3f7689101f94f7a276c9511bdf2cafab75eb971f5b90ff10202481e8e2742454db847767f8b594bbf21310349d959f84a9832d95d61c7ba57d Homepage: https://github.com/snapcore/snapd Description-en: Daemon and tooling that enable snap packages Install, configure, refresh and remove snap packages. Snaps are ‘universal’ packages that work across many different Linux systems, enabling secure distribution of the latest apps and utilities for cloud, servers, desktops and the internet of things.
Start with ‘snap list’ to see installed snaps. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: snapd Architecture: amd64 Version: 2.44.3+20.04 Built-Using: apparmor (= 2.13.3-7ubuntu4), golang-1.13 (= 1.13.8-1ubuntu1), libcap2 (= 1:2.32-1), libseccomp (= 2.4.3-1ubuntu1) Priority: optional Section: devel Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 102132 Depends: adduser, apparmor (>= 2.10.95-0ubuntu2.2), ca-certificates, openssh-client, squashfs-tools, systemd, udev, libc6 (>= 2.27), libfuse2 (>= 2.6), liblzma5 (>= 5.1.1alpha+20110809), libudev1 (>= 183), zlib1g (>= 1:1.1.4) Recommends: gnupg Suggests: zenity | kdialog Conflicts: snap (« 2013-11-29-1ubuntu1) Breaks: snap-confine (« 2.23), snapd-xdg-open (<= 0.0.0), ubuntu-core-launcher (« 2.22), ubuntu-snappy (« 1.9), ubuntu-snappy-cli (« 1.9) Replaces: snap-confine (« 2.23), snapd-xdg-open (<= 0.0.0), ubuntu-core-launcher (« 2.22), ubuntu-snappy (« 1.9), ubuntu-snappy-cli (« 1.9) Filename: pool/main/s/snapd/snapd_2.44.3+20.04_amd64.deb Size: 23199936 MD5sum: 274ac8e603d632a5a3d1b719356c9c1a SHA1: b61595b7aa6afa6258634a524571c425d84069aa SHA256: 4095bba388b6815998a9b36c747d8733f098dfc6f408fe6d5f16b2c19e39c1c7 Homepage: https://github.com/snapcore/snapd Description-en: Daemon and tooling that enable snap packages Install, configure, refresh and remove snap packages. Snaps are ‘universal’ packages that work across many different Linux systems, enabling secure distribution of the latest apps and utilities for cloud, servers, desktops and the internet of things.
Start with ‘snap list’ to see installed snaps. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install snapd
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install snapd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install snapd
using apt-get
by running the following command:
sudo apt-get -y install snapd
Install snapd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install snapd
using apt
by running the following command:
sudo apt -y install snapd
Install snapd Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install snapd
using aptitude
by running the following command:
sudo aptitude -y install snapd
How To Uninstall snapd on Ubuntu 20.04
To uninstall only the snapd
package we can use the following command:
sudo apt-get remove snapd
Uninstall snapd And Its Dependencies
To uninstall snapd
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove snapd
Remove snapd Configurations and Data
To remove snapd
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge snapd
Remove snapd configuration, data, and all of its dependencies
We can use the following command to remove snapd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge snapd
References
Summary
In this tutorial we learn how to install snapd
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.