But, got error by command : chromium-browser --no-sandbox
error message is belowing :
[410:458:0307/095747.810070:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Check if the D-Bus service is running by running the command:
service dbus status
If the service is not running, start it by running:
service dbus start
Set the DBUS_SESSION_BUS_ADDRESS environment variable by running:
export $(dbus-launch)
This will start a new D-Bus session and set the DBUS_SESSION_BUS_ADDRESS variable to the correct value for your system.
3. Finally, try running Chromium again with the --no-sandbox flag:
chromium-browser --no-sandbox
These steps should help you solve the error and run Chromium successfully on Replit without the need for sudo.