/r/bashonubuntuonwindows
This is the Windows Subsystem for Linux
(WSL, WSL2, WSLg) Subreddit where you can get help installing, running or using the Linux on Windows features in Windows 10.
Visit the wiki
Docker On WSL
GUIs/Graphical Interface
Important Links & Documentation
Learn about Windows Console and Bash/WSL
Microsoft GitHub - Bash on Windows
Community powered list of programs that work and don't work
Friends
/r/Linux
/r/Windows+Windows10
/r/Ubuntu
/r/bash
General rules
https://www.reddit.com/r/bashonubuntuonwindows/about/rules/
(Thanks /r/Windows10 for some rules)
/r/bashonubuntuonwindows
I am trying to install WSL on my windows 11 pc. I used wsl --install, it downloaded but during installation it gives this error and then says catastrophic failure. Any help how to figure it out.
ERROR MESSAGE:
Windows ® Installer. V 5.0.26100.1150
msiexec /Option <Required Parameter> [Optional Parameter]
Install Options </package | /i> <Product.msi> Installs or configures a product /a <Product.msi> Administrative install - Installs a product on the network /j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>] Advertises a product - m to all users, u to current user </uninstall | /x> <Product.msi | ProductCode> Uninstalls the product Display Options /quiet Quiet mode, no user interaction /passive Unattended mode - progress bar only /q[n|b|r|f] Sets user interface level n - No UI b - Basic UI r - Reduced UI f - Full UI (default) /help Help information Restart Options /norestart Do not restart after the installation is complete /promptrestart Prompts the user for restart if necessary /forcerestart Always restart the computer after installation Logging Options /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|] <LogFile> i - Status messages w - Nonfatal warnings e - All error messages a - Start up of actions r - Action-specific records u - User requests c - Initial UI parameters m - Out-of-memory or fatal exit information o - Out-of-disk-space messages p - Terminal properties v - Verbose output x - Extra debugging information + - Append to existing log file ! - Flush each line to the log * - Log all information, except for v and x options /log <LogFile> Equivalent of /l <LogFile> Update Options /update <Update1.msp>[;Update2.msp] Applies update(s) /uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode> Remove update(s) for a product Repair Options /f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode> Repairs a product p - only if file is missing o - if file is missing or an older version is installed (default) e - if file is missing or an equal or older version is installed d - if file is missing or a different version is installed c - if file is missing or checksum does not match the calculated value a - forces all files to be reinstalled u - all required user-specific registry entries (default) m - all required computer-specific registry entries (default) s - all existing shortcuts (default) v - runs from source and recaches local package Setting Public Properties [PROPERTY=PropertyValue]
Consult the Windows ® Installer SDK for additional documentation on the command line syntax.
Copyright © Microsoft Corporation. All rights reserved. Portions of this software are based in part on the work of the Independent JPEG Group.
Wondering if someone more knowledgeable than myself might be able to help!
I've been using WSL2 on my SP11 and I'm really enjoying it, it lets me keep my work and business browsing separate; I generally just use Chromium and log into M365; however I'm seeing an issue in that sometimes a GUI window will disappear; usually if the machine has been locked; however the window is still running in the background; sometimes I'm able to get it back but it seems very random based on whether Chromium detects its there.
Is there any other way for me to be able to see what's in the background and resume that GUI window?
Hello! I need to use WSL2 and undervolt my laptop. Intel XTU and Throttlestop need virtualization turned off, which breaks WSL. I do not have access to BIOS undervolting. This has been an issue for years and no one gave a solution until now. Has anyone tried WSL1 with such setup to confirm that it actually works, given that WSL1 is just a translation layer for system calls?
Hello everyone, I've been using synthshell and powerline for over 3 years and have just noticed now that my separators ">" are of a different colour than the path before them, i thought it was normal until i saw some colleagues computers.
what could be causing it? how can i fix it?
I'm on Windows 11 using WSL 20.04
what the command line looks like:
https://imgur.com/a/IKOwhUH
Every time i switch to other app like a browser it closes automatically no matter if the process is simple see image here i don't think it's ram because it used to work normally some days ago
I've got this weird issue where I have to open a new wsl terminal window if I rebooted a remote server (or was being timeouted) because I can't connect back.
I use Windows Terminal with powershell that executes the wsl command.
So sometimes ssh auth just isn't working, and the server refuses my password (the pw is copied to clipboard).
But I found out that if I create a new tab and try the same thing, ssh works.
I don't have the faintest idea what could cause this.
Have you seen something like this before?
VPN wax ON...
dyno@455:~$ sudo apt update
[sudo] password for dyno:
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
Temporary failure resolving 'repo.nordvpn.com'
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3744 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [572 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3504 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [490 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1254 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [301 kB]
Fetched 10.1 MB in 38s (265 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://repo.nordvpn.com//deb/nordvpn/debian/dists/stable/InRelease Temporary failure resolving 'repo.nordvpn.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
dyno@455:~$ sudo apt update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
Temporary failure resolving 'repo.nordvpn.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://repo.nordvpn.com//deb/nordvpn/debian/dists/stable/InRelease Temporary failure resolving 'repo.nordvpn.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
dyno@455:~$
VPN wax OFF...
dyno@455:~$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3366 kB]
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [493 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3357 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [470 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1031 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [218 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [24.8 kB]
Fetched 9089 kB in 2s (4845 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
dyno@455:~$
Hello!
I am an new academic faculty Earth scientist (far from a computer expert) but for my research I work with large data sets. As a recent hire, I need to use some startup money to buy a computer at my new institution for research.
I have always worked with macs, but my understanding is the silicon chips don't do well with fortran codes, which I use often. I also have pretty humble startup funds, so a mac is not really in my budget even if it worked fine.
So, I am looking into dell machines - running either ubuntu or windows. I was only considering ubuntu, but was recently informed that WSL could be the perfect solution!
I currently use MATLAB as my base software, but have a TON of system calls within my MATLAB scripts. How much will I have to change my system calls (if at all)? How would this work?
(A quick google tells me this should be possible, but might require changing the text in system calls? Some people seem to have more issues with this, but I'm confused by this).
I would really appreciate an explanation for what would be entailed in this change and how I could go about the transition to minimize extra work/hassle. Please explain to me like I am a novice - I am getting confused reading what I can find online!
Thank you!!
I use Pengwin distribution it’s installed to my c drive but it’s taking up a lot of space and I’d rather have it on another drive that isn’t my system drive.
I’ve trimmed the size of it Already but with experimenting with AI it’s filling up fast with models and packages.
Anyone ever do this and how painful was it ?
Sorry for the lengthy title lol, but I've been a (semi) long time windows hater, mostly due to windows 11 and windows 10, but I've not tried win11 since the very beginning. I'm very used to linux by this point as most of my time on computers in general have been on linux, and I'd like to still be able to use them on the laptop in some fashion. Is WSL the right option or would a VM be better?
Anyone was able to figure out on how to establish a nested SSH connection with PuTTY on windows?
The current attempt (example) involving piping the cmd to a windows remote host via plink binary
( C:\putty.exe -ssh -t -pw <wsl-pw> <wsl-user>@<wsl-ip> -P <wsl-port> ) | C:\plink.exe -ssh <win-remote-user>@<win-remote-host>
But this, although the pseudo terminal allocation (-t
), results in a messed up conhost terminal session with characters wildly displayed:
and PuTTY timing out.
Thanks for any idea.
Ok, I tried the answers in stack overflow, and I'm still stuck.
When running Ubuntu or RH in WLS2 in a Windows Terminal 1.21.3231.0 window, unicode characters get wildly corrupted cutting and pasting.
For example
• ‘single’ and “double” quotes
• Curly apostrophes: “We’ve been here”
• Latin-1 apostrophe and accents: '´`
• ‚deutsche‘ „Anführungszeichen“
• †, ‡, ‰, •, 3–4, —, −5/+5, ™, …
• ASCII safety test: 1lI|, 0OD, 8B
╭─────────╮
• the euro symbol: │ 14.95 € │
╰─────────╯
Becomes
ΓÇó ΓÇÿsingleΓÇÖ and ΓÇ£doubleΓÇ¥ quotes
ΓÇó Curly apostrophes: ΓÇ£WeΓÇÖve been hereΓÇ¥
ΓÇó Latin-1 apostrophe and accents: '┬┤`
ΓÇó ΓÇÜdeutscheΓÇÿ ΓÇ₧Anf├╝hrungszeichenΓÇ£
• †, ‡, ‰, •, 3–4, —, −5/+5, ™, …
ΓÇó ASCII safety test: 1lI|, 0OD, 8B
Γò¡ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓò«
ΓÇó the euro symbol: Γöé 14.95 Γé¼ Γöé
Γò░ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓò»
If tmux is not running, cut and paste work ok. This happens whether or not tmux -u or -T UTF-8 is used.
What am I missing?
Running Ubuntu in Windows Terminal.
I have my Vim clipboard set up so I used unnamedplus
set clipboard^=unnamedplus
This works great when I want to yank some text from vim to the Windows system clipboard so I can paste the text in a browser I have open or some other Windows application. Now, when I copy a block of text from the Windows side (say in my browser) it shows up in the "+ register in my Vim instance as I would expect. So in Vim I can just hit p
to paste that text. The problem is that the pasted text has the extra ^M line endings you get from Windows. Anybody know of an efficient way to get rid of these? Yes I know I could just run :%s/\r//g
or even use ctrl+shift+v
which is the Windows Terminal default key combination (defined in defaults.json) for paste. However I just really like copy-paste efficiency of Vim and just having to hit a single key. I usually just use ctrl+shift+v
but I'm hoping there's some clever solution where I could still just use p
. Or at the very least maybe make a <Leader>p
mapping (although I currently use that key mapping for something).
u/benhelioz I found this post from 2019, and it seems you have some insight. I believe you said that Microsoft was very focused on this issue in 2019. But has things actually improved since then?
Yesterday I tried importing one particular NodeJS library in WSL2. If node_packages is placed entirely in the WSL2 filesystem, it takes less than one second, but if its placed on the host, it takes 65 (sixty five) seconds!! Thats obviously not feasible, and I need to find some kind of solution.
Do I really need to start using WSL1? I get the impression that it is no longer being developed and is slowly becoming obsolete. Is that true? I haven't used WSL1 before, and I suspect that if I switch to WSL1 the read performance will improve drastically, but then there will be other issues / annoyances.
The fastest way to work in a WSL-enabled environment is to have your projects in the WSL directory, which I know. Now, sometimes I have to do editing in files which are in Windows, not us. Here, we have 2 ways to do the editing :
Open Bash and then move to /mnt/c/whatever_path and then edit files.
Open Powershell and from there do 'wsl editor'' to edit files directly in Windows
Which one is faster in comparison?
This because I cannot access any distribution, after installing one, the terminal says there's not one installed. When I try using the one I installed, in this case Ubuntu, an error message is shown. The error message being code 0x80072749. I wonder how and why I bricked it because the problem started when I used the shutdown command before changing WSL settings.
Good day everyone , so lets start off , im using Android studio in WSL2 , gpu passthrough works , but it never lists Android Studio as a running process , the user interface on WLSg AS is janky as hell , probably 30 fps or less . Is there a way i can force this application to use the GPU or is this just how WSL runs?
RTX 3050ti Laptop
Ryzen 5 5600H + IGPU
24GB DDR4
nvidia-smi does confirm that Passthrough is enabled.
This is a weird one that I stumbled on today. I'm running Ubuntu in WSL1 on Windows 11. When I open up Ubuntu from the start menu to get the WSL terminal, I can navigate to a folder with a command-line Windows program and run it fine with ./program.exe. Awesome!
Next I set up an SSH server on WSL and logged in remotely. To my surprise, running ./program.exe yields no output one way or the other and it doesn't run. What might cause this?
FIXXED —- Figured it out. It you need to specify the latest version and install from web for the ARM version on HP it seems. At least on mine. Exchanged for an open box excellent yoga slim 7x with x elite because it was only 100 more do to bestbuys clearance sale. Had no issue running the normal wsl —install with that. So weird lol I still recommend the HP though. Felt amazing in the hands and did everything it needed to. Just had to pounce on the other deal.
ORIGINAL — So I recently got this on sale at Best Buy for $500. It is awesome... except for the fact that every time I install WSL/Ubuntu it hits me with a "Catastrophic Failure" when Ubuntu launches. I've removing and adding everything on "turn windows features on and off" and nothing is fixing it. Could it be the Hypervision?
Hi all
This is gonna be a bit of a dumb question but please bare with me.
My current setup is Windows-only. It’s been that way since forever, and all the dev software and toolchains that I need and use are installed alongside “regular software” (games, browser, etc). It’s probably not the best setup, but I am used to it.
I have recently build a new PC and decided to set everything up from scratch instead of copying the data (still using some cloud backups though)
Before I start installing any dev software I wanted to see if there are any better ways to separate the concerns of programming and regular computer usage like gaming.
I was thinking of the following:
Any input is much appreciated
Hi guys. I've recently been working on some project for handling my dotfiles/config-files as well as automating software installation/setup on both Windows and Linux/WSL (Ubuntu). It is a work in progress, but I have come to the point where I now can with just a few clicks set up a new Windows computer/VM and WSL (or headless Linux machine) with my software and config files to my liking after a fresh install. I thought I would share it here for anyone who is interested.
The repos hold much of my software preferences and config (I try to use much of the same across both Windows and Linux for simplicity), but much of the setup/script is made to be generic and scalable so that it should be easy to change out with your own software and config files. Have a look if you are interested and feel free to raise issues or come with suggestions if you have any (btw. I suck at naming things so don't read to much into what stuff is called :)).
When I open file explorer I could see Ubuntu directory (WSL2) and I could see the sub-directories.. I could copy, cut, move, etc. my files but after installing a second SSD I do not see this directory any more. But I can run Ubuntu through command prompt and my directories remain in root virtual drive. My first SSD carries my operation system (Win 11). My second SSD is just for extra capacity. Need help restoring my file explorer to show Ubuntu directory in Windows without touching other installations. Appreciate your help.
Like the title says, what are the apps you install on WSLg and that give you the most value or are the most fun to use?
For me, I usually install Cool Retro Term, Tilix, Stellarium, and Clementine on my Ubuntu WSL install. I'm looking for ideas on other apps that might be fun or useful to install.
Hello,
I created this issue on WSL2 GitHub but I think I will get any help faster here.
So TL;DR is:
I try to access my WSL2 services on different devices in my LAN with networkingMode=mirrored. After running command from another issue it doesn't fix any networking issue for. It either doesn't work at all or works for random period of time. I tried also disabling Hyper-V firewall. It sometimes works but mostly doesn't. Do you have any ideas why?
Hello everyone,
I am having trouble installing Windows Subsystem for Linux and Ubuntu. When I get to the point where I download them they become stuck at 0.0%. It appears I have wsl 2 but when I type "wsl --update" or "wsl -d Ubuntu*any version*" into the terminal (both Command Prompt and Power Shell) they do not download.
I am on Windows 10 with a Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz 3.40 GHz processor. 32 gigbyte ram with a 64 bit operating system.
I use a VPN but I tried installing it with and without it to the same results.
saw a post ab using wsl2 for an ubuntu gui shell. ive been following the guide linked but got stuck when told to use the file editor. after pasting the code i dont know what to do to acc get the editor to save/close.
probably just missing sm very simple but im not used to doing things like this or using the terminal that much.
also sorry if i phrased sm weirdly lmfao
https://gist.github.com/tdcosta100/e28636c216515ca88d1f2e7a2e188912#gistcomment-5263942