Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

How To Remove Snapd From Ubuntu

  1. Home

By Khalid on 2023/07/05 - 10:11, last updated 2024/05/20 - 13:46

In recent long term support (LTS) releases of Ubuntu, Canonical has been adding more and more packages that are installed using snapd.

Snapd is a package manager that relies on static linking of dependencies, contrary to over two decades of Linux managing dependencies via dynamic linking, with Debian being the pioneer of this approach.

On desktop systems, packages like Firefox on Ubuntu are now forced to be in Snapd, rather than Debian. This is annoying, and counter intuitive for many reasons. Suffice it to say that those who have been using repositories in Debian format know that they get a robust system with minimal dependency issues, while also staying up to date at the same time.

Ubuntu Server LTS

So if you are like me and want to get rid of snap on your system, here is how to do it on Ubuntu Server LTS 22.04.

Which Packages are Installed via Snapd?

First, list the packages that are installed via snap, using this command:

snap list

The output will be similar to this:

Name    Version        Rev    Tracking       Publisher    Notes
core20  20230613       1950   latest/stable  canonical**  base
lxd     5.0.2-838e1b2  24322  5.0/stable/?   canonical**  -
snapd   2.59.5         19457  latest/stable  canonical**  snapd

Shutdown LXD

We need to remove all of those, but before we can remove lxd, we need to shut it down first:

sudo lxd shutdown

Remove Snapd Packages

Then remove the packages that are installed via snap:

sudo snap remove lxd 
sudo snap remove core20

Remove Snapd Itself

And finally remove snapd itself, first from snap, then from apt:

sudo snap remove snapd
sudo apt remove snapd

Xubuntu Desktop LTS (XFCE)

If you have an Xubuntu desktop system that runs XFCE, upgrading from 20.04 LTS to 22.04 LTS will force you to use snap for Firefox, which is very annoying.

When using the command do-release-upgrade, a warning popup dialog will be displayed like this.

Upgrade to the firefox snap
 
Starting in Ubuntu 22.04, all new releases of firefox are only available to
Ubuntu users through the snap package.
This package update will transition your system over to the snap by installing
it.                                 
It is recommended to close all open firefox windows before proceeding to the
upgrade.

Still, you can remove snap totally, using a similar set of commands:

snap list

And you will see output like this, showing all snap packages:

Name               Version          Rev    Tracking       Publisher    Notes
bare               1.0              5      latest/stable  canonical**  base
core22             20240408         1380   latest/stable  canonical**  base
firefox            126.0-2          4259   latest/stable  mozilla**    -
gnome-42-2204      0+git.510a601    176    latest/stable  canonical**  -
gtk-common-themes  0.1-81-g442e511  1535   latest/stable  canonical**  -
snapd              2.62             21465  latest/stable  canonical**  snapd

We now need to remove all the snap packages:

This initial command will take some times, and display various steps it is going through.

sudo snap remove firefox 

The following commands are fast.

sudo snap remove gtk-common-themes
sudo snap remove gnome-42-2204   
sudo snap remove core22      
sudo snap remove bare 
sudo snap remove snapd

Then we remove the snap daemon itself.

sudo apt purge snapd

The output will be something like this:

...
The following packages will be REMOVED:
  firefox* firefox-locale-en* snapd*
Do you want to continue? [Y/n]
...
Removing firefox-locale-en (1:1snap1-0ubuntu2) ...
Removing firefox (1:1snap1-0ubuntu2) ...
Removing snapd (2.62+22.04) ...
...
(Reading database ... 199659 files and directories currently installed.)
...
Discarding preserved snap namespaces
Final directory cleanup
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
Purging configuration files for firefox (1:1snap1-0ubuntu2) ...

You can now proceed with installing Firefox or Firefox ESR from the Ubuntu Mozilla Team's PPA, as per this article.

Conclusion

Whether you have a server, or a desktop running XFCE, you now have a snapd free server system ...

Contents: 
Linux
Tags: 
Ubuntu
  • Add comment

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.