重启系统,机器重启的时候按shift键,进入如下grub界面 选择Advanced options for Ubuntu选项,进入下一个选择页面,并选择最新的recovery mode,版本略有不同 选择 Drop to root shell prompt passwd 用户名