您的位置:首页 > 编程语言 > Go语言

ubuntu 16.04 安装Google Chrome

2017-01-05 16:14 302 查看
近期项目中需要使用chrome浏览器的跨域设置,奈何ubuntu16.04下的chromium貌似不可以(博主再网上找了半天没找到= =),从新安装了个chrome。

但是,问题来了,找个好几个都不能安装成功,一筹莫展之时发现了这个博主的博客,可谓是雪中送炭了!

原博客地址http://blog.csdn.net/longhr/article/details/51695123 在这里感谢原博主 longhr

该博主使用的是PPA的方法,方法如下:

wget -q -O - https://raw.githubusercontent.com/longhr/ubuntu1604hub/master/linux_signing_key.pub | sudo apt-key add

sudo sh -c 'echo "deb [ arch=amd64 ] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

sudo apt-get update

sudo apt-get install google-chrome-stable


PS.

安装
Google Chrome unstable
版本:

sudo apt-get install google-chrome-beta


安装
Google Chrome beta
版本:

sudo apt-get install google-chrome-unstable


最后当需要chrome跨域的时候执行
google-chrome --disable-web-security
就OK啦!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息