我在我的笔记本电脑上使用 VMware Player 运行 Ubuntu 12.04。我不知道为什么,但除了我通常登录使用 Ubuntu 的帐户之外,我还有一个名为“用户帐户”的帐户。好吧,这只是附带评论,但基本上我要做的就是在 Ubuntu 上安装 ncurses 库。我尝试使用以下命令行安装 ncurses:
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-dev
Run Code Online (Sandbox Code Playgroud)
当我尝试使用上述命令安装 ncurses 两次时,我在终端中收到以下提示:
[sudo] password for username
Run Code Online (Sandbox Code Playgroud)
当我输入密码时,我收到以下消息:
username is not in the sudoers file. This incident will be reported.
Run Code Online (Sandbox Code Playgroud)
到目前为止,我已尝试按照以下链接中的说明启用 root 用户(“超级用户”)帐户:https : //help.ubuntu.com/community/RootSudo
以下是链接建议执行的一些操作:
允许其他用户运行 sudo。在命令行中键入以下内容:
须藤 adduser 用户名须藤
或者
须藤 adduser 用户名须藤
以其他用户身份登录。在命令行中键入以下内容:
sudo -i -u 用户名
启用 root 帐户。在命令行中键入以下内容:
须藤 -i
或者
须藤密码根
我已经尝试了上述所有命令行,在输入每个命令后,系统提示我输入密码。输入密码后,我收到了与尝试安装 ncurses 时相同的消息:
fsolano is not in the sudoers file. This …Run Code Online (Sandbox Code Playgroud) sudo ×1