[root@localhost tar]# rpm -ivh google-chrome-stable_current_x86_64.rpm warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY error: Failed dependencies: libcairo.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgbm.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgtk-3.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libpango-1.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0(V_0.5.0)(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64
时间: 2023-07-16 12:15:51 浏览: 394
这个错误提示是因为安装Google Chrome需要一些依赖项,但是这些依赖项在你的系统中没有安装。你可以尝试使用以下命令安装缺失的依赖项:
```
sudo yum install -y libcairo2 libgbm1 libgtk-3-0 libpango-1.0-0 libxkbcommon0
```
然后再尝试安装Google Chrome:
```
sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
```
如果还是无法安装,可能需要安装其他依赖项或者升级系统。
相关问题
sudo rpm -ivh://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm rpm: -ivh://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm: unknown option [root@localhost ~]#
抱歉,我的回答中有一个错误。请使用以下命令来添加Zabbix官方仓库:
```
sudo rpm -ivh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
```
注意:将 `//` 改为 `/`。
然后,您可以继续按照之前的步骤进行安装Zabbix Server 5.0。如果还有其他问题,请随时提问。
[root@localhost tar]# rpm -ivh google-chrome-stable_current_x86_64.rpm warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY error: Failed dependencies: libX11.so.6()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXcomposite.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXdamage.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXext.so.6()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXfixes.so.3()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXrandr.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatk-1.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatk-bridge-2.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatspi.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libcairo.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libcups.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 liberation-fonts is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgbm.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgtk-3.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libpango-1.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libvulkan.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxcb.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0(V_0.5.0)(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 wget is needed by google-chrome-stable-113.0.5672.126-1.x86_64 xdg-utils is needed by google-chrome-stable-113.0.5672.126-1.x86_64
您在安装 Google Chrome 时出现了依赖性错误。这意味着您需要安装一些其他的软件包才能安装 Google Chrome。您可以使用以下命令来安装这些软件包:
```
sudo yum install -y libX11 libXcomposite libXdamage libXext libXfixes libXrandr atk at-spi2-atk cups-libs liberation-fonts vulkan xdg-utils wget
```
安装这些软件包后,再次尝试安装 Google Chrome。
阅读全文