Centos7安装chrome、chromedrive

安装流程
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
cd /opt/google/chrome/
wget http://npm.taobao.org/mirrors/chromedriver/114.0.5735.90/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x /opt/google/chrome/chromedriver

异常情况

  1. 缺少so包
    执行失败提示:
    Error: Package: google-chrome-stable-xxxxxxxxx-1.x86_64 (google-chrome)
    Requires: libvulkan.so.1()(64bit) Unable to install this package libvulkan.so.1()(64bit), unable to find a source to download it.

下载地址:https://centos.pkgs.org/7/centos-x86_64/libappindicator-gtk3-12.10.0-13.el7.x86_64.rpm.html

  1. so包冲突
    Error: Transaction test error:
    file /usr/share/doc/at-spi2-core/NEWS from install of at-spi2-core-2.48.2-1.fc38.i686 conflicts with file from package at-spi2-core-2.48.0-1.fc38.x86_64
    file /usr/share/doc/libssh/CHANGELOG from install of libssh-0.10.5-1.fc38.i686 conflicts with file from package libssh-0.10.4-4.fc38.x86_64

https://discussion.fedoraproject.org/t/dnf-update-stalled-by-conflict/82813
https://www.cnblogs.com/bjarnescottlee/p/13871634.html

中文乱码问题:
https://blog.csdn.net/Happy_Sunshine_Boy/article/details/123204457
centos安装中文字体
https://cloud.tencent.com/developer/article/1616990


google-chrome for centos 历史版本下载
http://orion.lcg.ufrj.br/RPMS/myrpms/google/
linux一次安装chromedrive记录
https://www.cnblogs.com/zhangxl1016/p/17044331.html

posted @ 2023-12-13 10:14  鱼007  阅读(221)  评论(0编辑  收藏  举报