Ubuntu16.04安装谷歌chrome浏览器(最新)

最近需要为一台Ubuntu16.04.5版本的机子安装chrome浏览器,看了很多文章,主要是两种方法:一是wget下载deb安装包,然后命令行安装;二是添加google chrome源到软件源列表,然后用apt直接安装。但这两种方法都失效了,原因是ubuntu16不能满足最新的chrome浏览器依赖的libnss3版本。

按照以前的安装方法会提示安装错误:

Note, selecting 'google-chrome-stable' instead of './google-chrome-stable_current_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-chrome-stable : Depends: libnss3 (>= 2:3.31) but 2:3.28.4-0ubuntu0.16.04.14 is to be installed
                        Depends: libu2f-udev but it is not installable
E: Unable to correct problems, you have held broken packages.

经过一番尝试,最终还是不行,跑到chrome官网找到了历史版本页面

chromium-browser package : Ubuntu,ubuntu16.04对应的是The Xenial Xerus 版本,下载链接为

https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_90.0.4430.72-0ubuntu0.16.04.1_amd64.deb

下面开始命令行安装:

wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_90.0.4430.72-0ubuntu0.16.04.1_amd64.deb
sudo apt install ./chromium-browser_90.0.4430.72-0ubuntu0.16.04.1_amd64.deb

成功安装!

你可能感兴趣的:(环境配置,chrome,ubuntu)