Skip to main content

Ubuntu 26.04: Complete Guide to Removing Snap and Migrating to Flatpak + APT

·684 words·4 mins
Ubuntu 26.04 Snap Removal Flatpak APT Firefox DEB Software Store Unsnap
Table of Contents

Ubuntu 26.04: Say Goodbye to Snap and Switch to Flatpak + APT

Ubuntu 26.04 LTS comes with pre-installed Snap packages. Slow Firefox startup, sluggish Software Store, and background resource usage by snapd can impact your workflow. This guide walks you through completely uninstalling Snap, installing alternatives via APT and Flatpak, and blocking Snap from returning. Reading time: ~6 minutes.


🛑 Why Say Goodbye to Snap?
#

Common pain points include:

Pain Point Specific Manifestation
Slow Startup Firefox Snap takes 3–5 seconds longer to open initially compared to the DEB version.
Large Footprint Each Snap includes its runtime. Firefox Snap ~200MB vs DEB ~70MB.
Background Resource Hogging snapd always runs in the background; system may wait for it during shutdown.
Restricted Updates Snap updates are server-controlled, limiting version choice.
Closed-Source Store Snap Store backend is proprietary, run by Canonical.

Snap is no longer optional; Ubuntu 26.04 installs core apps like Firefox and the Software Store as Snaps, with hooks to auto-reinstall snapd.


📦 What Snaps Are Pre-installed?
#

snap list

Typical output:

Package Name Description Disk Space
firefox Web Browser ~200MB
snap-store App Store ~90MB
gnome-3-38-2004 GNOME Runtime ~150MB
core20 / core22 Snap Cores ~120MB
gtk-common-themes Themes ~70MB
snapd Snap Daemon ~40MB

Total usage: 600MB+. Switching to DEB + Flatpak can cut this by more than half.


🔧 Method 1: Manual Removal + APT/Flatpak Alternatives
#

Step 1: Remove all Snap packages
#

snap list
for p in $(snap list | awk '!/^Name|^snapd$/{print $1}'); do
  sudo snap remove "$p"
done
sudo snap remove core22
sudo snap remove snapd

Check for clean removal: No snaps are installed yet.

Step 2: Uninstall snapd + cleanup
#

sudo systemctl stop snapd
sudo systemctl disable --now snapd.socket
sudo apt autoremove --purge snapd -y
rm -rf ~/snap
sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd

Step 3: Install APT alternatives
#

Firefox DEB Version:

sudo add-apt-repository ppa:mozillateam/ppa -y
sudo tee /etc/apt/preferences.d/mozillateam-firefox.pref << 'EOF'
Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501
EOF
sudo apt update
sudo apt install firefox -y

Software Store (DEB Version):

sudo apt install gnome-software -y

Step 4: Install Flatpak
#

sudo apt install flatpak -y
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Popular Flatpak apps:

flatpak install flathub com.spotify.Client -y
flatpak install flathub com.obsproject.Studio -y
flatpak install flathub org.telegram.desktop -y

Step 5: Prevent Snap from returning
#

sudo tee /etc/apt/preferences.d/no-snapd.pref << 'EOF'
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF

sudo tee /etc/apt/preferences.d/no-firefox-snap.pref << 'EOF'
Package: firefox
Pin: release a=*
Pin-Priority: -10
EOF

Verify: apt policy snapd → should show (none).


⚡ Method 2: One-Click Migration with unsnap
#

unsnap automates Snap-to-Flatpak migration.

git clone https://github.com/popey/unsnap
cd unsnap
./unsnap auto   # Automatic execution

Scripts handle backup, Flatpak installation, enabling Flathub, replacing Snaps, and uninstalling snapd.

Limitations:

  • Only maps ~219 apps automatically.
  • Does not migrate app data.
  • No rollback; backup beforehand is recommended.

✅ Manual vs unsnap
#

Feature Manual unsnap
Difficulty Moderate Easy
Flexibility High Moderate
Data Retention High Backup required
Audience Users wanting control Users wanting speed
Recommendation ⭐⭐⭐ ⭐⭐

Tip: For most users, manually replacing Firefox and Software Store is cleanest.


📊 System Changes: Before vs After
#

Metric Before After
Firefox Startup ~8s ~3s
Disk Usage ~600MB ~250MB
Background Processes snapd running None
Update Control Canonical server push Local via apt / flatpak
Software Sources Snap Store (closed) APT + Flathub (open)

📝 Quick Cheat Sheet
#

# Remove all Snaps
for p in $(snap list | awk '!/^Name/{print $1}'); do sudo snap remove "$p"; done
sudo apt autoremove --purge snapd -y
rm -rf ~/snap; sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd

# Install DEB Alternatives
sudo add-apt-repository ppa:mozillateam/ppa -y
sudo tee /etc/apt/preferences.d/mozillateam-firefox.pref << 'EOF'
Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501
EOF
sudo apt update && sudo apt install firefox gnome-software -y

# Install Flatpak
sudo apt install flatpak -y
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# Block Snap
sudo tee /etc/apt/preferences.d/no-snapd.pref << 'EOF'
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
sudo tee /etc/apt/preferences.d/no-firefox-snap.pref << 'EOF'
Package: firefox
Pin: release a=*
Pin-Priority: -10
EOF

With these steps, you can fully remove Snap in under 5 minutes and switch to a cleaner, faster, and open alternative system.

Related

Best GNOME 50 Extensions and Tweaks for Ubuntu 26.04
·1362 words·7 mins
Ubuntu 26.04 GNOME 50 Linux Desktop GNOME Extensions Ubuntu Customization Linux Themes Dash to Dock Wayland GNOME Tweaks Linux Tips
Dirty Frag Linux Vulnerability: Urgent Mitigation for Mainstream Distros
·527 words·3 mins
Linux Security Dirty Frag Privilege Escalation Kernel Vulnerability Zero-Day IPSec RxRPC Linux Mitigation
Nokia and Lockheed Martin Bring Open-Architecture 5G to Defense
·762 words·4 mins
5G Defense Technology Nokia Lockheed Martin Cmoss Military Communications Open Architecture NATO