WebKitWebDriver command not found

In this troubleshooting guide we learn how to fix WebKitWebDriver command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

WebKitWebDriver: command not found

or when using sudo you get the following error message

sudo: WebKitWebDriver: command not found

Solutions to WebKitWebDriver: command not found

How To Fix WebKitWebDriver: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu WebKitWebDriver is provided by webkit2gtk-driver package.

webkit2gtk-driver is:

WebKit is a web content engine, derived from KHTML and KJS from KDE, and used primarily in Apple’s Safari browser. It is made to be embedded in other applications, such as mail readers, or web browsers.

It is able to display content such as HTML, SVG, XML, and others. It also supports DOM, XMLHttpRequest, XSLT, CSS, JavaScript/ECMAScript and more.

WebKitGTK is a WebKit port designed to be used in GTK applications, and this build provides version 4.0 of the API.

This package provides the WebDriver service implementation for WebKitGTK.

To fix this problem, we can install more using the command below.

sudo apt-get -y install webkit2gtk-driver

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install webkit2gtk-driver.

sudo apt -y install webkit2gtk-driver

Or if you have aptitude installed you can use the following command.

sudo aptitude install webkit2gtk-driver

Summary

In this tutorial we learn how to fix WebKitWebDriver command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.