/user.slice/user-1000.slice/session-2145.scope is not a snap cgroup

Chromium Browser in Ubuntu

Recently, I need to use headless Chromium Browser to running bot for some purpose, but it is not smooth as the documentation says.

Error while using headless Chrome

$ /usr/bin/chromium-browser --help
/user.slice/user-1000.slice/session-2145.scope is not a snap cgroup

Installing dbus-user-session

# sudo apt-get install dbus-user-session
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dbus-user-session is already the newest version (1.12.20-2ubuntu2).
dbus-user-session set to manually installed.

Restart dbus service and fixed

systemctl --user start dbus.service

Tags:

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.