So, I've messed up my sudoers file in the windows subsystem for linux. I was trying to add something, and the guy of the tutorial said to edit sudoers file with nano/vim, and that's what I did (later I discovered that you should only edit it with visudo, nice). When I saved, I realized I couldn't use "sudo" anymore, the terminal would complain saying:
>>> /etc/sudoers: syntax error near line 33 <<<sudo: parse error in /etc/sudoers near line 33sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginI've read a bunch of articles saying that I would have to run:
pkexec /usr/sbin/visudoBut the result was always the same:
Error getting authority: Error initializing authority: Could not connect: No such file or directoryI tried everything, spent like two hours reading stuff and couldn't do anything. Can anyone help me? As you can see, I'm clearly new when it comes to real linux.