Share via

Wsl Installation Command timed out in Windows Powershell

Anonymous
2023-07-30T16:21:13+00:00

I am trying to install the WSL on my pc.

I first opened windows powershell as an administrator and then entered the following command: wsl --install.

After 3-4 minutes, it showed "the operation timed out". How to resolve this issue please help!

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-07-31T09:49:49+00:00

    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.
    
    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-08-01T01:24:25+00:00

    Check this article: Install WSL | Microsoft Learn

    If you have any other questions, it's best to post them in Microsoft Q&A, like I suggested previously.

    0 comments No comments
  3. Anonymous
    2023-07-31T02:44:53+00:00

    Hello, Darshil Mukesh Desai

    Welcome to Microsoft Community.

    I’m sorry to hear that you’re having trouble installing WSL. There could be a few reasons why the operation timed out. Ensure that the Windows Subsystem for Linux Optional Component is installed and that virtualization is enabled inside of your computer’s BIOS. You can also restart the WSL service, deselect the “automatically manage paging file size for all drives” option in the advanced tab of the System Properties and try again.

    Detailed steps can be found here: Troubleshooting Windows Subsystem for Linux | Microsoft Learn

    If the problem persists, it may be beyond the scope of issues that Microsoft Community can address. Microsoft Q&A, on the other hand, aims to support more advanced issues like yours and is the best resource for further assistance. You can share specific scenarios and ideas to help resolve the problem at Windows 10 - Microsoft Q&A. However, I will keep the thread open in Microsoft Community, as one of our volunteers may have additional insights that could be helpful to you. 

    Please feel free to let me know if you have any other concerns.

    Best regards

    Yuhao Li

    Microsoft Community Technical Support

    0 comments No comments