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: packages.ubuntu.com/impish/web/firefox-geckodriver