Home

WSL and Docker and Linux oh my!! (Part 1: WSL)

%3CLINGO-SUB%20id%3D%22lingo-sub-195446%22%20slang%3D%22en-US%22%3EWSL%20and%20Docker%20and%20Linux%20oh%20my!!%20(Part%201%3A%20WSL)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195446%22%20slang%3D%22en-US%22%3E%3CP%3EOkay%2C%20so%20I'm%20lost.%20I'm%20trying%20to%20configure%20a%2017666%20core%20build%20on%20a%20bare-metal%20install%20(old%20small%20box...HP%20MicroServer%20N40L%208GB).%20For%20a%20variety%20of%20reasons%2C%20I%20want%20it%20to%20be%20a%20docker%20host.%20Also%20would%20like%20it%20to%20run%20WSL%20(though%20this%20is%20lower%20priority).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1427903112%22%20id%3D%22toc-hId-1084590411%22%3EPART%201%3A%20WSL%3C%2FH3%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20first%2C%20I've%20got%20issues%20installing%20WSL.%20I've%20enabled%20it%20and%20followed%20the%20instructions%20for%20downloading%20a%20Ubuntu%201604%20distro.%20Try%20to%20install%20and%20get%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20Expand-Archive%20.%5CUbuntu.zip%20C%3A%5CWSLDistros%5CUbuntu%3CBR%20%2F%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20cd%20C%3A%5CWSLDistros%5CUbuntu%5C%3CBR%20%2F%3EPS%20C%3A%5CWSLDistros%5CUbuntu%26gt%3B%20.%5Cubuntu.exe%3CBR%20%2F%3EInstalling%2C%20this%20may%20take%20a%20few%20minutes...%3CBR%20%2F%3EInstallation%20successful!%3CBR%20%2F%3EPlease%20create%20a%20default%20UNIX%20user%20account.%20The%20username%20does%20not%20need%20to%20match%20your%20Windows%20username.%3CBR%20%2F%3EFor%20more%20information%20visit%3A%20https%3A%2F%2Faka.ms%2Fwslusers%3CBR%20%2F%3EEnter%20new%20UNIX%20username%3A%20paul%3CBR%20%2F%3EThe%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%3CBR%20%2F%3EThe%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%3CBR%20%2F%3EThe%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%3CBR%20%2F%3EThe%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%3C%2FPRE%3E%3CP%3EThe%20I%2FO%20operation%20message%20repeats%20forever.%20No%20associated%20event%20log%20entries.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20killing%20the%20install%20process%2C%20I%20can%20see%20that%20the%20distro%20is%20supposedly%20installed%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20wslconfig%20%2Fl%20%2Fall%3CBR%20%2F%3EWindows%20Subsystem%20for%20Linux%20Distributions%3A%3CBR%20%2F%3EUbuntu%20(Default)%3C%2FPRE%3E%3CP%3EBUT%2C%20further%20attempts%20at%20running%20wsl%20result%20in%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EC%3A%5CWSLDistros%5CUbuntu%26gt%3Bwsl%3CBR%20%2F%3EThe%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%3CBR%20%2F%3EPress%20any%20key%20to%20continue...%3C%2FPRE%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-195446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113916%22%20slang%3D%22en-US%22%3ERe%3A%20WSL%20and%20Docker%20and%20Linux%20oh%20my!!%20(Part%201%3A%20WSL)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F148495%22%20target%3D%22_blank%22%3E%40Paul%20York%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20get%20this%20same%20error%20when%20executing%20wsl%20or%20bash%20or%20ubuntu%20in%20a%20command%20tool%20or%20Powershell.%26nbsp%3B%20I%20found%20that%20it%20happens%20in%20directories%20whos%20path%20name%20exceeds%2040%20characters.%26nbsp%3B%20below%20I%20created%20a%20direcory%20with%2040%20characters%20on%20the%20C%20drive%20and%20it%20works%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165736i119A6D3A49C0355F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Echanging%20to%20a%20directory%20with%20one%20more%20character%20I%20get%26nbsp%3B%3CSPAN%3E%22The%20I%2FO%20operation%20has%20been%20aborted%20because%20of%20either%20a%20thread%20exit%20or%20an%20application%20request.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165737iA2A7BD8FD7A22D35%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECan%20this%20be%20corrected%3F%26nbsp%3B%20I'm%20usually%20down%20a%20few%20directories%20on%20the%20C%20drive%20before%20opening%20a%20Powershell%20or%20cmd%20for%20running%20bash%20scripts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Paul York
New Contributor

Okay, so I'm lost. I'm trying to configure a 17666 core build on a bare-metal install (old small box...HP MicroServer N40L 8GB). For a variety of reasons, I want it to be a docker host. Also would like it to run WSL (though this is lower priority).

 

PART 1: WSL

 

So first, I've got issues installing WSL. I've enabled it and followed the instructions for downloading a Ubuntu 1604 distro. Try to install and get:

 

PS C:\Users\Administrator> Expand-Archive .\Ubuntu.zip C:\WSLDistros\Ubuntu
PS C:\Users\Administrator> cd C:\WSLDistros\Ubuntu\
PS C:\WSLDistros\Ubuntu> .\ubuntu.exe
Installing, this may take a few minutes...
Installation successful!
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: paul
The I/O operation has been aborted because of either a thread exit or an application request.
The I/O operation has been aborted because of either a thread exit or an application request.
The I/O operation has been aborted because of either a thread exit or an application request.
The I/O operation has been aborted because of either a thread exit or an application request.

The I/O operation message repeats forever. No associated event log entries.

 

After killing the install process, I can see that the distro is supposedly installed:

 

PS C:\Users\Administrator> wslconfig /l /all
Windows Subsystem for Linux Distributions:
Ubuntu (Default)

BUT, further attempts at running wsl result in:

 

C:\WSLDistros\Ubuntu>wsl
The I/O operation has been aborted because of either a thread exit or an application request.
Press any key to continue...

Any ideas?

1 Reply
Highlighted

@Paul York 

I get this same error when executing wsl or bash or ubuntu in a command tool or Powershell.  I found that it happens in directories whos path name exceeds 40 characters.  below I created a direcory with 40 characters on the C drive and it works: 

clipboard_image_1.png

changing to a directory with one more character I get "The I/O operation has been aborted because of either a thread exit or an application request."

 

clipboard_image_2.png

Can this be corrected?  I'm usually down a few directories on the C drive before opening a Powershell or cmd for running bash scripts.

 

Related Conversations