Jump to content

Hello

A few months ago I installed Ubuntu on my laptop just to try It out, I used it for a little bit but went back to Windos after that. 

I wanted to test something on Ubuntu but when I logged in it said ubuntu has experienced an internal error. I looked it up online and some one said:

Pres Ctrl + alt + F2 than run a command.

But first I have to log in but I think I don't know my username it is not the one it shows when you start ubuntu up.

Anyone know what I should do?

Thanks in advance!

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/
Share on other sites

Link to post
Share on other sites

Can you access the GUI? Open System Settings>User Accounts. There should be a list of users on the left with a display name in bold and the username underneath in non-bold.

 

If you can't access the GUI, I'm not sure if you can check for usernames. Try guessing random usernames. Also, I believe usernames have to be lowercase? Don't quote me on that, but if you were trying with capitals previously, try an all-lowercase username.

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11107041
Share on other sites

Link to post
Share on other sites

hi @42thgamer

 

Have you tried to login as root user?  this should be the same password as your normale user. When logged in to the CLI with the root account run cat /etc/passwd to figure out the name of your useraccount.

 

If it doesnt work then you probably forgot the password. To reset password boot a linux live cd and follow the following steps.

 

1. Run lsblk to find the hardrive with linux installed at it. (useually /dev/sda)

 

2. Make a directory to mount harddrive to  mkdir ~/hdd

 

3. mount root partition.  mount /dev/sda1 ~/hdd

 

4. Run chroot ~/hdd

 

5. Run passwd, and change root password.

 

If that doesnt work either then your probably locked out of your system because of that error and the only solution i can think of is to reinstall linux.

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11125340
Share on other sites

Link to post
Share on other sites

This may be a really stupid question, but you're using the right username and not your name, right?

Desktop

Y4M1-II: AMD Ryzen 9-5900X | Asrock RX 6900XT Phantom Gaming D | Gigabyte RTX 4060 low profile | 64GB G.Skill Ripjaws V | 4TB Samsung 990 Pro + 8TB WD Black SN850X + 4TB 870 EVO + + 8TB WD Black HDD | Lian Li O11 Dynamic XL-X | Antec ST1000 1000W 80+ Titanium | MSI Optix MAG342CQR | LG DualUp | Tuxedo OS (Plasma)

-------------------------------

Mobile devices

Kuroneko: Lenovo ThinkPad X1 Yoga 4th - Intel i7-10510U | 16GB RAM | 1TB SSD | Pop!_OS (COSMIC)

Norena: HP Pavillion 15 with Ryzen 5 & GTX 1650

Black Decker: Steam Deck 512GB model; swapped storage 2TB NVME

Sylver: Galaxy Z Flip 6

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11136935
Share on other sites

Link to post
Share on other sites

14 hours ago, YamiYukiSenpai said:

This may be a really stupid question, but you're using the right username and not your name, right?

Yes I was ;)

I used a some command to reset my password ( in advanced boot mood) and after that it worked again

sorry I forgot to post it..;

thank you all!

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11139011
Share on other sites

Link to post
Share on other sites

On 10-3-2018 at 6:42 PM, Jarno. said:

hi @42thgamer

 

Have you tried to login as root user?  this should be the same password as your normale user. When logged in to the CLI with the root account run cat /etc/passwd to figure out the name of your useraccount.

 

If it doesnt work then you probably forgot the password. To reset password boot a linux live cd and follow the following steps.

 

1. Run lsblk to find the hardrive with linux installed at it. (useually /dev/sda)

 

2. Make a directory to mount harddrive to  mkdir ~/hdd

 

3. mount root partition.  mount /dev/sda1 ~/hdd

 

4. Run chroot ~/hdd

 

5. Run passwd, and change root password.

 

If that doesnt work either then your probably locked out of your system because of that error and the only solution i can think of is to reinstall linux.

I got into advanced boot mode and then in recovery mode

I found a way to reset my password and after that it worked again

I do think it did something else than that after loging in in recovery mode that fixed it but don't relly know what

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11139021
Share on other sites

Link to post
Share on other sites

On 14-3-2018 at 10:56 PM, 42thgamer said:

I got into advanced boot mode and then in recovery mode

I found a way to reset my password and after that it worked again

I do think it did something else than that after loging in in recovery mode that fixed it but don't relly know what

Sounds like that you did reset your useraccount trough single user mode as root. Good that it worked though.

Link to comment
https://linustechtips.com/topic/902465-ubuntu-eror/#findComment-11146985
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×