On Saturday, 1 May 2021 at 01:07:33 UTC, Andrei Alexandrescu wrote:
>WSL2 running Ubuntu under Windows.
[..]
Something is definitely wrong with your computer. I installed a fresh instance of Ubuntu 20.04 on WSL2 and everything worked just fine. See for yourself:
https://asciinema.org/a/Poq5VWHHDO7005UjIeQulb3Ye
Here's information about my Windows installation:
> systeminfo
Host Name: DESKTOP-HPVQAA5
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
> wsl --list -v
NAME STATE VERSION
* Ubuntu-20.04 Running 2
Ubuntu Stopped 1
After installing the Ubuntu and before starting the asciinema to record the, I just had to install build-essential
and python3-pip
:
$ history
1 sudo apt update && sudo apt install build-essential python3-pip
2 sudo pip3 install asciinema
3 asciinema rec
4 history
I also tried on another clean Ubuntu and just installing build-essential
(without python3-pip
) works as well.