Skip to content

Instantly share code, notes, and snippets.

@Dobrowit
Last active April 10, 2025 15:15
Show Gist options
  • Save Dobrowit/6b5fb09d08961c2d34502f9ab8c9d175 to your computer and use it in GitHub Desktop.
Save Dobrowit/6b5fb09d08961c2d34502f9ab8c9d175 to your computer and use it in GitHub Desktop.
Ubuntu desnap

De-snap Ubuntu 23.10

Finished installing Ubuntu 23.10? Wondering what's next? or are you A Long term Ubuntu user want to get rid of snap store from your installation? Well you're at the right place... follow these steps and get a Fast, more Secure & Reliable Ubuntu Desktop.

https://www.youtube.com/watch?v=4k_3iYqymRo

Chapters

  • 00:00 Channel Intro
  • 00:07 Title
  • 00:49 GNOME 45 Improvements
  • 02:26 Ubuntu Issues
  • 03:07 Step 1: Remove & Disable Snap
  • 10:39 Step 2: Reinstall Firefox and Gnome Components
  • 16:41 Step 3: Enable Flathub integration
  • 21:21 Step 4: Install required Extensions
  • 26:09 Bonus Step: Add Custom Keyboard Shortcuts

1. Remove & Disable Snap

List all snap apps:

sudo snap list

Remove them in following order:

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge gnome-42-2204 
sudo snap remove --purge gtk-common-themes 
sudo snap remove --purge snapd-desktop-integration 
sudo snap remove --purge bare
sudo snap remove --purge firmware-updater 
sudo snap remove --purge core22 
sudo snap remove --purge snapd

Make sure all snap apps are removed:

sudo snap list

Remove snapd if no snap apps are left:

sudo apt remove --autoremove snapd

Remove snap home directory:

rm -rf ~/snap/

Prevent snap from automatically installing itself. Create the following file using nano:

sudo nano /etc/apt/preferences.d/nosnap.pref

Add the following lines to it:

Package: snapd
Pin: release a=*
Pin-Priority: -10

Save & exit nano.

2. Reinstall firefox & missing gnome components from apt repo

Install missing gnome components:

sudo apt update
sudo apt install --install-suggests gnome-software

Add firefox repository:

sudo add-apt-repository ppa:mozillateam/ppa

Install firefox:

sudo apt update
sudo apt install -t 'o=LP-PPA-mozillateam' firefox

Enable firefox updates:

echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattanded-upgrades-firefox

Create the following file using nano:

sudo nano /etc/apt/preferences.d/mozzilateamppa

Add the following lines to it:

Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501

Save & exit nano.

3. Enable flatpak integration

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

Reboot to apply:

reboot

4. Install some required apps

sudo apt update
sudo apt upgrade
sudo apt install gnome-tweaks gnome-weather neofetch
sudo apt install ubuntu-restricted-extras

5. Install some basic extensions

  • disable ubuntu-appindicator, ubuntu-dock, ubuntu-tiling
  • install user-themes, appindicator, dash-to-dock, removable drive menu, vitals
  • configure dash-to-dock to mimic ubuntu-dock

6. Add Custom keyboard shortcuts

Configure custom keyboard shortcuts for Shut Down & Restart:

systemctl poweroff
systemctl reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment