1. 程式人生 > >區塊鏈-以太坊環境-unbtun 16.04 安裝谷歌瀏覽器

區塊鏈-以太坊環境-unbtun 16.04 安裝谷歌瀏覽器

1. 安裝Chrome瀏覽器

  1. # wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
  2. # wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  3. # apt-get update
  4. # apt-get install google-chrome-stable

2. 啟動Chrome瀏覽器

# google-chrome

這時會報錯:

[31560:31560:0207/085601.085852:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

# google-chrome --no-sandbox

仍會報錯:

[email protected]:~# [0207/085735.495265:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!

Most likely you need to configure your SUID sandbox correctly

網上的一堆方法都不管用,這時試了一下。。重啟

然後重新

# google-chrome --no-sandbox

雖然也是有一堆錯,但是終於成功打開了!!

[31568:31664:0207/085622.436523:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

[31568:31568:0207/085624.050190:ERROR:gpu_process_transport_factory.cc(1009)] Lost UI shared context.

(google-chrome:31568): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Unknown or unsupported transport 'disabled' for address 'disabled:'

[email protected]:~# [0207/085735.495265:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!

Most likely you need to configure your SUID sandbox correctly

  1. # whereis google-chrome
  2. google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
  3. # vim /usr/bin/google-chrome

將 exec -a "$0" "$HERE/chrome" "[email protected]"  改為

exec -a "$0" "$HERE/chrome" "[email protected]" --user-data-dir --no-sandbox

以後只要 google-chrome 就可以開啟Chrome了