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
for me worked changing the filesystem from Read-Only before running vim:
bash-3.2# mount -o remount rw /