Linux怎么安装谷歌浏览器 Linux命令行安装Chrome教程【详解】
技术百科
冰火之心
发布时间:2026-01-27
浏览: 次 Linux下安装谷歌浏览器有五种命令行方法:一、APT仓库法(Ubuntu/Debian);二、DEB包直装法(离线/受限网络);三、Snap法(支持snapd的发行版);四、RPM法(CentOS/RHEL/Fedora);五、自动化脚本法(多发行版适配)。
如果您在Linux系统中需要通过命令行安装谷歌浏览器,但不确定该使用哪种方式或遇到依赖错误、源不可达等问题,则可能是由于发行版差异、架构识别错误或网络策略限制所致。以下是多种经验证的命令行安装方法:
一、通过APT仓库添加并安装(适用于Ubuntu/Debian系)
此方法将Google官方APT源加入系统软件源列表,确保后续可通过apt update自动获取安全更新与版本升级,适合长期使用且注重稳定性的用户。
1、下载Google Chrome的GPG签名密钥:wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg
2、将Chrome稳定版仓库地址写入源配置文件:echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
3、更新本地APT包索引:sudo apt update
4、安装google-chrome-stable主程序包:sudo apt install google-chrome-stable -y
二、直接下载并安装DEB包(通用Debian系离线/受限网络场景)
当无法访问外部APT源或需跳过源配置步骤时,可直接获取官方构建的DEB安装包,由dpkg完成本地安装,操作轻量、路径可控。
1、使用wget获取最新稳定版64位DEB包:wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2、调用dpkg执行安装:sudo dpkg -i google-chrome-stable_current_amd64. 
3、若提示依赖缺失,立即修复并重装:sudo apt --fix-broken install -y
三、使用Snap安装(适用于支持snapd的现代发行版)
Snaps是容器化软件包格式,自带运行时依赖,无需手动处理lib冲突,适合SELinux严格环境或Ubuntu Core等系统。
1、确认snapd服务已启用:sudo systemctl is-active snapd
2、如未运行则启动并设为开机自启:sudo systemctl enable --now snapd
3、从Snap Store安装稳定版Chrome:sudo snap install google-chrome
四、使用RPM包安装(适用于CentOS/RHEL/Fedora)
Red Hat系发行版原生支持RPM包管理,直接安装官方RPM可避免APT兼容性问题,且不依赖第三方仓库配置。
1、下载Chrome稳定版x86_64 RPM包:wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
2、使用dnf或yum进行本地安装:sudo dnf localinstall -y google-chrome-stable_current_x86_64.rpm
3、若使用较老版本RHEL/CentOS 7,改用yum命令:sudo yum localinstall -y google-chrome-stable_current_x86_64.rpm
五、执行自动化脚本安装(一键适配多发行版)
该方案通过社区维护的install_chrome.sh脚本自动探测系统类型、架构与包管理器,动态选择安装路径,降低人工判断成本。
1、下载脚本文件:wget http://chrome.richardlloyd.org.uk/install_chrome.sh
2、赋予脚本可执行权限:chmod u+x install_chrome.sh
3、以稳定版模式运行安装:sudo ./install_chrome.sh -s
# 自动化
# ai
# google
# 适用于
# 您在
# 离线
# 浏览器
# 设为
# 命令行
# 配置文件
# https
# linux
# centos
# ubuntu
# http
# debian
# go
# 主程序
# chrome
# amd
# 架构
# echo
# 软件包
# 发行版
# 稳定版
# dnf
# 谷歌
# 谷歌浏览器
# 多发
相关栏目:
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
AI推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
SEO优化<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
技术百科<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
谷歌推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
百度推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
网络营销<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
案例网站<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
精选文章<?muma echo $count; ?>
】
相关推荐
- Win10怎么创建桌面快捷方式 Win10为应用创
- Win10电脑怎么设置休眠快捷键_Windows1
- 微信企业付款回调PHP怎么接收_处理企业付款异步通
- 如何在 Go 中正确反序列化多个同级 XML 元素
- windows 10专注助手怎么关闭_window
- 如何在 Go 中创建包含 map 的 slice(
- Windows10系统怎么查看运行时间_Win10
- Windows10电脑怎么设置电源按钮_Win10
- C++ STL算法库怎么用?C++常用算法函数(s
- win11 OneDrive怎么彻底关闭 Win1
- Linux如何使用Curl发送请求_Linux下A
- 如何使用Golang实现多重错误处理_Golang
- Windows10怎么卸载预装软件_Windows
- Win11怎么关闭OneDrive同步_Win11
- Python 中将 ISO 8601 时间戳转换为
- windows如何禁用驱动程序强制签名_windo
- Win10系统怎么查看端口状态_Windows10
- c++中如何使用虚函数实现多态_c++多态性实现原
- Windows10系统怎么查看CPU核心数_Win
- Win11怎么关闭通知消息_屏蔽Windows 1
- Win11怎么开启上帝模式_创建Windows 1
- 如何在 ACF 中正确更新嵌套多层 Group 字
- How to Properly Use NumPy
- Win11怎样安装钉钉客户端_Win11安装钉钉教
- c++ std::future和std::prom
- windows系统找不到无线网络怎么办_windo
- php订单日志怎么记录物流_php记录订单物流变更
- Win10怎么查看内存时序参数_Win10CPU-
- Win11怎么设置任务栏透明_Windows11使
- Win10怎么卸载金山毒霸_Win10彻底卸载金山
- php后缀怎么变mp4能播放_让php伪装mp4正
- Win11怎么关闭用户账户控制UAC_Window
- c++怎么使用std::unique实现去重_c+
- mac怎么打开终端_MAC终端Terminal使用
- 新手学PHP架构总混淆概念咋办_重点梳理【教程】
- 如何在Golang中处理JSON字段缺失_Gola
- 如何在 Go 项目开发中正确处理本地包导入与远程模
- c++如何打印函数堆栈信息_c++ backtra
- Win11触摸板没反应怎么办_开启Win11笔记本
- Python装饰器设计思路_功能增强机制说明【指导
- 如何在Golang中捕获结构体方法错误_Golan
- PHP主流架构怎么部署到Docker_容器化流程【
- MAC怎么在照片中添加水印_MAC自带编辑工具文字
- MAC如何隐藏文件夹及文件_MAC终端命令隐藏与第
- VSC怎样在Linux运行PHP_Ubuntu系统
- Win11怎么设置系统还原_Windows11系统
- php485读数据时阻塞怎么办_php485非阻塞
- 如何使用正则表达式批量替换重复的“-”模式为固定字
- win11如何清理传递优化文件 Win11为C盘瘦
- 如何在Golang中修改数组元素_通过指针实现原地

QQ客服