Daniel Liu

I Need You To Tell Me That I’m A Good Person.

Ubuntu 安装 chromedriver

2021年6月10日

Download Chromedriver

This should download the latest version of Chromedriver, and extract it to the correct location, with the correct permissions.

1
2
3
version=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE")
wget -qP /tmp/ "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
sudo unzip -o /tmp/chromedriver_linux64.zip -d /usr/bin

The permissions should be 755 by default, but if they aren’t, you can run:

1
sudo chmod 755 /usr/bin/chromedriver

If you want a specific version, see the index page, or the website.
You can also edit the above commands to use LATEST_RELEASE_80, if you wanted version 80, for example.


Update to latest Chrome

If you don’t already have the latest version of Google Chrome, you may need to update it with:

1
sudo apt-get --only-upgrade install google-chrome-stable

参考来源

How To Install Chromedriver on Ubuntu 20.04 without snap | TheNerdLife Blog:
command line - How to update Chromedriver on Ubuntu? - Stack Overflow:

不许转载😡!!!

Buy me a cup of coffee ☕.