Ubuntu下安装Chrome的方法分享
在学习《Node.js实践》,没想到ubuntu12.04下的firefox竟然不支持-webkit-transition,就想安装一个chrome,发现还挺麻烦,搜索了一下,记录如下:
添加PPA
从GoogleLinuxRepository(http://www.google.com/linuxrepositories/)下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码
wget-q-O-https://dl-ssl.google.com/linux/linux_signing_key.pub|sudoapt-keyadd-
Key安装好后,在终端输入:
sudosh-c'echo"debhttp://dl.google.com/linux/chrome/deb/stablemain">>/etc/apt/sources.list.d/google-chrome.list'
更新
在终端输入:
sudoapt-getupdate
安装
安装稳定版Chrome,在终端输入:sudoapt-getinstallgoogle-chrome-stable
安装Beta版Chrome,在终端输入:sudoapt-getinstallgoogle-chrome-beta
安装不稳定版Chrome,在终端输入:sudoapt-getinstallgoogle-chrome-unstable
上面的方法装成功了第一次,后面再装好像被封了,唉!
又在网上搜索,下面方法可行:
Downloadgooglechromeforubuntufromterminalwiththefollowingcommand: Forthe32-bitversionofGoogleChrome,usethiscommandbelow. wgethttps://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb Forthe64-bitversionofGoogleChrome,usethiscommandbelow wgethttps://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb Oncedownloaded,installgooglechromewithfollowingcommand:
32bit:
sudodpkg-igoogle-chrome-stable_current_i386.deb
64bit:
sudodpkg-igoogle-chrome-stable_current_amd64.deb
如果出错,是依赖库的问题,用命令修复库的依赖。
代码:
sudoapt-get-finstall
以上所述就是本文的全部内容了,希望大家能够喜欢。