Hello, I am trying to edit my sudoers file on my Ubuntu machine but I am unable to do this. When I run the command sudo visudo I get a screen as the one shown in my attachment. Once I add a line in the file I am not able to save it. Can someone let me know what I need to do? Thank you.
Press Ctrl and X, it should then prompt to save changes. Once you choose Yes, it should give an error message as to why it cannot save.