升级 Ubuntu 到 14.04,无法登录我的账户并且不知道 root 密码

升级 Ubuntu 到 14.04,无法登录我的账户并且不知道 root 密码

我最近将我的 ubuntu 从 12.04 LTS 升级到了 14.04 LTS。在安装下载的软件包时,我的系统挂断并重新启动。问题就是这样开始的。

它并没有窃取我的旧密码。

我甚至无法以访客用户身份登录。

帮我。

答案1

从 ubuntu cd 启动,挂载你的根分区,chroot 到根分区并更改你的密码。 1 启动 live cd 2 打开终端 3 sudo -s 4 mount /dev/sda1 /mnt ,如果 sda1 是你的根分区。 5 chroot /mnt 6 passwd root 新密码 新密码 7 passwd youruser 新密码 新密码 8 退出 9 umount /mnt 10 重启

相关内容