DEV Community

Rachael Muga
Rachael Muga

Posted on

🐦 How to Install Snap on Parrot OS (When snapd Isn't Available)

When trying to install Snap on Parrot OS, you might run into this frustrating error:

E: Package 'snapd' has no installation candidate

Enter fullscreen mode Exit fullscreen mode

Image description
That's because Parrot OS, while based on Debian, doesn't include Snap support by default. Here's how to fix that and get Snap running smoothly.

πŸ› οΈ Step-by-Step Fix

1. Add Debian contrib and non-free Repositories

Edit your sources list:

sudo nano /etc/apt/sources.list
Enter fullscreen mode Exit fullscreen mode

Add the following lines (adjust if you're on a different Debian base; Parrot 6 is based on Debian 12 "bookworm"):

deb http://deb.debian.org/debian bookworm main contrib non-free
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
Enter fullscreen mode Exit fullscreen mode

πŸ’‘ In nano, press Ctrl+O to save, Enter to confirm, and Ctrl+X to exit.

**

2. Update Your Package List

sudo apt update
Enter fullscreen mode Exit fullscreen mode

3. Install snapd

sudo apt install snapd -y
Enter fullscreen mode Exit fullscreen mode

Image description

4. Enable Snap Services

sudo systemctl enable --now snapd
sudo ln -s /var/lib/snapd/snap /snap
Enter fullscreen mode Exit fullscreen mode

5. Verify Installation

snap version
Enter fullscreen mode Exit fullscreen mode

Image description

βœ… Optional: Test Snap with Hello World

sudo snap install hello-world
Enter fullscreen mode Exit fullscreen mode

Image description

πŸš€ You're Ready to Use Snap!

Now you can install any snap package as usual

πŸ“Œ Why This Happens

Parrot OS doesn't ship with snapd or the required repos enabled. Since it's a security-focused distro, they limit packages to those they audit or support by default. But thanks to its Debian roots, you can still configure it manually.

Top comments (0)