Why do I need to enter my password for apt update? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1













This question already has an answer here:



  • Why do I need root-privileges to update my package manager's package list?

    2 answers



I can understand why you need to enter your password for an sudo apt install daSoftware or even sudo apt upgrade: you are modifying the code that will run on your machine.



But why on apt update? You are just updating the list of available software. Why would it be a problem not to ask for the extra privilege granted by the super user mode to perform an update?










share|improve this question







New contributor




Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by muru, Goro, Isaac, G-Man, Stephen Kitt Oct 1 at 4:43


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    0
    down vote

    favorite
    1













    This question already has an answer here:



    • Why do I need root-privileges to update my package manager's package list?

      2 answers



    I can understand why you need to enter your password for an sudo apt install daSoftware or even sudo apt upgrade: you are modifying the code that will run on your machine.



    But why on apt update? You are just updating the list of available software. Why would it be a problem not to ask for the extra privilege granted by the super user mode to perform an update?










    share|improve this question







    New contributor




    Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    marked as duplicate by muru, Goro, Isaac, G-Man, Stephen Kitt Oct 1 at 4:43


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1






      This question already has an answer here:



      • Why do I need root-privileges to update my package manager's package list?

        2 answers



      I can understand why you need to enter your password for an sudo apt install daSoftware or even sudo apt upgrade: you are modifying the code that will run on your machine.



      But why on apt update? You are just updating the list of available software. Why would it be a problem not to ask for the extra privilege granted by the super user mode to perform an update?










      share|improve this question







      New contributor




      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      This question already has an answer here:



      • Why do I need root-privileges to update my package manager's package list?

        2 answers



      I can understand why you need to enter your password for an sudo apt install daSoftware or even sudo apt upgrade: you are modifying the code that will run on your machine.



      But why on apt update? You are just updating the list of available software. Why would it be a problem not to ask for the extra privilege granted by the super user mode to perform an update?





      This question already has an answer here:



      • Why do I need root-privileges to update my package manager's package list?

        2 answers







      apt software-updates






      share|improve this question







      New contributor




      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Sep 30 at 21:48









      Akita

      31




      31




      New contributor




      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Akita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      marked as duplicate by muru, Goro, Isaac, G-Man, Stephen Kitt Oct 1 at 4:43


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by muru, Goro, Isaac, G-Man, Stephen Kitt Oct 1 at 4:43


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The list of software is written in protected areas (/var/lib/apt/#1) you don't have write access to. The elevated permissions are required to write into that directory where all users can read, but not write.



          #1: @jordanm correctly pointed this directory out; thanks Jordan






          share|improve this answer





























            up vote
            -1
            down vote













            Because everything you do with sudo requires a password by default, and there's no exception for that in your sudoers file (though you could add one via NOPASSWD if you want).






            share|improve this answer



























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              The list of software is written in protected areas (/var/lib/apt/#1) you don't have write access to. The elevated permissions are required to write into that directory where all users can read, but not write.



              #1: @jordanm correctly pointed this directory out; thanks Jordan






              share|improve this answer


























                up vote
                1
                down vote



                accepted










                The list of software is written in protected areas (/var/lib/apt/#1) you don't have write access to. The elevated permissions are required to write into that directory where all users can read, but not write.



                #1: @jordanm correctly pointed this directory out; thanks Jordan






                share|improve this answer
























                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  The list of software is written in protected areas (/var/lib/apt/#1) you don't have write access to. The elevated permissions are required to write into that directory where all users can read, but not write.



                  #1: @jordanm correctly pointed this directory out; thanks Jordan






                  share|improve this answer














                  The list of software is written in protected areas (/var/lib/apt/#1) you don't have write access to. The elevated permissions are required to write into that directory where all users can read, but not write.



                  #1: @jordanm correctly pointed this directory out; thanks Jordan







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Oct 1 at 0:16

























                  answered Sep 30 at 22:26









                  guiverc

                  20315




                  20315






















                      up vote
                      -1
                      down vote













                      Because everything you do with sudo requires a password by default, and there's no exception for that in your sudoers file (though you could add one via NOPASSWD if you want).






                      share|improve this answer
























                        up vote
                        -1
                        down vote













                        Because everything you do with sudo requires a password by default, and there's no exception for that in your sudoers file (though you could add one via NOPASSWD if you want).






                        share|improve this answer






















                          up vote
                          -1
                          down vote










                          up vote
                          -1
                          down vote









                          Because everything you do with sudo requires a password by default, and there's no exception for that in your sudoers file (though you could add one via NOPASSWD if you want).






                          share|improve this answer












                          Because everything you do with sudo requires a password by default, and there's no exception for that in your sudoers file (though you could add one via NOPASSWD if you want).







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 30 at 22:20









                          Joseph Sible

                          1,009213




                          1,009213












                              Popular posts from this blog

                              Peggy Mitchell

                              Palaiologos

                              The Forum (Inglewood, California)