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

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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?
apt software-updates
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.
add a comment |Â
up vote
0
down vote
favorite
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?
apt software-updates
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.
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
apt software-updates
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
apt software-updates
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.
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.
add a comment |Â
add a comment |Â
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
add a comment |Â
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).
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
edited Oct 1 at 0:16
answered Sep 30 at 22:26
guiverc
20315
20315
add a comment |Â
add a comment |Â
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).
add a comment |Â
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).
add a comment |Â
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).
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).
answered Sep 30 at 22:20
Joseph Sible
1,009213
1,009213
add a comment |Â
add a comment |Â