Skip to content


There's some controversy regarding snap, Ubuntu's new packaging format. LTSP does its best to support it, but occasionally some issues arise with it that can't be solved from the LTSP side, for example wasting RAM in live sessions or not working with NFS home.

If you decide to remove snap, you may open a terminal, type sudo -i to become root, and then copy/paste all the following code:

test -x /usr/bin/snap || exit 0
if [ -f /var/lib/snapd/desktop/applications/firefox_firefox.desktop ] &&
    [ ! -L /var/lib/snapd/desktop/applications/firefox_firefox.desktop ]; then
packages=$(dpkg -l ayatana-indicator-application indicator-application mate-hud snapd 2>/dev/null | awk '/^ii/ { print $2 }')
apt-get purge --yes --auto-remove $packages
if [ "$snapff" = 1 ]; then
    # If firefox snap was installed, replace it with the .deb from the PPA
    add-apt-repository --yes ppa:mozillateam/ppa
    echo 'Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001' >/etc/apt/preferences.d/60mozillateam-ppa
    # If you need more locales e.g. firefox-locale-el add them in this line
    apt-get install --yes firefox firefox-locale-en
    # Work around
    if [ -f /usr/share/mate/applications/firefox.desktop ]; then
        dpkg-divert --package sch-scripts --divert \
            /usr/share/mate/applications/firefox-desktop.diverted \
            --rename /usr/share/mate/applications/firefox.desktop
        if [ ! -e /var/lib/snapd/desktop/applications/firefox_firefox.desktop ]
            mkdir -p /var/lib/snapd/desktop/applications
            ln -s /usr/share/applications/firefox.desktop \