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???

isaac
asked May 17, 2017
3 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.

View More
ayesy
answered Jul 17, 2023
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.

View More
Manisoa
answered Aug 16, 2023
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
View More
jagannatharumugam
answered May 18, 2017
Your Answer
||||
x
 
100:0