Firefox won't open, nor will Chromium.
Hello,
Every time I try to open Firefox or Chromium, I get this kind of error:
/home/users/etudiant/snap/firefox/3728: Permission denied
3 answers
-
Hello,
which Linux distribution?
-
Oops yes,
So in my opinion the best thing is to first reinstall Firefox by going through the Mozilla repositories.
First, remove the Firefox from snap and reinstall it.
Check the packages:
snap list --all dpkg-query --list "fire*" | grep "ii"removal.
sudo apt remove firefox sudo snap remove firefoxcheck if it is properly uninstalled.
snap list --all dpkg-query --list "fire*" | grep "ii"add repository and update
sudo add-apt-repository ppa:mozillateam/ppa sudo apt updateReinstallation
sudo apt install firefox sudo apt install firefox-locale-fr.
-
Hello,
I agree with message #3 that it's best to avoid using snap when possible and to favor apt. This allows you to have a set of software all managed by APT, which helps avoid duplicating the installation of certain software components.
However, I think we should avoid using PPA repositories when we can (which is the case with firefox, available in the official repositories, as shown by this link). Indeed, there’s no guarantee that the packages provided by these repositories will be consistent with the version of Ubuntu being used.
Moreover, given the installation folder, I suspect that Ndong used snap without sudo, which would explain why their current version of firefox is installed in /home rather than, for example, /opt.
So I would recommend:
1) Uninstall firefox from snap
snap remove firefox
2) Install firefox from APT if you have sudo rights:
sudo apt update sudo apt install firefox firefox-locale-fr
If your user is not a sudoer, then reinstall firefox using snap. Your current error is probably due to a rights issue (for example, you may have removed read and/or execute permissions on the folders containing the firefox executable and/or on the executable itself. Reinstalling is a simple way to ensure that the permissions will be correct.
Good luck
-
Yes, I wanted to remove my post to propose this:
#! /bin/sh # Uninstall Firefox from the Snap store sudo snap remove firefox # Create an APT keyring (if it doesn't already exist): sudo install -d -m 0755 /etc/apt/keyrings # Import the mozilla key wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null # Add the signed key to sources.list: echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null # Set priority for the Debian package echo ' Package: * Pin: origin packages.mozilla.org Pin-Priority: 1000 ' | sudo tee /etc/apt/preferences.d/mozilla # Install the Firefox package in French sudo apt update && sudo apt install firefox
-