Ubuntu16.04 install Chrome browser and solve the problem that root cannot open, ubuntu16.04chrome
1. Install the desktop (emmm, do not know whether to execute the second command)
# apt-get install gonme
# apt-get install ubuntu-desktop
2. Install Chrome
# wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/# wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -# apt-get update# apt-get install google-chrome-stable
3. Start Chrome
# google-chrome
An error is reported:
[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
An error will still be reported:
Root @ node00 :~ #[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
I tried a bunch of methods on the Internet .. Restart
And then try again
# google-chrome --no-sandbox
Despite a bunch of errors, it was finally opened !!
[31568: 31664: 0207/085622. 436523: ERROR: bus. cc (394)] Failed to connect to the bus: cocould 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 :'
Root @ node00 :~ #[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
# whereis google-chromegoogle-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz# vim /usr/bin/google-chrome
Change exec-a "$0" "$ HERE/chrome" $ @"
Exec-a "$0" "$ HERE/chrome" "$ @" -- user-data-dir -- no-sandbox
In the future, google-chrome can be used to open Chrome.