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

Tags: Ubuntu Permissions
user image Author :   isaac
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
user image
jagannatharumugam May 19, 2017
Add comment