Below is a simple script that will remove snaps from the OS and install Chromium from apt deb packaging and prevent Chromium from reverting to the snap version on future updates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
#!/bin/bash #snap list | grep -v "^Name" | awk {'print "sudo snap remove " $1'} sudo snap remove snap-store sudo snap remove chromium sudo snap remove gtk-common-themes sudo snap remove gnome-3-28-1804 sudo snap remove core18 sudo snap remove snapd snap list sudo umount /run/snap/ns sudo systemctl disable snapd.service sudo systemctl disable snapd.socket sudo systemctl disable snapd.seeded.service sudo systemctl disable snapd.autoimport.service sudo systemctl disable snapd.apparmor.service sudo rm -rf /etc/apparmor.d/usr.lib.snapd.snap-confine.real sudo systemctl start apparmor.service #df | grep snap | awk {'print "sudo umount " $6'} sudo umount /snap/chromium/1424 sudo umount /snap/gtk-common-themes/1514 sudo umount /snap/gnome-3-28-1804/145 sudo umount /snap/core18/1944 sudo umount /snap/snapd/10492 sudo umount /var/snap sudo apt purge snapd rm -rf ~/snap sudo rm -rf /snap sudo rm -rf /var/snap sudo rm -rf /var/lib/snapd cat <<EOF | sudo tee /etc/apt/preferences.d/snapd Package: snapd Pin: origin * Pin-Priority: -1 EOF cat <<EOF | sudo tee /etc/apt/preferences.d/pin-xalt7x-chromium-deb-vaapi Package: * Pin: release o=LP-PPA-xalt7x-chromium-deb-vaapi Pin-Priority: 1337 EOF sudo add-apt-repository ppa:xalt7x/chromium-deb-vaapi sudo apt update sudo apt-get install chromium-browser |