6

System information: Computer Summary

Ubuntu version: 
philossefer@dell:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy

When I'm trying to launch Firefox Web Browser through terminal, following message is displayed before firefox is launched.

philossefer@dell:~$ firefox
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied
Gtk-Message: 11:19:46.906: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:19:46.985: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

Afterwards, whenever I'm trying to launch firefox, after the first launch in-between system boot, following messaged is been displayed before firefox gets launched.

philossefer@dell:~$ firefox
Gtk-Message: 11:19:46.906: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:19:46.985: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

I have tried the following solution,by "copy and paste" those messages on google.

What I have tried so far, without any success

Try 1

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

Try 2

sudo apt-get install --reinstall libcanberra-gtk-module

Try 3: Remove firefox and then reinstall

Uninstall:

 sudo snap remove firefox

Reinstall:

sudo apt install firefox

NOTE: I was rebooting the system after, every installation and uninstallation.

reboot

Also Updated my Ubuntu beforehand.

sudo apt update && sudo apt upgrade -y

Current Status: Still those messages are there, when I'm launching firefox using command line.

My question is, why those messages are been displayed and how to get rid of them?

SubQuestion: Is there any difference between launching firefox through icon and through using command line?

4 Answers4

2

I ran into the same issue. I was not able to get the snap working, however I was able to successfully install a Firefox deb on Ubuntu 22.04. You add the Mozilla Team PPA, install the Firefox deb, then pin them so the Firefox Snap is not installed later. Here are the steps I followed:

Step 1:

sudo snap remove firefox

Step 2:

echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox

Step 3:

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

Step 4:

sudo apt install firefox

Reference: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04

1

Can't upvote or comment on the second answer due to just creating an account for mainly that purpose - so I'll write a follow-up answer.

I've run into the same problem, force-installing the snap-package despite the normal use of apt by Ubuntu is causing a heap of issues, and the one you're observing is one of them.

Uninstall the snap package, install the apt-package as described by @kaiyobi, and your issues should be gone (just until Ubuntu force-feeds you the snap package again, ignoring Pin-Priority etc, by their installers).

0

First, make sure it start well in GUI (normally by click)

If yes, then Try:

$ firefox-esr (this may work)

Firefox logo

Lorenz Keel
  • 9,511
0

In case people had the same/similar issue -> this post helped me solved any snap complaints: https://askubuntu.com/a/1211255/1961628

Found a solution that actually works. I've run

sudo dpkg-reconfigure apparmor

and added /home/DOMAIN there, then reboot.

My problem was manifesting as permissions denied, unable to complete apt upgrade, issues with mounting, not being able to spawn firefox (which was the root issue - I think I did not close it properly). If you have any similar - try the above two steps, it should work.

roslyn
  • 101