Postagens

Mostrando postagens de julho, 2025

How to solve "wsl is not in the sudoers file" on Ubuntu 24.04

Sometimes after change your Ubuntu WSL version, you will see this message: wsl is not in the sudoers file So, how to solve this: First step - On PowerShell terminal, type this command: wsl --list --verbose Then you will go to identify the correct name of your disto. See: PS C:\Users\uaigeek> wsl --list --verbose   NAME            STATE           VERSION} * Ubuntu          Stopped         2   Ubuntu-20.04    Stopped         2   Ubuntu-24.04    Stopped         2 On my case, the distro is Ubuntu 24.04, then the name is "Ubuntu-24.04" Second step - Keep on the PowerShell terminal and use the next command to open your WSL distro as root. The command is: wsl -d MY_DISTRO --user root Or in my case wsl -d "Ubuntu-24.04" --user root Third step - Observe that your terminal became a bash (Linux terminal...