Windows 10: I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04

Discus and support I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04 in Windows 10 Network and Sharing to solve the problem; I installed the Linux Ubuntu 18.04, but when I go in the windows folders i.e /mnt/c, I cannot modify, create or change permission any... Discussion in 'Windows 10 Network and Sharing' started by AminSobhani, Jun 6, 2021.

  1. I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04


    I installed the Linux Ubuntu 18.04, but when I go in the windows folders i.e /mnt/c, I cannot modify, create or change permission any files/folders-even when I use sudo. I have created wsl.config with the following contents, but that did not help either.[automount]enabled = trueroot = /mnt/options = "metadata"Basically, what I want is that to navigate the folders in /mnt/c directory using WSL and make, create or delete a file using linux commands. Any help with this respect is appreciated.

    :)
     
    AminSobhani, Jun 6, 2021
    #1

  2. Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?

    # Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2

    I am currently on the `Windows 10 Pro Insider Preview build 18922.rs_prerelease`, and am trying to install a Linux distribution to access via Windows Subsystem for Linux (2). I have tried this for both the Ubuntu and Debian distros and have encountered the
    same error in each.

    I have successfully downloaded both distros from the Microsoft store, but when I try to first "run" the Ubuntu or Debian "app" the respective console comes up and prints the following text:

    Code:
    Installing, this may take a few minutes...
    
    WslRegisterDistribution failed with error: 0x80370102
    
    Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
    
    Press any key to continue...
    Pressing a key at this point automatically exits the console.
    ---

    ## Additional information:

    - Using the `wsl -l` command shows no installed distros.

    - I do have Hypervisor installed and running `bcdedit` does show that `hypervisorlaunchtype` is set to `Auto` in the `Windows Boot Loader` section.

    - I did previously have Ubuntu installed and working under WSL 1 before switching to the Windows Insider Program Fast Ring and gaining access to WSL 2, but I was encountering another issue when trying to have it use WSL 2. After
    trying to use the command `wsl --set-version Ubuntu 2` I was met with a request to "Enable the Virtual Machine Platform". I had already run `Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform` prior, according to the official microsoft
    tutorial here https://docs.microsoft.com/en-us/windows/wsl/wsl2-install, but for good measure I did it again and got the same error, and Ubuntu was still on version 1 (I haven't explicitly mentioned it but I was restarting/shutting down when requested/suggested
    by windows and tutorials, so I don't believe me not restarting is a cause). In hopes to find a workaround, I ended up uninstalling Ubuntu and hoping I could reinstall it and have it obey the default defined by the `wsl --set-default-version 2` command (suffice
    it to say, this did not go as I'd hoped).

    - This might be an unrelated issue, but when I initially attempted reinstalling Ubuntu, the Microsoft store had a bit of a fit and could not complete the download- encountering an 'unknown error'. I did a restart, tried again, and
    got the same error, but then after telling it to 'try again' it succeeded. I had no such issues installing Debian from the store.

    ---

    ## Suggestions Welcome

    I've searched for a bit and can't find mention of this error code in particular anywhere else.

    In addition, is there anywhere I can look up/access these error codes in any sort of documentation? Ideally so I can make a better informed work-around attempt before bothering you all on here.

    All help is appreciated!
     
    SamuelLudwig, Jun 6, 2021
    #2
  3. Alternatives to using Windows Store to install Linux distro on WSL

    I just wanted to ask what alternatives there are to using the Windows 10 to install Linux distros on WSL.

    Also, it seems like Ubuntu 19 isn't available for the WSL. Is there a chance that we'll be able to install it when WSL2 is released? And I'd like to get the latest non-LTS version if possible (though it's alright if it's not possible too).
     
    OsmanZakir, Jun 6, 2021
    #3
  4. I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04

    Alternatives to using Windows Store to install Linux distro on WSL

    Thanks for the reply.

    I got the distro named "Ubuntu" from the Store. I already had another one but there were problems with it (I installed Node but trying to use it gave me an error saying that there's no such command and that I should install it using Apt), so I wanted to
    get a fresh distribution of Ubuntu on the WSL to see if that would solve the issue.
     
    OsmanZakir, Jun 6, 2021
    #4
Thema:

I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04

Loading...
  1. I am getting "Permission Denied" Error when using WSL with Linux Distro Ubuntu 18.04 - Similar Threads - getting Permission Denied

  2. Windows Subsystem for Linux WSL will not install any Linux Distro

    in Windows 10 Gaming
    Windows Subsystem for Linux WSL will not install any Linux Distro: I am using a Windows PC with the following specs:Edition: Windows 11 HomeVersion: 23H2OS build: 22631.2338Experience: Windows Feature Experience Pack 100.22674.1000.0 Processor: IntelR CoreTM i5-9400F CPU @ 2.90GHz 2.90 GHzInstalled RAM: 16.0 GBSystem type: 64-bit operating...
  3. Windows Subsystem for Linux WSL will not install any Linux Distro

    in Windows 10 Software and Apps
    Windows Subsystem for Linux WSL will not install any Linux Distro: I am using a Windows PC with the following specs:Edition: Windows 11 HomeVersion: 23H2OS build: 22631.2338Experience: Windows Feature Experience Pack 100.22674.1000.0 Processor: IntelR CoreTM i5-9400F CPU @ 2.90GHz 2.90 GHzInstalled RAM: 16.0 GBSystem type: 64-bit operating...
  4. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    in Windows 10 Installation and Upgrade
    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL: I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the...
  5. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    in Windows 10 Gaming
    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL: I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the...
  6. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    in Windows 10 Software and Apps
    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL: I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the...
  7. Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?

    in Windows 10 Software and Apps
    Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?: # Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2 I am currently on the `Windows 10 Pro Insider Preview build 18922.rs_prerelease`, and am trying to install a Linux distribution to access via Windows Subsystem for Linux (2). I...
  8. How to add users to WSL Distro (Windows Subsystem for Linux)

    in Windows 10 News
    How to add users to WSL Distro (Windows Subsystem for Linux): [ATTACH] [ATTACH]WSL or Windows Subsystem for Linux for Windows 10 support multiuser capabilities. And when it comes to user management for software, various aspects of software management can be discussed. Adding a user to the Windows Subsystem for Linux on Windows [...]...
  9. Alternatives to using Windows Store to install Linux distro on WSL

    in Windows 10 Software and Apps
    Alternatives to using Windows Store to install Linux distro on WSL: I just wanted to ask what alternatives there are to using the Windows 10 to install Linux distros on WSL. Also, it seems like Ubuntu 19 isn't available for the WSL. Is there a chance that we'll be able to install it when WSL2 is released? And I'd like to get the latest...
  10. Install Windows Subsystem for Linux (WSL) Distros in Windows 10

    in Windows 10 Tutorials
    Install Windows Subsystem for Linux (WSL) Distros in Windows 10: How to: Install Windows Subsystem for Linux (WSL) Distros in Windows 10 How to Install Windows Subsystem for Linux (WSL) Distros in Windows 10 The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools...

Users found this page by searching for:

  1. wsl2 access denied