Score:0

user created during ubuntu 22.04 install in virtualbox can't use sudo

bb flag

New to Ubuntu and "sudo" command.I've successfully installed 22.04.2 on Virtualbox. During the install it asked for a user and password which I entered. After logging into the Ubuntu desktop with user created, using sudo to update system asks for password, then fails with 'user is not in sudoers' file. What do I do from here? I can't update the system or install anything. Thanks.

tom_ep avatar
bb flag
I followed the answer here {link}(https://askubuntu.com/a/1462530/1715833). Couldn't get to a repair or rescue shell.
mpboden avatar
do flag
What was the exact command you used to attempt to update the system? Show this and the error message. Please edit your question with this and any new info.
karel avatar
sa flag
Does this answer your question? [How do I add myself back as a sudo user?](https://askubuntu.com/questions/70442/how-do-i-add-myself-back-as-a-sudo-user)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.