Comment 10 for bug 872172

Revision history for this message
Thor-Henrik Kvandahl (kvandahl) wrote :

apt-get install libcanberra-gtk* did not work for me.
Upgrade to 22.04 LTS did not work for me either.

My workaround was to remove Firefox snap completely and install install Firefox using apt as described below:

sudo snap remove firefox
cd ~/snap
rm -r firefox

sudo gedit /etc/apt/preferences.d/firefox-no-snap
add lines below:
Package: firefox*
Pin: release o=Ubuntu*
Pin-Priority: -1

sudo apt purge firefox
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt-get update
sudo apt install firefox

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

Sources:
https://www.debugpoint.com/2021/09/remove-firefox-snap-ubuntu/
https://ubuntuhandbook.org/index.php/2022/03/install-firefox-esr-ubuntu/