Firefox won't open, nor will Chromium.

Ndong -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -

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

  1. steph810 Posted messages 1865 Registration date   Status Member Last intervention   152
     

    Hello,

    which Linux distribution?

    0
    1. bazfile Posted messages 58491 Registration date   Status Moderator Last intervention   20 266
       

      The question is asked in the Ubuntu forum, so .....

      0
  2. steph810 Posted messages 1865 Registration date   Status Member Last intervention   152
     

    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 firefox

    check 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 update

    Reinstallation

     sudo apt install firefox sudo apt install firefox-locale-fr

    .

    0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     

    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

    0
    1. steph810 Posted messages 1865 Registration date   Status Member Last intervention   152
       

      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 
      0
      1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > steph810 Posted messages 1865 Registration date   Status Member Last intervention  
         

        Thank you for your suggestion, even though I don't understand why you are adding a repository when Firefox is directly available in the official repositories.

        0