【Centos】yum install 报错解决方案

报错情况:

error: Failed to initialize NSS library
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}

下载:nspr-4.13.1-1.0.el7_3.x86_64.rpm(下载第一个)
http://rpm.pbone.net/index.php3/stat/4/idpl/36086786/dir/scientific_linux_7/com/nspr-4.13.1-1.0.el7_3.x86_64.rpm.html
【Centos】yum install 报错解决方案_第1张图片

把下载的包放入Centos中,执行命令:

rpm2cpio nspr-4.13.1-1.0.el7_3.x86_64.rpm | cpio -imdv
cp usr/lib/* /usr/lib64/
[root@mon-node1 tmp]# rpm2cpio nspr-4.13.1-1.0.el7_3.x86_64.rpm | cpio -imdv
error: Failed to initialize NSS library
./usr/lib/libnspr4.so
./usr/lib/libplc4.so
./usr/lib/libplds4.so
555 blocks

[root@mon-node1 tmp]# cp usr/lib/* /usr/lib64/
cp: overwrite ‘/usr/lib64/libnspr4.so’? y
cp: overwrite ‘/usr/lib64/libplc4.so’? y
cp: overwrite ‘/usr/lib64/libplds4.so’? y
[root@mon-node1 tmp]#

完美解决上面的yum install error

参考:
http://rpm.pbone.net/index.php3/stat/4/idpl/36086786/dir/scientific_linux_7/com/nspr-4.13.1-1.0.el7_3.x86_64.rpm.html

你可能感兴趣的:(Python)