/etc/apt/sources.list” E212: Can’t open file for writing

Vim has a builtin help system. I just quoted what it says to :h E212. You might want to edit the file as a superuser as sudo vim FILE. Or if you don’t want to leave your existing vim session (and now have proper sudo rights), you can issue: Which will save the file. HTH

Categories vi

/etc/apt/sources.list” E212: Can’t open file for writing

Vim has a builtin help system. I just quoted what it says to :h E212. You might want to edit the file as a superuser as sudo vim FILE. Or if you don’t want to leave your existing vim session (and now have proper sudo rights), you can issue: Which will save the file. HTH

Categories vi

How do I exit the Vim editor?

Hit the Esc key to enter “Normal mode”. Then you can type : to enter “Command-line mode”. A colon (:) will appear at the bottom of the screen and you can type in one of the following commands. To execute a command, press the Enter key. :q to quit (short for :quit) :q! to quit … Read more