Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Localectl - Failed to connect to bus
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
enrico3791
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2010
Posts: 77

PostPosted: Tue Sep 26, 2023 9:01 am    Post subject: Localectl - Failed to connect to bus Reply with quote

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
Code:
locale-gen
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
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 497

PostPosted: Tue Sep 26, 2023 9:20 am    Post subject: Reply with quote

I would reproduce the error and then check the logs with:

Code:
journalctl -eb


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
View user's profile Send private message
enrico3791
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2010
Posts: 77

PostPosted: Tue Sep 26, 2023 10:22 am    Post subject: Reply with quote

After
Code:
localesctl list-locales

I typed
Code:
journalctl -eb

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
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 497

PostPosted: Tue Sep 26, 2023 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
0bel1sk
n00b
n00b


Joined: 22 Nov 2024
Posts: 1

PostPosted: Fri Nov 22, 2024 7:24 pm    Post subject: package missing Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum