Запуск гугл-хрома в chroot - PullRequest
       83

Запуск гугл-хрома в chroot

0 голосов
/ 24 сентября 2019

Я установил schroot, выполнив https://wiki.debian.org/Schroot Чем после перехода в недавно созданный chroot я сделал

$ sudo schroot -c google-chrome
$ cd ~
$ apt-get update
$ apt-get install curl -y
$ curl -k -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$ dpkg -i google-chrome-stable_current_amd64.deb
$ apt-get -f install
$ exit

После всего этого при попытке запустить google-chrome

$ schroot -c google-chrome
$ google-chrome
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
[23232:23253:0924/174712.957580:ERROR:bus.cc(394)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
(google-chrome:23232): dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.
[23232:23250:0924/174712.963204:ERROR:platform_shared_memory_region_posix.cc(275)] Creating shared memory in /dev/shm/.com.google.Chrome.TK1LS0 failed: Permission denied (13)
[23232:23250:0924/174712.963234:ERROR:platform_shared_memory_region_posix.cc(278)] Unable to access(W_OK|X_OK) /dev/shm: Permission denied (13)
[23232:23250:0924/174712.963245:FATAL:platform_shared_memory_region_posix.cc(280)] This is frequently caused by incorrect permissions on /dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix.
Trace/breakpoint trap

К сожалению после долгого времени я не смог найти решение.

...