0


centos7中安装chrom浏览器问题与解决

下载连接:http://www.google.cn/chrome/browser/desktop/index.html
参考文章:安装参考:https://www.linuxidc.com/Linux/2019-09/160524.htm
闪退问题解决参考:https://www.cnblogs.com/iouwenbo/p/10263229.html
下载完成使用root权限安装:命令1:sudo rpm -ivh google-chrome-stable.current_x86_64.rpm
输入管理员密码:*****
其中安装过程报错:警告:google-chrome-stable_current_x86_64.rpm: 头V4 DSA/SHA1 Signature, 密钥 ID 7fac5991: NOKEY
错误:依赖检测失败:
有两种解决方案:1:yum localinstall
sudo yum localinstall google-chrome-stable.current_x96_64.rpm
这样自动解决依赖问题
第二种方案:
安装依赖:
yum install pax*
yum install RedHat-lsb*
yum -y install libXss*
依赖安装完成
安装成功后,不能打开和打开闪退问题解决:
将 /usr/share/application/ 目录下的 Google Chrome 图标复制到桌面
直接双击运行,弹出的对话框选 “Trust and Launch” 即可启动,文件变为Google Chrome的图标:
问题表现:

双击Google Chrome图标无反应,无法打开浏览器。

在命令行打开报错:

[root@wilber ~]# /usr/bin/google-chrome
[5024:5024:0113/164154.164753:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

解决方法:

[root@wilber ~]# /usr/bin/google-chrome --no-sandbox //添加–no-sandbox后即可启动浏览器

桌面图标右击–>属性–>启动命令后添加“–no-sandbox”

即:/usr/bin/google-chrome-stable %U --no-sandbox

[root@wilber ~]# vim /usr/share/applications/google-chrome.desktop

修改:Exec=/usr/bin/google-chrome-stable %U

为:Exec=/usr/bin/google-chrome-stable %U --no-sandbox

此文章完全借鉴于上面两篇文章,为方便自己忘记时使用,也希望能帮助更多的人,也感谢写这两篇文章的朋友,如有冒犯请联系我删除!
————————————————

原文链接:https://blog.csdn.net/zxg_mengxiang/article/details/106288782

上述安装成功

[openeuler@localhost Desktop]$ sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
警告:google-chrome-stable_current_x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 9b30acf2: NOKEY
错误:依赖检测失败:
liberation-fonts 被 google-chrome-stable-126.0.6478.182-1.x86_64 需要
libvulkan.so.1()(64bit) 被 google-chrome-stable-126.0.6478.182-1.x86_64 需要
[openeuler@localhost Desktop]$
[openeuler@localhost Desktop]$
[openeuler@localhost Desktop]$ find google-chrome-stable_current_x86_64.rpm
google-chrome-stable_current_x86_64.rpm
[openeuler@localhost Desktop]$
[openeuler@localhost Desktop]$
[openeuler@localhost Desktop]$ sudo yum localinstall google-chrome-stable_current_x86_64.rpm
Last metadata expiration check: 1:52:31 ago on 2024年07月18日 星期四 16时18分22秒.
Dependencies resolved.
=================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================
Installing:
google-chrome-stable x86_64 126.0.6478.182-1 @commandline 106 M
Installing dependencies:
liberation-fonts noarch 1:2.00.5-3.oe1 OS 1.5 M
mesa-vulkan-drivers x86_64 20.1.4-2.oe1 OS 4.0 M
vulkan-loader x86_64 1.1.92.0-2.oe1 OS 98 k

Transaction Summary

Install 4 Packages

Total size: 111 M
Total download size: 5.7 M
Installed size: 352 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): vulkan-loader-1.1.92.0-2.oe1.x86_64.rpm 29 kB/s | 98 kB 00:03
(2/3): liberation-fonts-2.00.5-3.oe1.noarch.rpm 139 kB/s | 1.5 MB 00:11
(3/3): mesa-vulkan-drivers-20.1.4-2.oe1.x86_64.rpm 287 kB/s | 4.0 MB 00:14


Total 404 kB/s | 5.7 MB 00:14
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : vulkan-loader-1.1.92.0-2.oe1.x86_64 1/4
Running scriptlet: vulkan-loader-1.1.92.0-2.oe1.x86_64 1/4
Installing : mesa-vulkan-drivers-20.1.4-2.oe1.x86_64 2/4
Installing : liberation-fonts-1:2.00.5-3.oe1.noarch 3/4
Running scriptlet: google-chrome-stable-126.0.6478.182-1.x86_64 4/4
Installing : google-chrome-stable-126.0.6478.182-1.x86_64 4/4
Running scriptlet: google-chrome-stable-126.0.6478.182-1.x86_64 4/4
Verifying : liberation-fonts-1:2.00.5-3.oe1.noarch 1/4
Verifying : mesa-vulkan-drivers-20.1.4-2.oe1.x86_64 2/4
Verifying : vulkan-loader-1.1.92.0-2.oe1.x86_64 3/4
Verifying : google-chrome-stable-126.0.6478.182-1.x86_64 4/4

Installed:
google-chrome-stable-126.0.6478.182-1.x86_64 liberation-fonts-1:2.00.5-3.oe1.noarch mesa-vulkan-drivers-20.1.4-2.oe1.x86_64
vulkan-loader-1.1.92.0-2.oe1.x86_64

Complete!
[openeuler@localhost Desktop]$

来来来 用服务器看视频拉

勉强能凑合 但是不够流畅

标签: linux centos

本文转载自: https://blog.csdn.net/hxsln11/article/details/140530030
版权归原作者 hxsln11 所有, 如有侵权,请联系我们删除。

“centos7中安装chrom浏览器问题与解决”的评论:

还没有评论