But why don´t you simply remove the file? Then the error is gone? On a new installation, sudoers.d folder is empty?
Edit:
Oh, now i have read the posting again, you want to have the sudoers-file, not the own file in the sudoers.d folder…
Here is mine from debian-installation:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Always edit sudoers using visudo. That checks for errors and rejects the file if there are problems.
The easiest thing is if you have another Linux computer. You can then mount the SD card’s file system and edit the file using visudo. So if you mount the SD card to /media then you would run sudo visudo -f /mnt/etc/sudoers. Even though this isn’t a live sudoers file visudo will still check for syntax errors.
You will not be able to replace, modify or otherwise replace the broken visudoers file on your running system because it will require sudo to do so. As long as there is a syntax error no user has access to sudo anymore.