Skip to content

Instantly share code, notes, and snippets.

@stephenharris
Last active April 2, 2023 09:44
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save stephenharris/90bb468bf80e7f7b02e8b8afe694de4f to your computer and use it in GitHub Desktop.
Save stephenharris/90bb468bf80e7f7b02e8b8afe694de4f to your computer and use it in GitHub Desktop.
Installing a particular version of firefox on Linux.

Installing a particular version of FireFox on Linux

  1. Does an existing version of firefox exist?

    firefox --version
    

    If not, skip to (3).

  2. Install dependency

    sudo apt-get install libgtk2.0-0
    
  3. Download firefox version: FireFox's release archive can be found at https://ftp.mozilla.org/pub/firefox/releases/. You will need to use the appropriate version (typically linux-x86_64, but you can run arch or uname -m to check if your machine is 64 or 32 bit).

    wget https://ftp.mozilla.org/pub/firefox/releases/45.0.2/linux-x86_64/en-GB/firefox-45.0.2.tar.bz2
    # Saving to: ‘firefox-45.0.2.tar.bz2’
    
  4. Extract the binary

    tar xvf firefox-45.0.2.tar.bz2
    
  5. Backup existing firefox directory

    If you have a firefox already installed, back-up the existing version:

    sudo mv /usr/bin/firefox /usr/bin/firefox-backup
    

    and remove the symbolic link

    rm /usr/bin/firefox
    
  6. Move the extracted firefox directory

    sudo mv firefox/ /usr/lib/firefox
    
  7. Create a symbolic link to the firefox binary

    sudo ln -s /usr/lib/firefox /usr/bin/firefox
    
@AlessandroIudicone
Copy link

Hello @dryu99
I actually don't incur in this error neither using a specific package source.
Trying with an Ubuntu base image, the package is successfully found and installed (although I incur in other errors later through the execution of the Dockerfile script, like "wget not installed" or "bzip2: Cannot exec: No such file or directory").
I tried with an Ubuntu base image using Firefox versions 55.0.3, 93.0 and the latest 103.0.2 .
Which base image are you using ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment