在学习《Node.js实践》,没想到ubuntu12.04下的firefox竟然不支持-webkit-transition,就想安装一个chrome,发现还挺麻烦,搜索了一下,记录如下:
添加PPA
从Google Linux Repository([url=http://www.google.com/linuxrepositories/]http://www.google.com/linuxrepositories/[/url])下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码
[url=https://dl-ssl.google.com/linux/linux_signing_key.pub]https://dl-ssl.google.com/linux/linux_signing_key.pub[/url] | sudo apt-key add -
Key安装好后,在终端输入:
[url=http://dl.google.com/linux/chrome/deb/]http://dl.google.com/linux/chrome/deb/[/url] stable main" >> /etc/apt/sources.list.d/google-chrome.list'
更新
在终端输入:
[url=https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb]https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb[/url]
For the 64-bit version of Google Chrome, use this command below
wget [url=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb]https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb[/url]
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
以上所述就是本文的全部内容了,希望大家能够喜欢。