Docker for Windows installed WSL2 without apt

  docker, windows-subsystem-for-linux

I’m trying to work on a project, and the setup steps begin like this:

  1. Clone the repo
  2. Set up Docker
  3. Run make

Being a Windows user, I installed Docker for Windows, and it installed WSL2 to get all the Linux stuff set up. But when I went to run make from the WSL shell, it couldn’t find it. So I tried to get make from apt-get… and that wasn’t there either!

It would appear that my WSL2 install is broken. Unfortunately, Googling for it hasn’t turned up much of use. So how do I obtain apt for WSL so that I can build my toolchain?

Source: Docker Questions

LEAVE A COMMENT