我是AWS的新手,我正试图在一个ubuntu18.04 ec2实例上部署一个pyautogui爬虫。
但是当我试图安装google时,我会得到一些错误。
我用本教程安装了所有https://understandingdata.com/install-google-chrome-selenium-ec2-aws/包,但是仍然有错误。
当运行下面的代码时,出现了此错误。
google-chrome – version && which google-chrome
cat: relocation error: /opt/google/chrome/lib/libc.so.6: symbol _dl_starting_up version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
cat: relocation error: /opt/google/chrome/lib/libc.so.6: symbol _dl_starting_up version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference我不知道如何在无界面服务器上“打开”这个铬标签。
感谢你的帮助。如果需要更多的信息告诉我。
发布于 2020-08-26 02:11:54
您所遵循的说明是针对Amazon的,而不是Ubuntu。下面是应该适用于Ubuntu的步骤(您可能需要从一个新实例开始):
sudo apt update
sudo apt install unzip libnss3
cd /tmp/
wget https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
chromedriver -version
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb然后
google-chrome -version && which google-chrome给予:
Google Chrome 85.0.4183.83
/usr/bin/google-chromehttps://stackoverflow.com/questions/63589237
复制相似问题