Why Linux does not see Wi-Fi adapters in WSL?

Why Linux does not see Wi-Fi adapters in WSL?

Linux in WSL does not have direct access to the computer hardware. For this reason, it is not possible to use Wi-Fi adapters, even USB Wi-Fi adapters, in WSL.

  1. Can Linux in WSL use graphics cards to perform computation

    At the moment Linux in WSL cannot use GPUs, but they promise to add this feature later.

  2. Error in WSL (Kali Linux, Ubuntu) “sleep: cannot read realtime clock: Invalid argument”

    An error can occur when trying to install the program: sudo apt install package

    Or when updating packages and the system: sudo apt update && sudo apt full-upgrade -y

  3. These commands will output something like the following:

    E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

  4. sudo apt --fix-broken install will lead to other errors:

    sleep: cannot read realtime clock: Invalid argument
    dpkg: error processing package libc6:amd64 (–configure):
    installed libc6:amd64 package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    And so on ad infinitum.

  5. To fix, run the following commands:

sudo -i

sudo mv /bin/sleep /bin/sleep~;

touch /bin/sleep;

chmod +x /bin/sleep
Then try again,

sudo apt --fix-broken install