当前位置: 移动技术网 > 网络运营>服务器>Linux > Ubuntu下安装Chrome的方法分享

Ubuntu下安装Chrome的方法分享

2019年05月01日  | 移动技术网网络运营  | 我要评论
在学习《node.js实践》,没想到ubuntu12.04下的firefox竟然不支持-webkit-transition,就想安装一个chrome,发现还挺麻烦,搜索了一

在学习《node.js实践》,没想到ubuntu12.04下的firefox竟然不支持-webkit-transition,就想安装一个chrome,发现还挺麻烦,搜索了一下,记录如下:

添加ppa

从google linux repository()下载安装key,或把下面的代码复制进终端,回车,需要管理员密码

复制代码 代码如下:

wget -q -o - | sudo apt-key add -

key安装好后,在终端输入:

复制代码 代码如下:

sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'

更新

在终端输入:

复制代码 代码如下:

sudo apt-get update

安装

安装稳定版chrome,在终端输入:sudo apt-get install google-chrome-stable
安装beta版chrome,在终端输入:sudo apt-get install google-chrome-beta
安装不稳定版chrome,在终端输入:sudo apt-get install google-chrome-unstable

上面的方法装成功了第一次,后面再装好像被封了,唉!
又在网上搜索,下面方法可行:

复制代码 代码如下:

download google chrome for ubuntu from terminal with the following command:
for the 32-bit version of google chrome, use this command below.
wget
for the 64-bit version of google chrome, use this command below
wget
once downloaded, install google chrome with following command:

32 bit :

复制代码 代码如下:

sudo dpkg -i google-chrome-stable_current_i386.deb

64 bit :

复制代码 代码如下:

sudo dpkg -i google-chrome-stable_current_amd64.deb

如果出错,是依赖库的问题,用命令修复库的依赖。
代码:

复制代码 代码如下:

sudo apt-get -f install

以上所述就是本文的全部内容了,希望大家能够喜欢。

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网