我有 Fedora 21,它是 Fedora 20 的一个版本。我的问题是,每当我使用ps
commaand时,我都会得到/usr/bin/dpkgd/ps: error while loading shared libraries: libprocps.so.1: cannot open shared object file: No such file or directory.
当我安装 Fedora 20 时,这段代码运行得很好。在做 Fedup 时,我收到了一堆
ldconfig: /usr/lib/libOpenCL.so.1 is not a symbolic link
消息,但 fedup 进展顺利。
以下是可能相关的命令的输出:
$ which ps
/bin/ps
$ type ps
ps is /bin/ps
$ ldd /bin/ps
not a dynamic executable
$ ldd /usr/bin/dpkgd/ps
inux-gate.so.1 => (0xb77f7000)
libprocps.so.1 => not found
libsystemd-login.so.0 => /lib/libsystemd-login.so.0 (0xb77ae000)
libdl.so.2 => /lib/libdl.so.2 (0x467c7000)
libc.so.6 => /lib/libc.so.6 (0x465f9000)
librt.so.1 => /lib/librt.so.1 (0x46a72000)
libdw.so.1 => /lib/libdw.so.1 (0x47816000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x46854000)
libpthread.so.0 => /lib/libpthread.so.0 (0x467ce000)
/lib/ld-linux.so.2 (0x465ce000)
libelf.so.1 => /lib/libelf.so.1 (0x47695000)
liblzma.so.5 => /lib/liblzma.so.5 (0x46edd000)
libbz2.so.1 => /lib/libbz2.so.1 (0x46a7d000)
libz.so.1 => /lib/libz.so.1 (0x467eb000)
如果我执行 a ,即使 的输出没有改变,sudo yum reinstall procps
问题也会消失。ldd
但重新启动计算机后,问题又出现了。这个问题的永久解决方案是什么?