F5F Stay Refreshed Software Operating Systems Ubuntu错误信息需要具体分析才能解决。请提供详细描述错误内容或发生情况。

Ubuntu错误信息需要具体分析才能解决。请提供详细描述错误内容或发生情况。

Ubuntu错误信息需要具体分析才能解决。请提供详细描述错误内容或发生情况。

W
W_O_L_F_R_A_M
Member
125
10-18-2023, 09:59 PM
#1
A few months ago I set up Ubuntu on my laptop just to try it out. I used it for a short time before switching back to Windows. I wanted to test something on Ubuntu but when I logged in, it reported an internal error. Someone suggested using Ctrl + Alt + F2 to run a command, but I need to log in first and remember my username—it doesn’t match the one shown during startup. Anyone have any advice? Thanks!
W
W_O_L_F_R_A_M
10-18-2023, 09:59 PM #1

A few months ago I set up Ubuntu on my laptop just to try it out. I used it for a short time before switching back to Windows. I wanted to test something on Ubuntu but when I logged in, it reported an internal error. Someone suggested using Ctrl + Alt + F2 to run a command, but I need to log in first and remember my username—it doesn’t match the one shown during startup. Anyone have any advice? Thanks!

S
Sussu
Senior Member
708
11-06-2023, 05:03 PM
#2
It might be the incorrect password, though I doubt it.
S
Sussu
11-06-2023, 05:03 PM #2

It might be the incorrect password, though I doubt it.

A
alejandrobo1
Posting Freak
877
11-07-2023, 09:00 AM
#3
I can't view the GUI directly. However, if you navigate to System Settings > User Accounts, you should see a list of users with their display names and usernames below them. If you need help identifying specific usernames, let me know! Also, remember usernames are typically in lowercase.
A
alejandrobo1
11-07-2023, 09:00 AM #3

I can't view the GUI directly. However, if you navigate to System Settings > User Accounts, you should see a list of users with their display names and usernames below them. If you need help identifying specific usernames, let me know! Also, remember usernames are typically in lowercase.

D
DanielQMC
Member
103
11-09-2023, 07:37 AM
#4
Have you attempted to log in as the root user? The password should match what you use for your regular account. After logging into the CLI with the root account, open a terminal and run cat /etc/passwd to see your username. If that doesn’t help, it’s likely you’ve forgotten the password. To reset it, boot into a Linux live CD and follow these steps: 1. Use lsblk to locate the hard drive where Linux is installed (usually /dev/sda). 2. Create a folder to mount the drive (e.g., ~/hdd). 3. Mount the root partition with the command mount /dev/sda1 ~/hdd. 4. Enter chroot into ~/hdd. 5. Execute passwd and update your root password. If this still fails, you may be locked out, and the only option is to reinstall Linux.
D
DanielQMC
11-09-2023, 07:37 AM #4

Have you attempted to log in as the root user? The password should match what you use for your regular account. After logging into the CLI with the root account, open a terminal and run cat /etc/passwd to see your username. If that doesn’t help, it’s likely you’ve forgotten the password. To reset it, boot into a Linux live CD and follow these steps: 1. Use lsblk to locate the hard drive where Linux is installed (usually /dev/sda). 2. Create a folder to mount the drive (e.g., ~/hdd). 3. Mount the root partition with the command mount /dev/sda1 ~/hdd. 4. Enter chroot into ~/hdd. 5. Execute passwd and update your root password. If this still fails, you may be locked out, and the only option is to reinstall Linux.

W
Walviss
Junior Member
22
11-09-2023, 02:16 PM
#5
Sure, I get that. Just to confirm—you're asking about the username, not your real name?
W
Walviss
11-09-2023, 02:16 PM #5

Sure, I get that. Just to confirm—you're asking about the username, not your real name?

B
Backstaber970
Senior Member
435
11-13-2023, 02:12 AM
#6
I executed a few commands to reset my password (in advanced boot mode), and it functioned properly afterward. Sorry for missing the post—I appreciate your help!
B
Backstaber970
11-13-2023, 02:12 AM #6

I executed a few commands to reset my password (in advanced boot mode), and it functioned properly afterward. Sorry for missing the post—I appreciate your help!

I
Irrjr81_gamer
Member
222
11-13-2023, 02:43 AM
#7
I entered advanced boot mode, then switched to recovery mode. There was a method to reset my password there, and after that it functioned properly again. I believe it did more than just the password change; after logging back in in recovery mode, the issue was resolved, though I’m not entirely sure what exactly happened.
I
Irrjr81_gamer
11-13-2023, 02:43 AM #7

I entered advanced boot mode, then switched to recovery mode. There was a method to reset my password there, and after that it functioned properly again. I believe it did more than just the password change; after logging back in in recovery mode, the issue was resolved, though I’m not entirely sure what exactly happened.

F
Firewolf361
Junior Member
49
11-14-2023, 01:31 PM
#8
It seems you successfully restored your user account from a single-user mode as root. Nice work!
F
Firewolf361
11-14-2023, 01:31 PM #8

It seems you successfully restored your user account from a single-user mode as root. Nice work!

A
AirJuan
Junior Member
3
11-18-2023, 10:38 AM
#9
I wasn't sure about my actions... I should have searched a bit more.
A
AirJuan
11-18-2023, 10:38 AM #9

I wasn't sure about my actions... I should have searched a bit more.