Unable to start timedate service

I just installed the OS alongside windows and noticed that windows would always be 2 hours behind. After a bit of searching one of the solutions was to set linux to use local time, but whenever i tried to use timedatectl it always resulted in this error message

Failed to query server: Failed to activate service 'org.freedesktop.timedate1': timed out (service_start_timeout=25000ms)

So then I tried to restart the service and got this error:

Job for systemd-timedated.service failed because the control process exited with error code.
See "systemctl status systemd-timedated.service" and "journalctl -xeu systemd-timedated.service" for details.

After running the suggested commands this is what I got:

Ă— systemd-timedated.service - Time & Date Service
     Loaded: loaded (/usr/lib/systemd/system/systemd-timedated.service; static)
     Active: failed (Result: exit-code) since Thu 2023-10-05 12:24:19 +04; 4min 17s ago
       Docs: man:systemd-timedated.service(8)
             man:localtime(5)
             man:org.freedesktop.timedate1(5)
    Process: 4475 ExecStart=/usr/lib/systemd/systemd-timedated (code=exited, status=127)
   Main PID: 4475 (code=exited, status=127)
        CPU: 29ms

Oct 05 12:24:18 mylapt systemd[1]: Starting Time & Date Service...
Oct 05 12:24:19 mylapt systemd-timedated[4475]: /usr/lib/systemd/systemd-timedated: error while loading shared libraries: libgcc_s.3o.1: cannot open shared object file: No such file or directory
Oct 05 12:24:19 mylapt systemd[1]: systemd-timedated.service: Main process exited, code=exited, status=127/n/a
Oct 05 12:24:19 mylapt systemd[1]: systemd-timedated.service: Failed with result 'exit-code'.
Oct 05 12:24:19 mylapt systemd[1]: Failed to start Time & Date Service.

I don’t know where to go from here, and i couldn’t find anything online

It’s complaining about a missing library.

libgcc_s.so.1 is provided by gcc-libs

pacman -Qo /usr/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so.1 is owned by gcc-libs 13.2.1-3

But libgcc_s.3o.1 ?

Yeah It’s exactly as it says. I ran the command after a reboot and it still said libgcc_s.3o.1. I tried to change what library it used and even tried to put a symbolic link in the directory with the same name but that didn’t work either

Edit: I reinstalled systemd and now it appears to be working. My guess is that the file somehow got corrupted. I don’t know if that’s even a valid guess, but it works now so thanks for the help guys!

Glad you got it resolved and welcome to EnOS’ community!

:enos: :handshake:t5:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.