Mateusz Adamowski Szkolenia

Blokowanie Snapd

Najnowsza wersja Ubuntu (22.04 LTS) wymusza instalację menedżera pakietów Snap.

Poniższy skrypt blokuje możliwość instalacji snapd przez APT-a.

#!/bin/bash

sudo tee /etc/apt/preferences.d/nosnap.pref << EOF
# To prevent repository packages from triggering the installation of Snap,
# this file forbids snapd from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html

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

Instalacja Firefoksa ESR

#!/bin/bash

sudo add-apt-repository ppa:mozillateam/ppa

sudo tee /etc/apt/preferences.d/mozilla-firefox.pref << EOF
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
EOF

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

sudo apt-get install -f firefox