Selenium GeckoDriver Ubuntu Installation | Generated by AI

Home PDF

To install the Selenium Firefox driver (geckodriver) on Ubuntu, follow these steps:

  1. Install Firefox (if not already installed):
    sudo apt update
    sudo apt install firefox
    
  2. Download geckodriver:
    • Visit the geckodriver releases page.
    • Choose the latest version compatible with your Firefox version. For Ubuntu, download the Linux 64-bit version (e.g., geckodriver-vX.XX.X-linux64.tar.gz).
    • Example command to download (replace X.XX.X with the latest version):
      wget https://github.com/mozilla/geckodriver/releases/download/vX.XX.X/geckodriver-vX.XX.X-linux64.tar.gz
      
  3. Extract the downloaded file:
    tar -xvzf geckodriver-vX.XX.X-linux64.tar.gz
    
  4. Move geckodriver to a system path:
    • Move the extracted geckodriver to /usr/local/bin to make it accessible system-wide:
      sudo mv geckodriver /usr/local/bin/
      
    • Make it executable:
      sudo chmod +x /usr/local/bin/geckodriver
      
  5. Install Selenium for Python (if using Python):
    pip install selenium
    
  6. Verify installation:
    • Check geckodriver version:
      geckodriver --version
      
    • Test with a simple Python script:
      from selenium import webdriver
      
      driver = webdriver.Firefox()
      driver.get("https://www.example.com")
      print(driver.title)
      driver.quit()
      

Notes:

This should set up the Selenium Firefox driver on Ubuntu. Let me know if you hit any issues!


The difference between geckodriver-v0.36.0-linux-aarch64.tar.gz and geckodriver-v0.36.0-linux64.tar.gz lies in the target CPU architecture:

Key Points:

The .asc files are GPG signatures for verifying the integrity and authenticity of the corresponding .tar.gz files.


Back 2025.06.20 Donate