一生懸命走っていますsudo apt-get update
。
sudoersファイルに自分自身を「追加する」試みの最後の出力を貼り付けます。 (私はそのファイルにあると思いましたが、そうでなかったというエラーが発生し続けました...)
timothy@AMDx6:~$ sudo nano /etc/inittab
[sudo] password for timothy:
timothy is not in the sudoers file. This incident will be reported.
timothy@AMDx6:~$ su
Password:
root@AMDx6:/home/timothy# visudo
visudo: /etc/sudoers.tmp unchanged
root@AMDx6:/home/timothy# sudo adduser timothy
adduser: The user `timothy' already exists.
root@AMDx6:/home/timothy# exit
exit
timothy@AMDx6:~$ sudo apt-get update
[sudo] password for timothy:
timothy is not in the sudoers file. This incident will be reported.
timothy@AMDx6:~$
ベストアンサー1
sudo
ユーザーが存在しないのではなく、sudoersファイルにないことです。
adduser
sudoers ファイルのエントリではなく、システムユーザーを追加するスクリプトです。
必要な操作を実行するにはtimothy
権限を付与する必要がありますvisudo
。詳細を確認してくださいman sudoers
。