You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu虚拟机无法使用sudo权限问题求助

Ubuntu虚拟机无法使用sudo权限问题求助

各位大佬,我最近碰到个棘手的问题:想获取管理员权限,但试了大家平时常用的方法都不管用,实在没辙了来求助!

我先后试了sudo -i和sudo su这两个命令,结果终端都返回了权限报错,具体的输出内容如下:

usbuser123@Ubuntu2USB:~$ sudo -i
[sudo] password for usbuser123:
usbuser123 is not in the sudoers file.  This incident will be recorded

usbuser123@Ubuntu2USB:~$ sudo su
[sudo] password for usbuser123:
Sorry, try again.
[sudo] password for usbuser123:
usbuser123 is not in the sudoers file.  This incident will be recorded

这里还有一张终端报错的截图,能更直观看到情况:
终端显示sudo权限报错的界面

备注:内容来源于stack exchange,提问作者David Hoffsetz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 12:45:30