0

/etc/apt/sources.list Permission denied

In my Ubuntu machine, if I give nano /etc/apt/sources.list , I cant edit the file which says the below error as follows.

  # nano /etc/apt/sources.list
  Error when writing /etc/apt/sources.list : no permission aloweded

I cant save the file???

Ubuntu Permissions Add a comment
isaac
asked May 18 2017

Answer

0

If you are facing this error try to run this command "# sudo nano /etc/apt/sources.list" I think this will give access to sudo and your error will be dimissed.

Add a comment
ayesy
asked Jul 17 2023
edited Aug 24 2023
Post your Answer
0

You can try this command to see if it fixes the problem. In my opinion, this will grant sudo access and make your mistake invisible.

Add a comment
Manisoa
asked Aug 16 2023
edited Aug 24 2023
Post your Answer
0

It means that the source file needs sudo access. So try with sudo at front as shown below.

# sudo nano /etc/apt/sources.list
Add a comment
jagannatharumugam
asked May 18 2017
edited Oct 05 2018
Post your Answer