欢迎来到代码驿站!

Linux

当前位置:首页 > 服务器 > Linux

Ubuntu下安装Chrome的方法分享

时间:2021-04-13 09:13:25|栏目:Linux|点击:

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

添加PPA

从Google Linux Repository(http://www.google.com/linuxrepositories/)下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码

复制代码 代码如下:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

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

复制代码 代码如下:

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

安装

安装稳定版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 https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
For the 64-bit version of Google Chrome, use this command below
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
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

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

上一篇:安装Linux的flash的步骤方法

栏    目:Linux

下一篇:Ubuntu下安装rsh实现无密码访问详解

本文标题:Ubuntu下安装Chrome的方法分享

本文地址:http://www.codeinn.net/misctech/100295.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有