View previous topic :: View next topic |
Author |
Message |
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Tue Sep 26, 2023 9:01 am Post subject: Localectl - Failed to connect to bus |
|
|
I have a fresh install of Gentto with a fresh install of Gnome with Systemd. It works fine apart that Gnome Terminal is not starting. Based on the documentation found it may be linked to the 'Locales'.
I followed the Gentoo wiki for Locales (https://wiki.gentoo.org/wiki/Localization/Guide/it). Till it works fine, but at the next step Code: | localectl list-locales | I got the following error message:
"Failed to connect to bus: No such file or directory"
How can I sort it out?
Thanks and regards
Enrico |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 513
|
Posted: Tue Sep 26, 2023 9:20 am Post subject: |
|
|
I would reproduce the error and then check the logs with:
This should give you a hint.
Another thing is to check the environment variables:
Code: | systemctl show-environment
systemctl --user show-environment |
|
|
Back to top |
|
|
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Tue Sep 26, 2023 10:22 am Post subject: |
|
|
After
Code: | localesctl list-locales |
I typed
it returns 1000 lines. I pass trough them, but I can see anything special.
Code: | # systemctl show-environment
LANG=en_US.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:opt/bin:usr/lib/llvm/15/bin |
Code: | #systemctl --user show-environment
Failed to connect to bus: No medium found |
|
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 513
|
Posted: Tue Sep 26, 2023 12:05 pm Post subject: |
|
|
enrico3791 wrote: | Code: | #systemctl --user show-environment
Failed to connect to bus: No medium found |
|
I have the same output, if I run that as user root. But my intention was that you run the command as normal user. I wanted to check, whether the environment variable "DBUS_SESSION_BUS_ADDRESS" was set.
Is D-Bus running? |
|
Back to top |
|
|
0bel1sk n00b
Joined: 22 Nov 2024 Posts: 1
|
Posted: Fri Nov 22, 2024 7:24 pm Post subject: package missing |
|
|
for what it is worth, i had this problem with a debian container and toggling `--no-install-recommends' broke localectl env though systemd was functioning correctly... i'm not quite sure which pacakge allowed it to work, but hoping it helps someone. |
|
Back to top |
|
|
|