I am using 25.10. Using my current password I can log into Mate. When I try to do a update I put my password in to Authenticate it says my password is wrong. How is that possible when I can log into Mate? I have tried to reset it in Grub and I cannot access it for some reason. Any ideas to fix the problem, Thanks
I tried to update in the command line and I got this
al@al-ThinkPad-T16-Gen-2:~$ sudo apt update
sudo-rs: I'm sorry al. I'm afraid I can't do that
al@al-ThinkPad-T16-Gen-2:~$
In my UM 24.04 login manager uses EN-US keyboard layout by default despite the fact that I've configured different EN layout using Mate DE tools. After OS & Mate DE have been loaded, EN-US layout is automagically switched to the configured one. That's how it is possible to enter different text by pressing the same keys in login manager and DE.
P.S. Auto-switching of numlock state could explain the matter as well.
Have you typed your password into a text file to confirm visually that the intended entry is in fact being sent from the keyboard?
Also, verify that the file
- /etc/sudoers
has not been modified and contains at least the following near the bottom:
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
I went into the Control Center and to and typed my password in the type test and that came up ok. Tried the numlock and it didn’t make a difference
al@al-ThinkPad-T16-Gen-2:~$ /etc/sudoers
bash: /etc/sudoers: Permission denied
al@al-ThinkPad-T16-Gen-2:~$ sudo /etc/sudoers
sudo-rs: I'm sorry al. I'm afraid I can't do that
al@al-ThinkPad-T16-Gen-2:~$
I wonder if I’d be better off going back to LTS?
If you boot from a Live ISO into "try ubuntu" mode,
You can access the drive and make the necessary changes.
Specifically, you can remove the password from the /etc/shadow file, by deleting everything between the first two ":", save the file, then reboot normal and add a password.
That didn’t work. It says I didn’t have permission.
What if Rust-based sudo misbehaves? Some time ago I've read that Ubuntu allows to roll back defaults from Rust-based sudo & other -*rs utilities to GNU utilities.
I got under a time crunch so I reinstalled and upgraded to 25.10. So far no problems. Thanks for the help. I really appreciate it
That is because you didn't perform the tasks as root.
When troubleshooting or repairing from Live ISO, the first thing is to open a terminal, then type in
sudo bash
in order to have super-user privileges to do anything and everything.