WSL icon indicating copy to clipboard operation
WSL copied to clipboard

possible to install Ubuntu 14.04?

Open mo18 opened this issue 9 years ago • 33 comments

I'm running windows version 1703 (15063.413). I went to re-install my bash environment using lxrun /uninstall /full and lxrun /install. When I did that it installed 16.04. Is there a way to get 14.04 installed with this version?

mo18 avatar Jul 12 '17 16:07 mo18

@mo18 - no there is not. Can you describe why you want 14.04 versus 16.04 to help us understand your scenario?

benhillis avatar Jul 12 '17 17:07 benhillis

Ben is right; your scenario matters. For some valid scenarios that matter, you might want chroot, which works alright on WSL these days.

Begs a good question though. Xenial won't end-of-life until 2021, but there's no way everyone is going to tolerate staying on 16.04 that long. Meanwhile others won't want to upgrade, for policy reasons. So in some foreseeable future WSL will have to be prepared for more than one version in the store. You can probably get away with "install 16.04 and then upgrade" for a while, but not all the way through 2021.

therealkenc avatar Jul 12 '17 17:07 therealkenc

@therealkenc - that's one of the great things about WSL distros being in the store. Each of our distro vendors are now in control of what images they want to be available to the customers. You could imagine an Ubuntu store app that on first launch asks you which version you want to install (Trusty, Xenial, etc).

benhillis avatar Jul 12 '17 17:07 benhillis

That is one of the great things about WSL distros. My first thought when I saw Rich's blog post in May was... okay, so when is Windows 10 user space going to work like that? 😜

therealkenc avatar Jul 12 '17 17:07 therealkenc

@benhillis - our production stack runs on 14.04, so we want to be able to keep all versions within our dev stack the same. I suppose it's not a requirement, but it sure helps when things aren't working properly

mo18 avatar Jul 12 '17 17:07 mo18

@mo18 - https://github.com/RoliSoft/WSL-Distribution-Switcher is an another way to install other distributions. They say it for ubuntu, "ubuntu – 12.04.5, 12.04, precise-20160707, precise | 14.04.5, 14.04, trusty-20160802, trusty | 16.04, xenial-20160809, xenial, latest | 16.10, yakkety-20160806.1, yakkety, devel".

sunjoong avatar Jul 12 '17 19:07 sunjoong

To be honest, you should be able to do it if you know what you're doing. Just get a hold of the 14.04 docker image, untar it inside of /root as root, and replace the files in the rootfs directly from Windows. This should still work with the Store-based Ubuntu. This is essentially what the WSL distribution switcher does. Rolisoft said he's waiting to see what happens with the store-based distros before adapting the project to work with the new distro format.

fpqc avatar Jul 12 '17 19:07 fpqc

@dustinkirkland might be interested in this conversation.

sunilmut avatar Jul 13 '17 01:07 sunilmut

Thanks you all for your responses. I'm definitely curious to see if @dusrinkirkland has a response.

To expand on my need for this, our developers currently use Mac's and build out their dev environments using homebrew and pip to get all of the dependencies installed. There are a bunch of challenges with versions of software to getting the environment operational. We're investigating docker and other solutions in order to standardize our setup. When I heard about WSL and I started messing around with it, I decided to switch from Mac to Windows. I'm in more of a devops role and having Windows (I do a decent amount with powershell) with an Ubuntu shell integrated on my desktop simplifies my workflow considerably. I started pitching the idea to some team members recently and today I decided to setup the dev environment that the rest of the development team use. This is when I ran into my issue. I had installed a bunch of unnecessary software and wanted a clean slate to start with so I uninstalled and reinstalled the WSL environment.

I'm not sure that 16.04 is a show stopper for me as I'm sure we'll be moving to that in the near future. It's also probably a step in the right direction when compared to using homebrew.

Thanks again for the feedback...

mo18 avatar Jul 13 '17 01:07 mo18

Well, the overall experience with Ubuntu 16.04 is going to be way better. More applications, newer tools, updated compilers and libraries, more active bug fixing/updates than 14.04. Thus, we took the decision to move WSL to the "latest" LTS, after a few months of burn in and scale testing.

For this use case (must have 14.04 with a specific package set), I'd recommend using a VM or Docker.

dustinkirkland avatar Jul 23 '17 18:07 dustinkirkland

Reason why I need trusty: https://github.com/bitcoin/bitcoin/issues/10269

TL;DR: I can't cross compile for Windows on Xenial due to mingw32 bug.

NicolasDorier avatar Jul 24 '17 07:07 NicolasDorier

@NicolasDorier very simple to fix that problem, and trusty won't fix it: before compiling, edit your PATH to remove the appended windows system paths. In the latest Insider build, there is a way to disable interop completely. If you're having trouble building something like this, you should file a bug report rather than use a workaround that likely won't work.

At least that's what I got from that thread.

fpqc avatar Jul 24 '17 08:07 fpqc

@fpqc this does not work in my case. The bug is caused by Xenial's mingw32. I need Trusty to compile correctly. I am using Docker just because of that.

NicolasDorier avatar Jul 24 '17 08:07 NicolasDorier

@NicolasDorier Does this bug happen on Ubuntu natively as well? If not, could you please submit a bug report here for the version of mingw32 in Xenial?

fpqc avatar Jul 24 '17 08:07 fpqc

yes it does happen natively, I am just responding to why offering support for Ubuntu 14.04 is important.

As @benhillis was asking

@mo18 - no there is not. Can you describe why you want 14.04 versus 16.04 to help us understand your scenario?

This is a WSL issue in so far that using Ubuntu 14.04 should be supported. As a user I agree that new distros are better. As a developer, I just want to use whatever is needed to get my code to build. WSL targets developers, so I think this is a legitimate WSL issue.

I can use Docker, but this is a shame, the whole beauty of WSL is compatibility without VMs.

NicolasDorier avatar Jul 24 '17 08:07 NicolasDorier

@NicolasDorier If it's an Ubuntu bug, have you submitted the bug to the package maintainer or to Canonical or even upstream?

fpqc avatar Jul 24 '17 09:07 fpqc

@NicolasDorier: Maybe you linked to the wrong issue? It is about a problem caused by wsl spending windows path to the bash path variable, not about a problem with the mingw installation on Ubuntu 16.04

MikeGitb avatar Jul 24 '17 09:07 MikeGitb

The issue is about getting making it possible to install Ubuntu 14.04 on WSL, and I am telling why it is useful. The reason why build is failing is not important. What is important is that I planned to use WSL for a perfectly valid use case, and it can fit my need only if Ubuntu 14.04 is supported.

As developer, I have such kind of build environment bug daily, and WSL goal is; I think, to help windows developer to bridge with the linux world. Telling me "it is mingw problem" is missing the point, my point is that it does not matter, WSL should just support ubuntu 14.04 as some build environments just can't update to the latest distros.

The only workaround for me is to use docker instead. I was wishing that WSL help me to replace docker for cross building non windows projects.

NicolasDorier avatar Jul 24 '17 14:07 NicolasDorier

@nicolasdorier - We do appreciate the feedback. I took a look at the thread you linked and replied, I will look through the bitcon project and see if I an find the script that is at fault.

benhillis avatar Jul 24 '17 15:07 benhillis

@NicolasDorier - I was able to get around this issue by modifying the funcs.mk file to wrap "$PATH" with quotes "$PATH"

https://github.com/bitcoin/bitcoin/issues/10269#issuecomment-297511480

benhillis avatar Jul 24 '17 16:07 benhillis