Reinstaling NSS library on CentOS (Amazon AMI) Announcing the arrival of Valued Associate...

Do I really need recursive chmod to restrict access to a folder?

Can a USB port passively 'listen only'?

If a contract sometimes uses the wrong name, is it still valid?

String `!23` is replaced with `docker` in command line

How to deal with a team lead who never gives me credit?

Why did the rest of the Eastern Bloc not invade Yugoslavia?

How widely used is the term Treppenwitz? Is it something that most Germans know?

Seeking colloquialism for “just because”

Should I discuss the type of campaign with my players?

How to call a function with default parameter through a pointer to function that is the return of another function?

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

Why aren't air breathing engines used as small first stages

Why are Kinder Surprise Eggs illegal in the USA?

At the end of Thor: Ragnarok why don't the Asgardians turn and head for the Bifrost as per their original plan?

What is the logic behind the Maharil's explanation of why we don't say שעשה ניסים on Pesach?

Apollo command module space walk?

Storing hydrofluoric acid before the invention of plastics

When do you get frequent flier miles - when you buy, or when you fly?

Single word antonym of "flightless"

What causes the vertical darker bands in my photo?

How to bypass password on Windows XP account?

What is the role of the transistor and diode in a soft start circuit?

3 doors, three guards, one stone

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]



Reinstaling NSS library on CentOS (Amazon AMI)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionlibxml2.so.2: cannot open shared object file: No such file or directoryYum doesn't workHow to Fix Accidental Deletion of librpm.so.3Installing Docker on CentOSCentOS 7 Install: Error populating transactionWhat's the fastest way to install Postgresql on Wind River 7.0?Can Python 2.6.6 work with CentOS 7.3?face error in installing mysql on AMI linux centos 2017-09Yum not found on Centos 7 “ No module named yum”cannot offline install vnc server on CentOS 7





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















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-3.16.2.3-14.2.38.amzn1.x86_64 is a duplicate with nss-softokn-freebl-3.16.2.3-1.13.amzn1.x86_64


I've removed a duplicate with rpm -e nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64



This caused the yum, 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


rpmerror: Failed to initialize NSS library



etc.



Any idea how to fix the server (reinstall nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64) without rpm command, rpm2cpio (also depends on NSS apparently)?



Or make Python use the other installed NSS version?










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    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-3.16.2.3-14.2.38.amzn1.x86_64 is a duplicate with nss-softokn-freebl-3.16.2.3-1.13.amzn1.x86_64


    I've removed a duplicate with rpm -e nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64



    This caused the yum, 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


    rpmerror: Failed to initialize NSS library



    etc.



    Any idea how to fix the server (reinstall nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64) without rpm command, rpm2cpio (also depends on NSS apparently)?



    Or make Python use the other installed NSS version?










    share|improve this question
















    bumped to the homepage by Community 5 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      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-3.16.2.3-14.2.38.amzn1.x86_64 is a duplicate with nss-softokn-freebl-3.16.2.3-1.13.amzn1.x86_64


      I've removed a duplicate with rpm -e nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64



      This caused the yum, 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


      rpmerror: Failed to initialize NSS library



      etc.



      Any idea how to fix the server (reinstall nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64) without rpm command, rpm2cpio (also depends on NSS apparently)?



      Or make Python use the other installed NSS version?










      share|improve this question
















      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-3.16.2.3-14.2.38.amzn1.x86_64 is a duplicate with nss-softokn-freebl-3.16.2.3-1.13.amzn1.x86_64


      I've removed a duplicate with rpm -e nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64



      This caused the yum, 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


      rpmerror: Failed to initialize NSS library



      etc.



      Any idea how to fix the server (reinstall nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64) without rpm command, rpm2cpio (also depends on NSS apparently)?



      Or make Python use the other installed NSS version?







      centos rpm nss






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 '16 at 20:53









      thrig

      25.3k23257




      25.3k23257










      asked Jun 16 '16 at 16:38









      Marcin RaczkowskiMarcin Raczkowski

      15116




      15116





      bumped to the homepage by Community 5 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 5 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Today I meet a similar problems like this.



          I use rpm -e --nodeps sqlit ...rpm
          then the problem occur like below.



          # rpm 
          error: Failed to initialize NSS library


          This link help me out of the trouble.
          https://ask.fedoraproject.org/en/question/75684/how-to-recover-yumdnfrpm-after-uninstall-sqlite/



          The core command is here :



          "sqlite-3.8.10.2-1.fc22.x86_64.rpm" Just as a demo rpm.



          # rpm2cpio sqlite-3.8.10.2-1.fc22.x86_64.rpm | cpio -idmv 
          Retrieving the sqlite-3.8.10.2-1.fc22.x86_64.rpm package to cpio format.
          #rpm -ivh sqlite
          Install sqlite


          Then your rpm / yum / dnf will be back .






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f290192%2freinstaling-nss-library-on-centos-amazon-ami%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Today I meet a similar problems like this.



            I use rpm -e --nodeps sqlit ...rpm
            then the problem occur like below.



            # rpm 
            error: Failed to initialize NSS library


            This link help me out of the trouble.
            https://ask.fedoraproject.org/en/question/75684/how-to-recover-yumdnfrpm-after-uninstall-sqlite/



            The core command is here :



            "sqlite-3.8.10.2-1.fc22.x86_64.rpm" Just as a demo rpm.



            # rpm2cpio sqlite-3.8.10.2-1.fc22.x86_64.rpm | cpio -idmv 
            Retrieving the sqlite-3.8.10.2-1.fc22.x86_64.rpm package to cpio format.
            #rpm -ivh sqlite
            Install sqlite


            Then your rpm / yum / dnf will be back .






            share|improve this answer




























              0














              Today I meet a similar problems like this.



              I use rpm -e --nodeps sqlit ...rpm
              then the problem occur like below.



              # rpm 
              error: Failed to initialize NSS library


              This link help me out of the trouble.
              https://ask.fedoraproject.org/en/question/75684/how-to-recover-yumdnfrpm-after-uninstall-sqlite/



              The core command is here :



              "sqlite-3.8.10.2-1.fc22.x86_64.rpm" Just as a demo rpm.



              # rpm2cpio sqlite-3.8.10.2-1.fc22.x86_64.rpm | cpio -idmv 
              Retrieving the sqlite-3.8.10.2-1.fc22.x86_64.rpm package to cpio format.
              #rpm -ivh sqlite
              Install sqlite


              Then your rpm / yum / dnf will be back .






              share|improve this answer


























                0












                0








                0







                Today I meet a similar problems like this.



                I use rpm -e --nodeps sqlit ...rpm
                then the problem occur like below.



                # rpm 
                error: Failed to initialize NSS library


                This link help me out of the trouble.
                https://ask.fedoraproject.org/en/question/75684/how-to-recover-yumdnfrpm-after-uninstall-sqlite/



                The core command is here :



                "sqlite-3.8.10.2-1.fc22.x86_64.rpm" Just as a demo rpm.



                # rpm2cpio sqlite-3.8.10.2-1.fc22.x86_64.rpm | cpio -idmv 
                Retrieving the sqlite-3.8.10.2-1.fc22.x86_64.rpm package to cpio format.
                #rpm -ivh sqlite
                Install sqlite


                Then your rpm / yum / dnf will be back .






                share|improve this answer













                Today I meet a similar problems like this.



                I use rpm -e --nodeps sqlit ...rpm
                then the problem occur like below.



                # rpm 
                error: Failed to initialize NSS library


                This link help me out of the trouble.
                https://ask.fedoraproject.org/en/question/75684/how-to-recover-yumdnfrpm-after-uninstall-sqlite/



                The core command is here :



                "sqlite-3.8.10.2-1.fc22.x86_64.rpm" Just as a demo rpm.



                # rpm2cpio sqlite-3.8.10.2-1.fc22.x86_64.rpm | cpio -idmv 
                Retrieving the sqlite-3.8.10.2-1.fc22.x86_64.rpm package to cpio format.
                #rpm -ivh sqlite
                Install sqlite


                Then your rpm / yum / dnf will be back .







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 27 '17 at 4:59









                AlopexAlopex

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f290192%2freinstaling-nss-library-on-centos-amazon-ami%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...