running google chrome headless on ec2 ubuntu server
I tried to replicate and had same issues as you. But an alternative approach worked for me. You may try that, preferably on fresh ubuntu instance.
install pre-requsits
sudo apt updatesudo apt install unzip libnss3 python3-pip
install driver for chrome 83
cd /tmp/sudo wget https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_linux64.zipsudo unzip chromedriver_linux64.zipsudo mv chromedriver /usr/bin/chromedriverchromedriver --version
install google-chrome-stable current version (83)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudo apt install ./google-chrome-stable_current_amd64.deb
check installation
google-chrome-stable --version
install selenium
pip3 install selenium --user
The installation is successful in my tests, but I haven't verified if selenium
works as intended. I only focused on whether chrome
and selenium
install.