Windows 10: When I run WSL commant on PowerShell, then returns this problem, how I can resolve this

Discus and support When I run WSL commant on PowerShell, then returns this problem, how I can resolve this in Windows 10 Network and Sharing to solve the problem; Here is screenshot, when I run wsl... Discussion in 'Windows 10 Network and Sharing' started by Danyil Liubchak, Nov 5, 2024.

  1. When I run WSL commant on PowerShell, then returns this problem, how I can resolve this


    Here is screenshot, when I run wsl

    :)
     
    Danyil Liubchak, Nov 5, 2024
    #1
  2. tjcreek55 Win User

    PowerShell does not launch bash.exe

    All,

    I
    am new and trying to learn.

    My
    issue: When I enter bash.exe in a PowerShell cmd window, my PC does not launch the Ubuntu command. I think Windows Subsystem for Linux (WSL) is not in my $ENVWhen I run WSL commant on PowerShell, then returns this problem, how I can resolve this :path.

    Troubleshooting
    I have done:

    1. Reading
      on the Internet, I can test my $ENVWhen I run WSL commant on PowerShell, then returns this problem, how I can resolve this :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe calc

    C:\Windows\System32\calc.exe

    It returned the follow:

    PS C:\WINDOWS\system32>
    calc

    (And the calculator displayed
    on my PC)

    1. Reading
      on the Internet, I can also test my $ENVWhen I run WSL commant on PowerShell, then returns this problem, how I can resolve this :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe wsl

    It returned the follow:

    INFO: Could not find
    files for the given pattern(s).

    Here
    is the output of $ENVWhen I run WSL commant on PowerShell, then returns this problem, how I can resolve this :path

    PS
    C:\WINDOWS\system32> $ENVWhen I run WSL commant on PowerShell, then returns this problem, how I can resolve this :path

    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
    Files (x86)\Calibre2\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Users\user-lenovo595\AppData\Local\Microsoft\WindowsApps

    Question:

    What
    would you suggest as my next step to fix the issue?

    Thank
    you,
     
    tjcreek55, Nov 5, 2024
    #2
  3. WSL starts to run everytime I open File Explorer on Windows 11

    I recently found that WSL runs everytime when I open File Explorer in Windows 11, and the navigation pane in the File Explorer takes long time to load.

    Is there a way to prevent WSL from running when I open File Explorer?

    I tried to remove the Linux icon in the navigation pane in the File Explorer using a .reg file, the icon was removed but nothing else has changed. As my laptop doesn't have lots of memory, when WSL is running, it takes out a big chunk of my memory which slows my laptop down. I know a can set my WSL to a lower momery limit using the config file, but I use WSL from time to time so I don't want to limit its performance.

    Also If you check the video below, you can see that when I open my File Explorer there is nothing in the navigation pane, at the same time I enter 'wsl --list --running' in powershell, and the contents in my navigation pane shows when the powershell terminal returns the output of that command. So I think my navigation pane is waiting for wsl to boot up to show its contents.

    I am using Windows 11 22621.1194, WSL 2, Ubuntu 20.04.

    I have WSL2 installed on my other laptop, which is running Windows 10, it too has this problem.

    Here is a video to demostrate the problem.

     
    Bailin Chen, Nov 5, 2024
    #3
  4. When I run WSL commant on PowerShell, then returns this problem, how I can resolve this

    Wsl Installation Command timed out in Windows Powershell

    When I enabled the Windows Subsystem for Linux feature and tried to run the "wsl --install" command in powershell, I received the following message. How do I move forward to install the latest distribution?

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

    Usage: wsl.exe [Argument] [Options...] [CommandLine]



    Arguments for running Linux binaries:



    If no command line is provided, wsl.exe launches the default shell.



    --exec, -e <CommandLine>

    Execute the specified command without using the default Linux shell.



    --

    Pass the remaining command line as is.



    Options:

    --cd <Directory>

    Sets the specified directory as the current working directory.

    If ~ is used the Linux user's home path will be used. If the path begins

    with a / character, it will be interpreted as an absolute Linux path.

    Otherwise, the value must be an absolute Windows path.



    --distribution, -d <Distro>

    Run the specified distribution.



    --user, -u <UserName>

    Run as the specified user.



    Arguments for managing Windows Subsystem for Linux:



    --help

    Display usage information.



    --install [Options]

    Install additional Windows Subsystem for Linux distributions.

    For a list of valid distributions, use 'wsl --list --online'.



    Options:

    --distribution, -d [Argument]

    Downloads and installs a distribution by name.



    Arguments:

    A valid distribution name (not case sensitive).



    Examples:

    wsl --install -d Ubuntu

    wsl --install --distribution Debian



    --set-default-version <Version>

    Changes the default install version for new distributions.



    --shutdown

    Immediately terminates all running distributions and the WSL 2

    lightweight utility virtual machine.



    --status

    Show the status of Windows Subsystem for Linux.



    --update [Options]

    If no options are specified, the WSL 2 kernel will be updated

    to the latest version.



    Options:

    --rollback

    Revert to the previous version of the WSL 2 kernel.



    --inbox

    Only update the inbox WSL 2 kernel. Do not install WSL from the Microsoft Store.



    --web-download

    Download the most recent version of WSL from the internet instead of the Microsoft Store.



    Arguments for managing distributions in Windows Subsystem for Linux:



    --export <Distro> <FileName>

    Exports the distribution to a tar file.

    The filename can be - for standard output.



    --import <Distro> <InstallLocation> <FileName> [Options]

    Imports the specified tar file as a new distribution.

    The filename can be - for standard input.



    Options:

    --version <Version>

    Specifies the version to use for the new distribution.



    --list, -l [Options]

    Lists distributions.



    Options:

    --all

    List all distributions, including distributions that are

    currently being installed or uninstalled.



    --running

    List only distributions that are currently running.



    --quiet, -q

    Only show distribution names.



    --verbose, -v

    Show detailed information about all distributions.



    --online, -o

    Displays a list of available distributions for install with 'wsl --install'.



    --set-default, -s <Distro>

    Sets the distribution as the default.



    --set-version <Distro> <Version>

    Changes the version of the specified distribution.



    --terminate, -t <Distro>

    Terminates the specified distribution.



    --unregister <Distro>

    Unregisters the distribution and deletes the root filesystem.
     
    Darshil Mukesh Desai, Nov 5, 2024
    #4
Thema:

When I run WSL commant on PowerShell, then returns this problem, how I can resolve this

Loading...
  1. When I run WSL commant on PowerShell, then returns this problem, how I can resolve this - Similar Threads - run WSL commant

  2. When I run WSL commant on PowerShell, then returns this problem, how I can resolve this

    in Windows 10 Gaming
    When I run WSL commant on PowerShell, then returns this problem, how I can resolve this: Here is screenshot, when I run wsl https://answers.microsoft.com/en-us/windows/forum/all/when-i-run-wsl-commant-on-powershell-then-returns/d58b1eb2-d635-4511-b8e2-de60e53776af
  3. When I run WSL commant on PowerShell, then returns this problem, how I can resolve this

    in Windows 10 Software and Apps
    When I run WSL commant on PowerShell, then returns this problem, how I can resolve this: Here is screenshot, when I run wsl https://answers.microsoft.com/en-us/windows/forum/all/when-i-run-wsl-commant-on-powershell-then-returns/d58b1eb2-d635-4511-b8e2-de60e53776af
  4. How Can I solve this powershell problem

    in Windows 10 BSOD Crashes and Debugging
    How Can I solve this powershell problem: Powesell not working properly, Greatly say that it's not executing any command https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-solve-this-powershell-problem/804a6f73-2d13-4ef4-b31c-be5f0f52fc00
  5. How Can I solve this powershell problem

    in Windows 10 Gaming
    How Can I solve this powershell problem: Powesell not working properly https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-solve-this-powershell-problem/804a6f73-2d13-4ef4-b31c-be5f0f52fc00
  6. How Can I solve this powershell problem

    in Windows 10 Software and Apps
    How Can I solve this powershell problem: Powesell not working properly https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-solve-this-powershell-problem/804a6f73-2d13-4ef4-b31c-be5f0f52fc00
  7. How can I resolve this?

    in Windows 10 Gaming
    How can I resolve this?: Good afternoon! Appeared to me Aptio Setup Utility, but I don't see any tab saying advanced. How can I resolve this? https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-resolve-this/76a625ca-aa70-4fcd-9203-2c8d2b62b97a
  8. How can I resolve this?

    in Windows 10 Software and Apps
    How can I resolve this?: Good afternoon! Appeared to me Aptio Setup Utility, but I don't see any tab saying advanced. How can I resolve this? https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-resolve-this/76a625ca-aa70-4fcd-9203-2c8d2b62b97a
  9. How can I resolve this?

    in Windows 10 BSOD Crashes and Debugging
    How can I resolve this?: Good afternoon! Appeared to me Aptio Setup Utility, but I don't see any tab saying advanced. How can I resolve this? https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-resolve-this/76a625ca-aa70-4fcd-9203-2c8d2b62b97a
  10. How can I resolve this probleme?

    in Windows 10 BSOD Crashes and Debugging
    How can I resolve this probleme?: [ATTACH] One day, this window appear, and when I close it, that will reappear later. https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-resolve-this-probleme/37e6760b-24d6-4ba6-955c-9048a1f01980