Loading

Loading

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
posted @ 2022-02-18 19:32  OceanCT  阅读(725)  评论(0)    收藏  举报