I had a problem during updating of the packages on CentOS AMI from Amazon (S3).
I got a bunch of duplicated packages. Among them:
nss-softokn-freebl-126.96.36.199-14.2.38.amzn1.x86_64 is a duplicate with nss-softokn-freebl-188.8.131.52-1.13.amzn1.x86_64
I've removed a duplicate with
rpm -e nss-softokn-freebl-184.108.40.206-14.2.38.amzn1.x86_64
This caused the
rpm and other commands to immediately stop working with errors like this:
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.6.9 (unknown, Mar 28 2014, 00:06:37) [GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
error: Failed to initialize NSS library
Any idea how to fix the server (reinstall
rpm2cpio (also depends on NSS apparently)?
Or make Python use the other installed NSS version?