r/Ubuntu 6h ago

Can't sudo apt update

Each time i try to input my password, it says `Sorry, try again`. I even changed may password and restart my laptop like 3 times but still won't accept it.

I even went into settings and enabled an option that said that not all my settings were enabled and typed in the same password which did work there but won't work on the terminal.

Unlocking works and unlocks the leptop as well. I even typed in `groups` to see if sudo was there and it is.

All i wanted was to sudo update to switch to another ubuntu desktop but now i have this problem.

Anybody knows what i can do to fix this?

1 Upvotes

6 comments sorted by

2

u/requiredsenator 6h ago

password works everywhere except when sudo asks for it? that's bizarre

double check you're actually typing the right thing in terminal, it won't show any dots or asterisks as you type so it's easy to fat finger it without realizing

1

u/_Lerowi 6h ago

I did type my password on the terminal when the text is visible and there is no problem.

1

u/nhaines 5h ago

Actually, by default in Ubuntu 26.04 LTS, sudo does echo your keystrokes. (And I hate it, but I certainly remember 32 years ago when I was trying to figure out why my keyboard (or modem; unclear) suddenly stopped working.

1

u/Admirable-Song-7353 6h ago

Does it write something like: you're not in the sudoers file, this incident has been reported?

1

u/_Lerowi 4h ago

I haven't reported it as i don't know where or how to. This is the first time as well this has happened.