Windows 10: How to prevent installation of certain Linux Distribution with WSL?

Discus and support How to prevent installation of certain Linux Distribution with WSL? in Windows 10 Software and Apps to solve the problem; Good dayI have a technical question concerning the use of WSL. Is there a way to prevent users to install some Linux distributions like Kali and to... Discussion in 'Windows 10 Software and Apps' started by favnoob, Feb 22, 2023.

  1. favnoob Win User

    How to prevent installation of certain Linux Distribution with WSL?


    Good dayI have a technical question concerning the use of WSL. Is there a way to prevent users to install some Linux distributions like Kali and to allow the others? Or doing the blocking action on the proxy layer should be enough i.e prevent access to the url specified in this json file for the kali distro: https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json.I apologize if my question is not clear enough, I am new to this.Thanks in advance for your time and reply.

    :)
     
    favnoob, Feb 22, 2023
    #1
  2. Joey Jen Win User

    Windows Subsystem for Linux has no installed distributions.

    Hi everyone,

    I bought an Asus laptop (A15) in 2022 June, and I am currently trying to run the windows subsystem for Linux on this laptop. (Current OS is windows 11)

    However, after I followed the instructions here How to install the Linux Windows Subsystem in Windows 11 - Microsoft Tech Community,

    although I have installed the distribution Ubuntu (run "wsl --install -d Ubuntu" in cmd will show "Ubuntu is already installed."), if I run "wsl.exe" or "wsl" in cmd, it still shows "Windows Subsystem for Linux has no installed distributions.".

    I can see the Ubuntu icon in the start menu; it can be clicked, just no response at all, even after restarting the computer.

    I also tried installing the other distribution Debian; the problem remains.

    I looked up the troubleshooting here Troubleshooting Windows Subsystem for Linux | Microsoft Learn, yet my issue remains.

    They mentioned "The WSL executable is only installed to the native system directory." on the troubleshooting page; however, I did not see any solutions for that (and I am not sure if that IS the problem I am facing now).

    Is there any suggestion?
     
    Joey Jen, Feb 22, 2023
    #2
  3. Blearn Win User
    Windows Subsystem for Linux - Installed Distributions Missing

    Device type: Laptop

    Model: Lenovo ThinkPad W530

    OS: Windows 10 Education

    Verison: 1803 Build 17134.48

    After the 1803 Spring Creators Update was applied on my machine, my Ubuntu 16.04 app no longer worked. It produced the error message:

    "Windows Subsystem for Linux has no installed distributions.

    Distributions can be installed by visiting the Microsoft Store:

    https://aka.ms/wslstore"

    I learned this was because my Ubuntu 16.04 install was no longer the default distribution. Using the wslconfig program, I was able to list all distributions and see my Ubuntu install. I set it back to the default and running 'wsl' would work as expected.

    However starting today, running the 'wsl' command produces the same error as before. Now there are *no* distributions when I list my installed distributions using 'wslconfig /l'. It seems like my Ubuntu install gone completely now.

    1) Are there any other ways of checking if the files within my Ubuntu install are still on my device?

    2) Why would a distribution silently be removed, is it an error or the result of some policy(eg. since Ubuntu 18.04 was released)?
     
    Blearn, Feb 22, 2023
    #3
  4. Brink Win User

    How to prevent installation of certain Linux Distribution with WSL?

    Windows Subsystem for Linux (WSL) 0.68.2 released

    Source: Release 0.68.2 . microsoft/WSL . GitHub

    See also:
     
    Brink, Feb 22, 2023
    #4
Thema:

How to prevent installation of certain Linux Distribution with WSL?

Loading...
  1. How to prevent installation of certain Linux Distribution with WSL? - Similar Threads - prevent installation certain

  2. WSL is not showing installed distributions

    in Windows 10 Gaming
    WSL is not showing installed distributions: I installed two distros Ubuntu and Kali on WSL and they both ran without issue after I installed the distros.So, I installed Ubuntu, used it after I installed it, it worked fine. Later installed Kali, it also worked.Later I had to restart the desktop, logged back in, and...
  3. WSL is not showing installed distributions

    in Windows 10 Software and Apps
    WSL is not showing installed distributions: I installed two distros Ubuntu and Kali on WSL and they both ran without issue after I installed the distros.So, I installed Ubuntu, used it after I installed it, it worked fine. Later installed Kali, it also worked.Later I had to restart the desktop, logged back in, and...
  4. WSL is not showing installed distributions

    in Windows 10 Software and Apps
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  5. WSL is not showing installed distributions

    in Microsoft Windows 10 Store
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  6. WSL is not showing installed distributions

    in Windows 10 Gaming
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  7. How to prevent installation of certain Linux Distribution with WSL?

    in Windows 10 Gaming
    How to prevent installation of certain Linux Distribution with WSL?: Good dayI have a technical question concerning the use of WSL. Is there a way to prevent users to install some Linux distributions like Kali and to allow the others? Or doing the blocking action on the proxy layer should be enough i.e prevent access to the url specified in...
  8. Windows Subsystem for Linux has no installed distributions.

    in Windows 10 Gaming
    Windows Subsystem for Linux has no installed distributions.: Hi everyone,I bought an Asus laptop A15 in 2022 June, and I am currently trying to run the windows subsystem for Linux on this laptop. Current OS is windows 11However, after I followed the instructions here How to install the Linux Windows Subsystem in Windows 11 - Microsoft...
  9. Windows Subsystem for Linux has no installed distributions.

    in Windows 10 Software and Apps
    Windows Subsystem for Linux has no installed distributions.: Hi everyone,I bought an Asus laptop A15 in 2022 June, and I am currently trying to run the windows subsystem for Linux on this laptop. Current OS is windows 11However, after I followed the instructions here How to install the Linux Windows Subsystem in Windows 11 - Microsoft...
  10. Windows Subsystem for Linux has no installed distributions

    in Windows 10 News
    Windows Subsystem for Linux has no installed distributions: [ATTACH] [ATTACH]Windows 10 supports the installation of a number of distros that come under Windows Subsystem for Linux. But even when these distros are installed users have reported encountering Windows Subsystem for Linux has no installed distributions error. Some of the...