DEV Community

Cover image for Windows 10 WSL Ubuntu 18.04 proxy configuration for apt.

Windows 10 WSL Ubuntu 18.04 proxy configuration for apt.

David J Eddy on November 15, 2018

Using Windows Subsystem for Linux (WSL) can be a great tool for dev's, op's, and admin's alike. The downside often these roles are after larger org...
Collapse
 
pojntfx profile image
Felicitas Pojtinger •

Use GNU/Linux

Collapse
 
david_j_eddy profile image
David J Eddy • • Edited

Sadly in the business world 95%+ of computing machines will run Windows; VMs are a valid option but with bare bones hardware it would be un-usable. WSL is a nice middle ground.

Collapse
 
pojntfx profile image
Felicitas Pojtinger •

It's proprietary, non-free and just ... objectivly speaking bad (unlike macOS, for example). Also, I would argue that the PC is rapidly becoming a niche product (at least for my generation) and since all smartphones run either FreeBSD/Darwin (iOS) or Linux (Android) with a PWA compatible browser, the primary platform to develop for definitely isn't Windows, but the web, and as for servers it's GNU/Linux for sure since a long time now, and LDK (Linux - Docker - Kubernetes) is the future for sure. In addition to that, doing anything else than primitive bash scripting isn't possible in WSL (which doesn't have anything to do with Linux, but GNU - thus the correct name should be GNU/NT) and thus the system is obsolete. Especially since using GNU/Linux/FreeBSD/Darwin is so easy now there really is no reason to use that legacy proprietary blob that literally preinstalls Candy Crush in 2018.

Thread Thread
 
david_j_eddy profile image
David J Eddy •

I do not disagree with you. :)

Thread Thread
 
pojntfx profile image
Felicitas Pojtinger • • Edited

Oh, I'm sorry if I was sounding to harsh, I forgot to put a </rant> there ;)

Thread Thread
 
vipseixas profile image
Vinicius Seixas •

I agree with your rant but WSL is not as useless as you say. I work at a place where I have no option but use Win so I use WSL for multiple purposes and it works perfectly well for most of it. For instance, I'm just installing an ActiveMQ server in WSL. And I also use VS Code Remote with WSL wich is awesome.

Collapse
 
emprint profile image
Emprint •

Thanks!

Collapse
 
mcauto profile image
Mincheol Kim •

Now, WSL2 is awesome!

Collapse
 
yanpads profile image
Ryan Paderna •

Hi. The etc/apt/apt.conf file is no longer there in the current version of WSL. Only apt.conf.d folder. No apt.conf file inside the apt.conf.d folder.

Collapse
 
rob0tscience profile image
Josh Carpenter •

You can just create the file and add the line. Working for me now in 20.04

Collapse
 
dailymack profile image
Mr Daily •

good