linux - 无法在 AWS EC2 AMI 中安装 GConf2

标签 linux amazon-ec2 selenium-chromedriver yum gconf

我已经设置了一个 AWS EC2 实例 [Amazon Linux AMI 2017.03.1 (HVM)],每当我尝试检查 chromedriver 的版本时(从 here 下载 2.30,也有足够的权限运行,因为 stat -c "%a %n"chromedriver 使用命令给出 755 chromedriver

chromedriver --version

我收到以下错误:

error while loading shared libraries: libgconf-2.so.4: 
cannot open shared object file: No such file or directory

ldd chromedriver 的结果也是:

libgconf-2.so.4 => not found

我知道上面的库是由 GConf2 提供的(引用 here ) 所以我运行了命令 yum install Conf2 我遇到了以下错误:

# yum install GConf2
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main    | 2.1 kB  00:00:00
amzn-updates | 2.3 kB  00:00:00
No package GConf2 available.
Error: Nothing to do

注意:

  1. 我正在以根用户身份运行命令!
  2. 尝试执行 yum clean allyum update 并更新了所有的包并且仍然得到 错误
  3. 还尝试了 yum provides */libgconf-2.so.4 ,得到错误:Loaded plugins: priorities, update-motd, upgrade-helper No matches found

最佳答案

我在 this 之后安装了 Gconf2

关于linux - 无法在 AWS EC2 AMI 中安装 GConf2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46330083/

相关文章:

amazon-web-services - FileZilla : "Too many authentication failures for ubuntu" when i do sftp to my EC2 instance

java - 如何最大化 Selenium 屏

python - 无法使用 Python 通过 Robot Framework 连接到 localhost :xxxx from session not created: Chrome version must be >= 69. 0.3497.0 上的 chrome

linux - xpath html 合并列

sql-server - dockerfile 如何将 SQL Server 公开为本地主机?

ssh - 使用 key 通过 ssh 进行 Rsync 获取错误 EC2

python-3.x - 如何使用 Boto 3 显示 EC2 实例名称

shell - 存储库 'http://security.debian.org/debian-security buster/updates InRelease' 将其 'Suite' 值从 'stable' 更改为 'oldstable'

c - Linux 缓冲区溢出返回到 libc

linux - CUPS绕过接口(interface)