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:
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: