There are essentially three steps:
- download a release from github
- unzip into the right directory, namely
usr/local/bin
(can be merged into one line!)
- set executable permissions.
These steps should work for any Linux distribution (worked on my Debian 10). Here is the shell code:
wget https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz
sudo tar -xzvf geckodriver*tar.gz -C /usr/local/bin
sudo chmod +x /usr/local/bin/geckodriver
As for newest versions of Ubuntu, it can be installed with sudo apt-get install firefox
. Older versions accept sudo apt-get install firefox-geckodriver
.
Package firefox-geckodriver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
firefox
firefox-geckodriver
Ubuntu package no longer seems to be available as of Ubuntu 22.04: https://packages.ubuntu.com/impish/web/firefox-geckodriver – countermeasure Nov 29 '22 at 00:52sudo apt install firefox
on Ubuntu 22.04 will now also install geckodriver. – countermeasure Nov 30 '22 at 08:52snap
, even when installed usingapt
. I'd also be interested to hear how this all works from someone who has some insight into that :) – countermeasure Dec 06 '22 at 06:58