Linux安装Chrome问题总结(持续更新中)
\(\color{blue}{杂笔}\)
想要再服务器上运行selenium,使用chrome做driver,服务器需要先安装chrome
\(\color{purple}{No\,\,package\,\,google-chrome-stable\,\,available}\)
我尝试运行如下命令安装
yum install google-chrome-stable --nogpgcheck
报错如下:
No package google-chrome-stable available.
原因:没有配置yum源信息
解决办法:
1.创建google-chrome.repo,通常再目录/etc/yum.repos.d/下
2.更改上述文件为:
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
3.重新调用一开始的命令
yum install google-chrome-stable --nogpgcheck
本文来自博客园,作者:OceanCT,转载请注明原文链接:https://www.cnblogs.com/OceanCT/p/15911067.html

浙公网安备 33010602011771号