Amazon EC2 – Fix NSS_3.34 Error After Yum Update on Amazon Linux 2018.03

amazon ec2amazon-linuxamazon-web-services

I ran yum update and tomcat was not working. I then tried to downgrade nss but yum is not working at all and gives me the following error PLEASE HELP:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/local/firefox/libnss3.so: version `NSS_3.34' not found (required by /usr/lib64/libcurl.so.4)

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.15 (default, Nov 28 2018, 22:38:08)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq

Best Answer

This does not make any sense and I have no idea why this worked:

I unzipped a copy of firefox into /usr/local/ specifically firefox-64.0.tar.bz2

And it just worked. As this is a headless server that was configured and setup by someone else I have no idea why it has firefox in the first place or why yum would be expecting a lib from that dir.