Ubuntu下安装Chrome的方法分享

技术教程 2026-01-09 13:30:57 浏览

在学习《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 "debstable main" >> /etc/apt/sources.list.d/google-chrome.list'

更新

在终端输入:

复制代码 代码如下:sudo apt-get UpDate Ubuntu安装Chrome

安装

安装稳定版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.wgetthe 64-bit version of Google Chrome, use this command belowwgetdownloaded, install google chrome with following command: 复制代码 代码如下:sudo dpkg -i google-chrome-stable_current_i386.deb 复制代码 代码如下:sudo dpkg -i google-chrome-stable_current_amd64.deb

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

复制代码 代码如下:sudo apt-get -f install

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

本文版权声明本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站客服,一经查实,本站将立刻删除。

发表评论

热门推荐