Каждый раз, когда я использую команду sudo, он говорит & gt; & gt; & gt; & gt; /etc/sudoers.d/90-cloudimg-ubuntu: синтаксическая ошибка около строки 1 & lt;

У меня возникла следующая ошибка при использовании команды sudo apt-get update.

:~$sudo apt-get update
/etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1 <<<
sudo: parse error in /etc/sudoers.d/90-cloudimg-ubuntu near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

См. здесь

Я попытался найти решение, конец файла уже

#includedir /etc/sudoers.d

Вы можете просмотреть вывод для «pkexec visudo» См. здесь

Вы можете просмотреть файл etc / sudoers:

[ f3]

и файл etc / sudoers.d / README

#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
# 
#   #includedir /etc/sudoers.d
# 
# This will cause sudo to read and parse any files in the /etc/sudoers.d 
# directory that do not end in '~' or contain a '.' character.
# 
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
# 
# Note also, that because sudoers contents can vary widely, no attempt is 
# made to add this directive to existing sudoers files on upgrade.  Feel free
# to add the above directive to the end of your /etc/sudoers file to enable 
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#

и вывод для pkexec cat /etc/sudoers.d/90-cloudimg-ubuntu:

$(user) ALL=(ALL) NOPASSWD:ALL

ИЗМЕНИТЬ 1 Теперь я получаю следующие ошибки:

Я хочу конкретный и уточненный ответ. Я новичок в Ubuntu (14.04), пожалуйста, помогите мне!

1
задан 1 July 2016 в 04:39

0 ответов

Другие вопросы по тегам:

Похожие вопросы: