当前位置: 首页>>技术教程>>正文


linux – 如何在Ubuntu中更新Google chrome?

, , ,

问题描述

如何在Ubuntu中更新Google chrome?

最佳答案

首先从Google Linux Repository下载并安装密钥。或在终端中运行以下命令,在出现提示时键入用户密码。

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update

安装:

sudo apt-get install google-chrome-beta

仅更新:

sudo apt-get --only-upgrade install google-chrome-stable

然后更新(如果可用)网络安全服务库(libnss),否则Chrome将表现weird

sudo apt-get install libnss3-1d

In Ubuntu 18.04 or later libnss3-1d – Network Security Service libraries – transitional package is depreciated and incorporated in generic libnss3 library. (Thanks Bishoy Melek)

sudo apt-get install libnss3 

现在,您必须杀死所有旧版Chrome浏览器的实例(可能是隐藏的)。

sudo pkill -15 google-chrome
sudo pkill -15 chrome

然后在启动时启动google-chrome。

次佳答案

Chrome EULA page

Note: Installing Google Chrome will add the Google repository so your system will automatically keep Google Chrome up to date. If you don’t want Google’s repository, do “sudo touch /etc/default/google-chrome” before installing the package.

[强调他们的]

因此,正如mgpyone指出的那样,Ubuntu的update-manager应该为您解决这一问题。

这是我的/etc/apt/sources.list.d/google-chrome.list的内容

deb http://dl.google.com/linux/deb/ stable main

第三种答案

Google Chrome Help

Use your package manager to check for updates.

Privacy information

Google Chrome uses a process called Google Update to periodically check for updates. This process sends information, such as version number, language, operating system, and other installation or update-related details, back to Google servers. This information is not associated with you or your Google Account.

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/9373.html,未经允许,请勿转载。