Ubuntu/Debian Server 系统安装/升级/删除Google Chrome

在Server 系统里安装 Chrome 浏览器,主要是以无头模式使用,记一下安装与升级过程。

安装

Bash: 安装
1
2
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb

升级

安装后会有一个 /etc/apt/sources.list.d/google-chrome.list ,内容是

INI: google-chrome.list
1
2
3
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

可能会需要这行

Bash: 添加签名密钥
1
wget –q –o –https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Bash: 升级
1
2
apt update
apt-get –only-upgrade install google-chrome-stable

不过我更喜欢使用下面的方式手动安装+升级

Bash: 安装/升级
1
2
3
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome*.deb
apt-get install -f

升级也是重复上面三行命令,新的版本可能减少一些依赖,用 apt autoremove 直接删掉。

前往 https://sites.google.com/chromium.org/driver/ 下载对应版本的 ChromeDriver

Bash: 下载chromedriver
1
2
3
$ wget https://chromedriver.storage.googleapis.com/98.0.4758.80/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ cp chromedriver /usr/bin/

Bash: 查看版本Chrome
1
2
3
4
root@debian:~# google-chrome --version
Google Chrome 98.0.4758.102 
root@debian:~# chromedriver --version
ChromeDriver 98.0.4758.80 (7f0488e8ba0d8e019187c6325a16c29d9b7f4989-refs/branch-heads/4758@{#972})

删除 chrome

若是哪一天头脑发热,想删除

Bash: 删除chrome
1
2
 apt-get purge google-chrome-stable
 apt-get autoremove

本文网址: https://pylist.com/topic/230.html 转摘请注明来源

Suggested Topics

Ubuntu 或其它 GNU/Linux 系统下安装 Debian

家有老电脑不用就折腾不止,前段时间曾折腾一台老电脑,2007年上市,只支持 i386 系统,不支持U盘启动,在 winxp 系统下装了 Ubuntu,现在突发奇想,要在 Ubuntu 上安装 Debian。...

Ubuntu/Debian 查看CPU温度的方法

刚 DIY 一个小主机,因为使用功率很低的CPU,买了一个金钱豹2U散热器,风扇声音很大,就把风扇拆下来,只使用下面的铜块。就得对CPU问寒问暖,时刻了解它的温度。...

ubuntu/debian 下自行编译 OpenWRT 固件

首先声明,自行编译是一个自我折腾的过程,没时间或精力就不要试了,这里介绍个人尝试在ubuntu/debian 下编译OpenWRT固件和应用SDK 的过程。...

换手机后 Google 身份验证器 Google Authenticator 数据迁移的简单方法

Google Authenticator 是一个很小巧的安全验证工具,算法也很简单,因此很多应用都使用它作为二次验证方式。但在换手机时发现,新装的 Google Authenticator 没有简单的数据转移方式,比如扫码,可能正因为这样,它才显得小巧,但也有人觉得这是不成熟的产品。。。...

Ubuntu 16.04.6 LTS 系统上安装 Python 3.6.3

自己的阿里云一个 VPS 用的是系统 Ubuntu 16.04.6 LTS,自带的python版本是 `2.7.12` 与 `3.5.2`,有时候要用到 python `3.6`,又不想卸掉原来版本。下面介绍安装 python 3.6.3 的过程,因为版本较旧,遇到一些坑,这里记录一下。...

Leave a Comment