Ubuntu无法登陆

先给大家描述一下我电脑当时的情况:

1.Ubuntu14.04 更新之后提示重启,重启之后登陆页面的输入密码方框变得异常大,一看就知道是显卡驱动崩溃了(我安装了NVIDIA的驱动)。

2.既然是驱动崩溃了,输入密码自然是无法登陆,输入密码之后回车还是会返回到登陆界面,无限返回登录界面,无法进入系统。

3.一个自然的想法是使用 "ctrl+alt+F1"启动 TTY模式重装显卡驱动,高潮来了。使用TTY模式登录一直显示“Login incorrect.”

4.切换TTY1-6(ctrl+alt+F1~F6)六个模式,问题无法解决。

5.不知道在TTY模式下登录系统要先输入用户名再输入密码的同志不要说话,我不会犯这种低级错误。

6.说我用了键盘右侧数字小键盘的或者是开启了NumLock的也不要说话,我也不会那么笨。直接用键盘上的一横排的数字区输入的数字,NumLock也关闭了。

7.说我用户名密码输入错误的可以走了,我不是白痴。

网上全是针对上述4.5.6.7.的解决方案,看得我一愣一愣的,根本无法解决问题。

如果你悲催的和我遇到一样的问题,我们可以抱着哭一会。

这里说一句,有人说使用TTY模式登录要输入用户名全称而不是简称。何为用户名的全称和简称?大家记得安装Ubuntu系统时输入了三个名字,分别是计算机名称、用户名和你的名字。你的用户名全称就是那时输入的用户名,你的用户名简称就是你输入的你的名字。使用Ubuntu图形界面登录系统时显示的是简称,也就是安装系统时输入的你的名字。全称和简称对应的都是你安装系统时输入的密码。比如我的用户名全称是hp-xxx,简称是xxx。如果遇到上述问题可以全称简称换着试试,如果成功了万事大吉,不成功就往下看,顺便再哭一会。

这里引入一个修改用户名和密码的方法,如果你是忘记了密码,可以参考以下步骤重置密码。原文地址:http://www.psychocats.net/ubuntu/resetpassword

原作者不要打我,侵删。

How to reset your password in Ubuntu


This work is licensed under a
Creative Commons Attribution-ShareAlike 3.0 Unported License.

There are many reasons you might want to reset a password:

  • Someone gave you a computer with Ubuntu installed on it but not the password for the user account.
  • You just installed Ubuntu and forgot what password you selected during the installation process.
  • You have too many passwords in your life and can't keep track of them all.
Well, this tutorial will help you reset your Ubuntu user account password, regardless of what reason you have for resetting it.

First, you have to reboot into recovery mode.

If you have a single-boot (Ubuntu is the only operating system on your computer), to get the boot menu to show, you have to hold down the Shift key during bootup.

If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to hold down the Shift key.


From the boot menu, select
recovery mode, which is usually the second boot option.


After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the
Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.

The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.

In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes:

mount -o rw,remount /


If you have forgotten your username as well, type

ls /home
That's a lowercase L , by the way, not a capital i , in ls . You should then see a list of the users on your Ubuntu installation. In this case, I'm going to reset Susan Brownmiller's password.

To reset the password, type

passwd username
where username is the username you want to reset. In this case, I want to reset Susan's password, so I type
passwd susan

You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.

Now the password should be reset. Type

exit
to return to the recovery menu.

 
After you get back to the recovery menu, select
resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!

Note:
Some people get freaked out about having recovery mode logging you in as root. For more information, read
Recovery mode makes me root user. Isn't that a security risk?

Last updated 04/29/12 11:34


英文的,看不大懂。反正就是教你修改密码。我又没有忘记密码,继续往下说。

启动系统时疯狂按住SHIFT键,这个过程比较纠结,如果是Ubuntu单系统的话需要一按下开机键就按SHIFT键,疯狂地按,可能需要试几次才能看到弹出菜单。

在弹出的菜单中选择第二项Ubuntu高级选项(如果弹出菜单中有recovery mode,则直接选择recovery mode),在里面选中修复模式(recovery mode)。因为我没有忘记密码,就不教大家改密码了。我当时选择的是执行:

Drop to root shell prompt,然后输入mount -o rw,remount /,然后 ls /home,里面什么都没有,吓屎宝宝了,以为硬盘数据都丢失了,然后直接输入exit,然后点击Resume normal boot进入平常的Ubuntu系统。

在我的Ubuntu高级选项中有三个recovery mode,这三个模式有不同的Linux-generic-pae版本。我试了第一个,执行上面说的命令,不行。第三个。不行。抱着侥幸的心理试了第二个,居然可以进入系统了,我都不知道为什么。。所以把详细过程告诉大家,大家自己发掘吧,,。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于Ubuntu系统无法登录的问题,可以采取以下步骤来解决。 首先,检查是否安装了ssh服务。使用命令sudo apt-get install openssh-server来安装ssh服务。如果已经安装了ssh服务,可以跳过这一步。 其次,确定是否允许root用户通过ssh登录。在Ubuntu系统中,默认情况下是禁止root用户通过ssh登录的。可以通过编辑ssh配置文件来修改这个设置。首先,使用命令sudo nano /etc/ssh/sshd_config来打开ssh配置文件。找到PermitRootLogin这一行,并将其改为PermitRootLogin yes。保存并关闭文件。然后,重启ssh服务,使用命令sudo service ssh restart。 如果上述步骤仍然无法解决问题,可以尝试在登录界面使用快捷键alt + ctrl + f2进入命令模式。登录后,如果不是root用户,需要切换到root用户。然后,可以进一步进行故障排除和修复。例如,可以检查系统日志以获取更多有关登录问题的信息,并进行相应的修复。 总结来说,针对Ubuntu系统无法登录的问题,可以通过安装ssh服务、允许root用户通过ssh登录以及进入命令模式进行故障排除来解决。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [Ubuntu_Kylin系统无法远程登录问题解决](https://blog.csdn.net/weixin_44990616/article/details/129055410)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [ubuntu 无法登录](https://blog.csdn.net/caohonxian/article/details/83850084)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值