Error
[root@localhost yum.repos.d]# yum install oracle-ebs-server-R12-preinstall
error: Failed to initialize NSS library
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
cannot import name ts
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Sep 5 2016, 02:30:38)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-9)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Solution :
download nspr-4.13.1-1.0.el7_3.x86_64.rpm
with root go to /usr/lib64 and run below command
rpm2cpio nspr-4.13.1-1.0.el7_3.x86_64.rpm | cpio -idmv
error: Failed to initialize NSS library
./usr/lib64/libnspr4.so
./usr/lib64/libplc4.so
./usr/lib64/libplds4.so
563 blocks
and then run below command
[root@localhost lib64]# LD_PRELOAD=./usr/lib64/libnspr4.so yum update nspr
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package nspr.x86_64 0:4.11.0-1.el7_2 will be updated
---> Package nspr.x86_64 0:4.13.1-1.0.el7_3 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================
==================================================================
Package Arch Version
Repository Size
======================================================================================================
==================================================================
Updating:
nspr x86_64 4.13.1-1.0.el7_3
ol7_latest 126 k
Transaction Summary
======================================================================================================
==================================================================
Upgrade 1 Package
Total size: 126 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nspr-4.13.1-1.0.el7_3.x86_64
1/2
Cleanup : nspr-4.11.0-1.el7_2.x86_64
2/2
Verifying : nspr-4.13.1-1.0.el7_3.x86_64
1/2
Verifying : nspr-4.11.0-1.el7_2.x86_64
2/2
Updated:
nspr.x86_64 0:4.13.1-1.0.el7_3
Complete!
now you can run yum install oracle-ebs-server-R12-preinstall
[root@localhost yum.repos.d]# yum install oracle-ebs-server-R12-preinstall
error: Failed to initialize NSS library
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
cannot import name ts
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Sep 5 2016, 02:30:38)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-9)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Solution :
download nspr-4.13.1-1.0.el7_3.x86_64.rpm
with root go to /usr/lib64 and run below command
rpm2cpio nspr-4.13.1-1.0.el7_3.x86_64.rpm | cpio -idmv
error: Failed to initialize NSS library
./usr/lib64/libnspr4.so
./usr/lib64/libplc4.so
./usr/lib64/libplds4.so
563 blocks
and then run below command
[root@localhost lib64]# LD_PRELOAD=./usr/lib64/libnspr4.so yum update nspr
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package nspr.x86_64 0:4.11.0-1.el7_2 will be updated
---> Package nspr.x86_64 0:4.13.1-1.0.el7_3 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================
==================================================================
Package Arch Version
Repository Size
======================================================================================================
==================================================================
Updating:
nspr x86_64 4.13.1-1.0.el7_3
ol7_latest 126 k
Transaction Summary
======================================================================================================
==================================================================
Upgrade 1 Package
Total size: 126 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nspr-4.13.1-1.0.el7_3.x86_64
1/2
Cleanup : nspr-4.11.0-1.el7_2.x86_64
2/2
Verifying : nspr-4.13.1-1.0.el7_3.x86_64
1/2
Verifying : nspr-4.11.0-1.el7_2.x86_64
2/2
Updated:
nspr.x86_64 0:4.13.1-1.0.el7_3
Complete!
now you can run yum install oracle-ebs-server-R12-preinstall