I am not able to install easy_install in my ubuntu












8















i have to install Review board in ubuntu, i tried following commands but i am getting error



sudo apt-get install python-setuptools.


Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate


Then i tried below command but for this also i am getting error message:



apt-get upgrade

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


What should i do? Please help me out!!!!!










share|improve this question





























    8















    i have to install Review board in ubuntu, i tried following commands but i am getting error



    sudo apt-get install python-setuptools.


    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package python-setuptools is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package python-setuptools has no installation candidate


    Then i tried below command but for this also i am getting error message:



    apt-get upgrade

    E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


    What should i do? Please help me out!!!!!










    share|improve this question



























      8












      8








      8


      1






      i have to install Review board in ubuntu, i tried following commands but i am getting error



      sudo apt-get install python-setuptools.


      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package python-setuptools is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      E: Package python-setuptools has no installation candidate


      Then i tried below command but for this also i am getting error message:



      apt-get upgrade

      E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
      E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


      What should i do? Please help me out!!!!!










      share|improve this question
















      i have to install Review board in ubuntu, i tried following commands but i am getting error



      sudo apt-get install python-setuptools.


      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package python-setuptools is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      E: Package python-setuptools has no installation candidate


      Then i tried below command but for this also i am getting error message:



      apt-get upgrade

      E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
      E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


      What should i do? Please help me out!!!!!







      apt python






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 27 '13 at 13:49









      M.Tarun

      3,45162562




      3,45162562










      asked Sep 26 '13 at 12:41









      swatiswati

      41112




      41112






















          4 Answers
          4






          active

          oldest

          votes


















          16














          Open a terminal by pressing Ctrl+Alt+T and type the following:



          sudo apt-get update

          sudo apt-get upgrade

          sudo apt-get install python-setuptools



          Reasons behind the errors
          Error1:



          Package python-setuptools is not available, but is referred to by another package.
          This may mean that the package is missing, has been obsoleted, or
          is only available from another source
          E: Package python-setuptools has no installation candidate


          This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.



          Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
          Error2:



            apt-get upgrade

          E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
          E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


          This means that you are not the root user.So we use sudo to execute it as root






          share|improve this answer
























          • Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

            – swati
            Sep 26 '13 at 13:44













          • Which version of ubuntu are you using?

            – M.Tarun
            Sep 27 '13 at 12:11











          • This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

            – Pedro Gordo
            Sep 23 '18 at 11:11



















          3














          Please don't use easy_install, but try pip instead.



          sudo apt-get install python-pip


          Now you can use it in almost the same way as easy_install, but with better package management.



          sudo pip install <pypi-package>





          share|improve this answer
























          • After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

            – swati
            Sep 26 '13 at 13:47











          • Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

            – Javier Rivera
            Sep 27 '13 at 6:39



















          1














          The answer to your second issue (could not open lock file) you find here.






          share|improve this answer































            0














            if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running



            sudo apt install python3-pip


            and then install the required package via



            pip install <desired-package>





            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              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: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              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%2faskubuntu.com%2fquestions%2f350312%2fi-am-not-able-to-install-easy-install-in-my-ubuntu%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              16














              Open a terminal by pressing Ctrl+Alt+T and type the following:



              sudo apt-get update

              sudo apt-get upgrade

              sudo apt-get install python-setuptools



              Reasons behind the errors
              Error1:



              Package python-setuptools is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              E: Package python-setuptools has no installation candidate


              This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.



              Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
              Error2:



                apt-get upgrade

              E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
              E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


              This means that you are not the root user.So we use sudo to execute it as root






              share|improve this answer
























              • Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

                – swati
                Sep 26 '13 at 13:44













              • Which version of ubuntu are you using?

                – M.Tarun
                Sep 27 '13 at 12:11











              • This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

                – Pedro Gordo
                Sep 23 '18 at 11:11
















              16














              Open a terminal by pressing Ctrl+Alt+T and type the following:



              sudo apt-get update

              sudo apt-get upgrade

              sudo apt-get install python-setuptools



              Reasons behind the errors
              Error1:



              Package python-setuptools is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              E: Package python-setuptools has no installation candidate


              This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.



              Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
              Error2:



                apt-get upgrade

              E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
              E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


              This means that you are not the root user.So we use sudo to execute it as root






              share|improve this answer
























              • Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

                – swati
                Sep 26 '13 at 13:44













              • Which version of ubuntu are you using?

                – M.Tarun
                Sep 27 '13 at 12:11











              • This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

                – Pedro Gordo
                Sep 23 '18 at 11:11














              16












              16








              16







              Open a terminal by pressing Ctrl+Alt+T and type the following:



              sudo apt-get update

              sudo apt-get upgrade

              sudo apt-get install python-setuptools



              Reasons behind the errors
              Error1:



              Package python-setuptools is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              E: Package python-setuptools has no installation candidate


              This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.



              Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
              Error2:



                apt-get upgrade

              E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
              E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


              This means that you are not the root user.So we use sudo to execute it as root






              share|improve this answer













              Open a terminal by pressing Ctrl+Alt+T and type the following:



              sudo apt-get update

              sudo apt-get upgrade

              sudo apt-get install python-setuptools



              Reasons behind the errors
              Error1:



              Package python-setuptools is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              E: Package python-setuptools has no installation candidate


              This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.



              Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
              Error2:



                apt-get upgrade

              E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
              E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


              This means that you are not the root user.So we use sudo to execute it as root







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 26 '13 at 12:57









              M.TarunM.Tarun

              3,45162562




              3,45162562













              • Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

                – swati
                Sep 26 '13 at 13:44













              • Which version of ubuntu are you using?

                – M.Tarun
                Sep 27 '13 at 12:11











              • This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

                – Pedro Gordo
                Sep 23 '18 at 11:11



















              • Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

                – swati
                Sep 26 '13 at 13:44













              • Which version of ubuntu are you using?

                – M.Tarun
                Sep 27 '13 at 12:11











              • This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

                – Pedro Gordo
                Sep 23 '18 at 11:11

















              Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

              – swati
              Sep 26 '13 at 13:44







              Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

              – swati
              Sep 26 '13 at 13:44















              Which version of ubuntu are you using?

              – M.Tarun
              Sep 27 '13 at 12:11





              Which version of ubuntu are you using?

              – M.Tarun
              Sep 27 '13 at 12:11













              This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

              – Pedro Gordo
              Sep 23 '18 at 11:11





              This answer is no longer valid. easy_install has been removed from python-setuptools: askubuntu.com/a/1052682/519931

              – Pedro Gordo
              Sep 23 '18 at 11:11













              3














              Please don't use easy_install, but try pip instead.



              sudo apt-get install python-pip


              Now you can use it in almost the same way as easy_install, but with better package management.



              sudo pip install <pypi-package>





              share|improve this answer
























              • After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

                – swati
                Sep 26 '13 at 13:47











              • Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

                – Javier Rivera
                Sep 27 '13 at 6:39
















              3














              Please don't use easy_install, but try pip instead.



              sudo apt-get install python-pip


              Now you can use it in almost the same way as easy_install, but with better package management.



              sudo pip install <pypi-package>





              share|improve this answer
























              • After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

                – swati
                Sep 26 '13 at 13:47











              • Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

                – Javier Rivera
                Sep 27 '13 at 6:39














              3












              3








              3







              Please don't use easy_install, but try pip instead.



              sudo apt-get install python-pip


              Now you can use it in almost the same way as easy_install, but with better package management.



              sudo pip install <pypi-package>





              share|improve this answer













              Please don't use easy_install, but try pip instead.



              sudo apt-get install python-pip


              Now you can use it in almost the same way as easy_install, but with better package management.



              sudo pip install <pypi-package>






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 26 '13 at 12:48









              TimoTimo

              4,1841924




              4,1841924













              • After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

                – swati
                Sep 26 '13 at 13:47











              • Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

                – Javier Rivera
                Sep 27 '13 at 6:39



















              • After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

                – swati
                Sep 26 '13 at 13:47











              • Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

                – Javier Rivera
                Sep 27 '13 at 6:39

















              After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

              – swati
              Sep 26 '13 at 13:47





              After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip

              – swati
              Sep 26 '13 at 13:47













              Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

              – Javier Rivera
              Sep 27 '13 at 6:39





              Some reasons why you should use pip: stackoverflow.com/questions/3220404/…

              – Javier Rivera
              Sep 27 '13 at 6:39











              1














              The answer to your second issue (could not open lock file) you find here.






              share|improve this answer




























                1














                The answer to your second issue (could not open lock file) you find here.






                share|improve this answer


























                  1












                  1








                  1







                  The answer to your second issue (could not open lock file) you find here.






                  share|improve this answer













                  The answer to your second issue (could not open lock file) you find here.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 26 '13 at 12:59









                  zwetszwets

                  8,32922340




                  8,32922340























                      0














                      if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running



                      sudo apt install python3-pip


                      and then install the required package via



                      pip install <desired-package>





                      share|improve this answer






























                        0














                        if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running



                        sudo apt install python3-pip


                        and then install the required package via



                        pip install <desired-package>





                        share|improve this answer




























                          0












                          0








                          0







                          if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running



                          sudo apt install python3-pip


                          and then install the required package via



                          pip install <desired-package>





                          share|improve this answer















                          if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running



                          sudo apt install python3-pip


                          and then install the required package via



                          pip install <desired-package>






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Feb 20 at 5:35

























                          answered Feb 19 at 10:51









                          Avin MathewAvin Mathew

                          12




                          12






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • 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%2faskubuntu.com%2fquestions%2f350312%2fi-am-not-able-to-install-easy-install-in-my-ubuntu%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

                              flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                              Mangá

                              Eduardo VII do Reino Unido