{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/932","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/932/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/932/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/932","id":171989905,"number":932,"title":"'apt-get install ruby' installs an outdated ruby version 1.9.3p484","user":{"login":"Tset-Noitamotua","id":5635462,"avatar_url":"https://avatars.githubusercontent.com/u/5635462?v=3","gravatar_id":"","url":"https://api.github.com/users/Tset-Noitamotua","html_url":"https://github.com/Tset-Noitamotua","followers_url":"https://api.github.com/users/Tset-Noitamotua/followers","following_url":"https://api.github.com/users/Tset-Noitamotua/following{/other_user}","gists_url":"https://api.github.com/users/Tset-Noitamotua/gists{/gist_id}","starred_url":"https://api.github.com/users/Tset-Noitamotua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tset-Noitamotua/subscriptions","organizations_url":"https://api.github.com/users/Tset-Noitamotua/orgs","repos_url":"https://api.github.com/users/Tset-Noitamotua/repos","events_url":"https://api.github.com/users/Tset-Noitamotua/events{/privacy}","received_events_url":"https://api.github.com/users/Tset-Noitamotua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/bydesign","name":"bydesign","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-18T20:12:17Z","updated_at":"2016-08-19T16:05:20Z","closed_at":"2016-08-19T07:13:52Z","body":"Summary\r\n----------\r\nActually I just wanted to install Vagrant from source. Thus I git cloned [Vagrant repo](https://github.com/mitchellh/vagrant) and then all I needed to do was `rake install` to get the job done. Then the trouble story begun.\r\n\r\nExpected results\r\n-----------------\r\nVagrant is installed successfully\r\n\r\nActual results\r\n--------------\r\nA lot of trouble and trial and error ... see steps below\r\n\r\n\r\nSteps / commands required to reproduce the error\r\n--------------------------------------------------------\r\n\r\n- needed to install ruby to be albe to `rake install`\r\n- I used `apt-get install ruby` and got the version 1.9.3p484\r\n- tried `rake install` again --> now I was asked to do `bundle install` first\r\n- I did `apt-get install bundler`\r\n-  tried `rake install` again --> now it complained about wrong bundler and suggested to install bundler with `gem install bundler`\r\n- did as suggested but 'bundle' could not be found unless I used `/usr/local/bin/bundle install`\r\n- ok. so I used `/usr/local/bin/bundle install` ... just to run into the next issues\r\n    ```\r\nroot@DESKTOP-7CVPJRC:/mnt/c/Users/username/OneDrive/_GITHUB/vagrant# /usr/local/bin/bundle install\r\nDon't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this\r\napplication for all non-root users on this machine.\r\nFetching https://github.com/mitchellh/vagrant-spec.git\r\nFetching gem metadata from https://rubygems.org/\r\nFetching version metadata from https://rubygems.org/\r\nFetching dependency metadata from https://rubygems.org/\r\nResolving dependencies...\r\nRubygems 1.8.23 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.\r\nUsing rake 11.2.2\r\nUsing addressable 2.4.0\r\nUsing builder 3.2.2\r\nUsing bundler 1.12.5\r\nUsing ffi 1.9.14\r\nUsing safe_yaml 1.0.4\r\nUsing diff-lcs 1.2.5\r\nUsing unf_ext 0.0.7.2\r\nUsing erubis 2.7.0\r\nUsing fake_ftp 0.1.1\r\nUsing hashdiff 0.3.0\r\nUsing hashicorp-checkpoint 0.1.4\r\nUsing httpclient 2.8.2.2\r\nUsing i18n 0.7.0\r\nUsing rb-fsevent 0.9.7\r\nInstalling ruby_dep 1.3.1\r\n\r\nGem::InstallError: ruby_dep requires Ruby version >= 2.0.0, ~> 2.0.\r\nUsing little-plugger 1.1.4\r\nUsing log4r 1.1.10\r\nUsing multi_json 1.12.1\r\nInstalling mime-types-data 3.2016.0521\r\n\r\nGem::InstallError: mime-types-data requires Ruby version >= 2.0.\r\nUsing mini_portile2 2.0.0\r\nInstalling net-ssh 3.0.2\r\n\r\nGem::InstallError: net-ssh requires Ruby version >= 2.0.\r\nUsing netrc 0.11.0\r\nUsing nori 2.6.0\r\nUsing rspec-core 2.14.8\r\nUsing rspec-mocks 2.14.6\r\nUsing rubyntlm 0.6.0\r\nUsing rubyzip 1.2.0\r\nUsing thor 0.18.1.20140116\r\nUsing wdm 0.1.1\r\nUsing gyoku 1.3.1\r\nUsing childprocess 0.5.9\r\nUsing gssapi 1.2.0\r\nUsing rb-inotify 0.9.7\r\nUsing rb-kqueue 0.2.4\r\nUsing crack 0.4.3\r\nUsing rspec-expectations 2.14.5\r\nUsing unf 0.1.4\r\nAn error occurred while installing ruby_dep (1.3.1), and Bundler cannot continue.\r\nMake sure that `gem install ruby_dep -v '1.3.1'` succeeds before bundling.\r\n    ```\r\n- obviously some dependencies require Ruby version >= 2.0.0\r\n- but It is not possible to update Ruby with `apt-get upgrade ruby` because 1.9.3 is the best what you get\r\n- ok. found out that greater Ruby version can be installed with something which is called `RVM`\r\n-so settled out to find out how to get RVM\r\n- got rvm somehow finally\r\n- now was able to install Ruby version greater 2.0.0 with `rvm install 2.2.3`\r\n- finally `bundle install` worked and added a bunch of stuff\r\n- FINALLY `rake install` worked and installed Vagrant 1.8.6dev\r\n\r\nBut what for? All that effort was in vain! Because Vagrant just won´t work! Why? Because it will complain about VirtualBox (or another virtualization provider) missing - although you probably have one installed and running. At least you think you have ... your are sure you have. But you are misstaken here! Because what this thing wants from you is the Linux version of Virtualbox (or whatever). And you will think \"You want it? You´ll get it!\" and you will do `apt-get install virtualbox` ... But at the end of the story you will discover that Virtualbox and the like won´t work here. And when you dig deeper you´ll discover why this is so:\r\n\r\n> We are explicitly not supporting X/GUI apps at this time. We are not aiming to integrate/replace/subsume Linux desktops nor desktop apps. ([Rich Turner](https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/#comment-23725))\r\n\r\nShort answer: It is not intended to work that way!\r\n\r\n\r\n\r\nMy Windows build number\r\n-----------------------------\r\nWindows 10 Education Version 1607, OS Build 14393.51\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/241060102","html_url":"https://github.com/Microsoft/BashOnWindows/issues/932#issuecomment-241060102","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/932","id":241060102,"user":{"login":"russalex","id":17343422,"avatar_url":"https://avatars.githubusercontent.com/u/17343422?v=3","gravatar_id":"","url":"https://api.github.com/users/russalex","html_url":"https://github.com/russalex","followers_url":"https://api.github.com/users/russalex/followers","following_url":"https://api.github.com/users/russalex/following{/other_user}","gists_url":"https://api.github.com/users/russalex/gists{/gist_id}","starred_url":"https://api.github.com/users/russalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russalex/subscriptions","organizations_url":"https://api.github.com/users/russalex/orgs","repos_url":"https://api.github.com/users/russalex/repos","events_url":"https://api.github.com/users/russalex/events{/privacy}","received_events_url":"https://api.github.com/users/russalex/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T16:05:20Z","updated_at":"2016-08-19T16:05:20Z","body":"If it helps, there are a couple of different ways to add Ruby 2.1.4 to your repository list / install.  This [stack overflow](http://stackoverflow.com/questions/26595620/how-to-install-ruby-2-1-4-on-ubuntu-14-04) article is a good place to start.\r\n\r\nAs for Vagrant, the dependency on VirtualBox is a difficult one.  While Rich pointed out that we are not officially supporting GUI apps many people have made them work.  The issues with VirtualBox run a little deeper.  A big issue is that it relies on a Linux Kernel module which is not something we support.\r\n\r\nAs a larger point, you can find what we prioritized in the Anniversary Update on our [MSDN FAQ](https://msdn.microsoft.com/en-us/commandline/wsl/faq#what-is-your-high-priority-feature-set-for-the-windows-10-anniversary-edition).   We are also keeping a close eye on what people write on the [User Voice](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash) to determine where to focus our efforts next.  Hope this helps at least a little."}}
{"actor":{"display_login":"russalex"}}