File thunderbird-deb-install of Package kimi-utils-ubuntu

#!/usr/bin/bash

sudo snap remove --purge thunderbird
sudo apt-get -y remove thunderbird

sudo add-apt-repository -y ppa:mozillateam/ppa

# Configure APT to prioritize packages from the Mozilla repository:

# Clean old preferences
sudo rm -f /etc/apt/preferences.d/mozilla-firefox
sudo rm -f /etc/apt/preferences.d/mozilla-thunderbird

# New preferences
echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

Package: thunderbird*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1

Package: thunderbird*
Pin: release o=Ubuntu
Pin-Priority: -1
' | sudo tee /etc/apt/preferences.d/mozilla

echo "ls -al /etc/apt/preferences.d/"
ls -al /etc/apt/preferences.d/

# Update your package list, and install the Thunderbird .deb package:

sudo apt-get update && sudo apt-get install thunderbird

echo
echo "Thunderbird DEB should now be installed."
echo "===================================="
echo
sleep 1
#echo "If you want Firefox web browser, as DEB package, install with command:"
#echo "    sudo apt-get install firefox"
#echo "    firefox-deb-install"
sleep 1
echo "Recommending extra packages:"
echo "    firetools firejail"
sleep 1
echo "to sandbox Thunderbird. Install with command:"
sleep 1
echo "    sudo apt-get install firetools firejail"
sleep 1
echo "Start thunderbird in sandbox:"
sleep 1
echo "    firejail thunderbird"
sleep 1
echo
echo "[OK] Done."
openSUSE Build Service is sponsored by