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
I referenced to Zsolt in level 2, I input:
:w !sudo tee % > /dev/null
and then in my situation, I still can't modify the file, so it prompted that add "!". so I input
:q!
then it works