1
2
3
4
5
6
# 获取chrome,无需代理
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# 提权并安装chrome
sudo apt install ./google-chrome-stable_current_amd64.deb
# 检查chrome版本
google-chrome --version

这里寻找对应版本的chromedriver

1
2
3
4
5
6
7
wget https://storage.googleapis.com/chrome-for-testing-public/127.0.6533.72/linux64/chromedriver-linux64.zip
unzip chromedriver-linux64.zip
cd ./chromedriver-linux64
sudo mv -f chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
chromedriver --version