Debian 10 Buster 安装 Google Chrome 浏览器。
安装
获取安装包
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
安装本地包
sudo dpkg -i google-chrome-stable_current_amd64.deb
安装时报错
Selecting previously unselected package google-chrome-stable.
(Reading database ... 135260 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (86.0.4240.198-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on fonts-liberation; however:
Package fonts-liberation is not installed.
dpkg: error processing package google-chrome-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
google-chrome-stable
修复依赖
sudo apt --fix-broken install
修复完成后即可使用
修复过程如下
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
fonts-liberation
The following NEW packages will be installed:
fonts-liberation
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 827 kB of archives.
After this operation, 2,143 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.163.com/debian buster/main amd64 fonts-liberation all 1:1.07.4-9 [827 kB]
Fetched 827 kB in 0s (2,118 kB/s)
Selecting previously unselected package fonts-liberation.
(Reading database ... 135373 files and directories currently installed.)
Preparing to unpack .../fonts-liberation_1%3a1.07.4-9_all.deb ...
Unpacking fonts-liberation (1:1.07.4-9) ...
Setting up fonts-liberation (1:1.07.4-9) ...
Setting up google-chrome-stable (86.0.4240.198-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for fontconfig (2.13.1-2) ...
更新
在某个版本后包内的钩子脚本会在安装 Chrome 时写入 /etc/apt/source.list.d/google-chrome.list
文件,安装完成后即可实现使用 apt 进行浏览器的版本更新。
可以在 Google Linux Repositories 中查看仓库配置。
附录
参考链接
本文由 柒 创作,采用 知识共享署名4.0
国际许可协议进行许可。
转载本站文章前请注明出处,文章作者保留所有权限。
最后编辑时间: 2020-11-17 19:48 PM