Monday, November 11, 2024
Centos

Ntpd error while loading shared libraries pada centos 7

ntp

“Ntpd error while loading shared libraries pada centos 7”

Berikut adalah error pada nptd di centos : /usr/sbin/ntpd: error while loading shared libraries: /lib64/libopts.so.25: file too short pada centos 7

problem tersebut terjadi saat install ntp , namun ketika service si start error.

[root@localhost ~]# systemctl status ntpd.service
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset                                                                                                             : disabled)
   Active: failed (Result: exit-code) since Wed 2021-02-10 17:30:29 WIB; 1min 16                                                                                                             s ago
  Process: 8589 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, statu                                                                                                             s=127)

Feb 10 17:30:29 localhost.localdomain systemd[1]: Starting Network Time Servi...
Feb 10 17:30:29 localhost.localdomain ntpd[8589]: /usr/sbin/ntpd: error while...
Feb 10 17:30:29 localhost.localdomain systemd[1]: ntpd.service: control proce...
Feb 10 17:30:29 localhost.localdomain systemd[1]: Failed to start Network Tim...
Feb 10 17:30:29 localhost.localdomain systemd[1]: Unit ntpd.service entered f...
Feb 10 17:30:29 localhost.localdomain systemd[1]: ntpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
  • test service
#ldd /usr/sbin/ntpd

/usr/sbin/ntpd: error while loading shared libraries: /lib64/libopts.so.25: file too short
#yum provides \*/libopts.so.25
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.hostnic.id
 * epel: epel.mirror.angkasa.id
 * extras: mirror.buana.web.id
 * updates: mirror.hostnic.id
base/7/x86_64/filelists_db                                                                                                                                            | 7.2 MB  00:00:04
epel/x86_64/filelists_db                                                                                                                                              |  12 MB  00:00:31
extras/7/x86_64/filelists_db                                                                                                                                          | 225 kB  00:00:00
updates/7/x86_64/filelists_db                                                                                                                                         | 3.4 MB  00:00:02
autogen-libopts-5.18-5.el7.i686 : Automated option processing library based on autogen
Repo        : base
Matched from:
Filename    : /usr/lib/libopts.so.25



autogen-libopts-5.18-5.el7.x86_64 : Automated option processing library based on autogen
Repo        : base
Matched from:
Filename    : /usr/lib64/libopts.so.25



autogen-libopts-5.18-5.el7.x86_64 : Automated option processing library based on autogen
Repo        : @/
Matched from:
Filename    : /usr/lib64/libopts.so.25
  • reinstall
# yum reinstall autogen-libopts-5.18-5.el7.x86_64
  • start ntp
# ldd /usr/sbin/ntpd
        linux-vdso.so.1 =>  (0x00007ffda7b6f000)
        libopts.so.25 => /lib64/libopts.so.25 (0x00007ffa6a223000)
        libm.so.6 => /lib64/libm.so.6 (0x00007ffa69f21000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007ffa69abe000)
        libcap.so.2 => /lib64/libcap.so.2 (0x00007ffa698b9000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ffa694eb000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffa6a749000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007ffa692e7000)
        libz.so.1 => /lib64/libz.so.1 (0x00007ffa690d1000)
        libattr.so.1 => /lib64/libattr.so.1 (0x00007ffa68ecc000)

#systemctl status ntpd.service
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-02-10 17:41:56 WIB; 4s ago
  Process: 1536 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 1537 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─1537 /usr/sbin/ntpd -u ntp:ntp -g
(Visited 522 times, 1 visits today)

Similar Posts