I am trying to edit sources.list using vi editor but getting the following error while saving the file:
/etc/apt/sources.list\" E212: Can\'t open file for wr
Try to connect as root and then edit file. This works for me