Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No /proc/sys/kernel/hostname on Bash on Ubuntu on Windows #1218

Closed
nolanlawson opened this issue Jul 29, 2016 · 5 comments
Closed

No /proc/sys/kernel/hostname on Bash on Ubuntu on Windows #1218

nolanlawson opened this issue Jul 29, 2016 · 5 comments

Comments

@nolanlawson
Copy link

On Bash on Ubuntu on Windows (i.e. Windows Subsystem for Linux), I'm unable to use Hub because it tries to access /proc/sys/kernel/hostname which sadly doesn't exist (there's a /bin/hostname, but dunno if that helps).

Doing an operation like e.g. hub issues and attempting to log in results in:

open /proc/sys/kernel/hostname: no such file or directory

Steps to repro:

  1. Install WSL on Windows 10 RS1 (aka Anniversary Update)
  2. Do
sudo add-apt-repository ppa:cpick/hub
sudo apt-get update
sudo apt-get install hub
  1. Run hub clone or hub issues or some other command that brings up the login screen
  2. Log in
  3. See the error

Related: microsoft/WSL#562

@mislav
Copy link
Owner

mislav commented Aug 7, 2016

Thanks for reporting! Which hub version is installed from cpick/hub?

@nolanlawson
Copy link
Author

git version 1.9.1
hub version 2.2.1

@Bakudankun
Copy link

same here with:

git version 1.9.1
hub version 2.2.4

@mislav
Copy link
Owner

mislav commented Aug 15, 2016

I guess we could make the hostname lookup non-fatal if it fails? The hostname is only used to name your Personal Access token like hub for [email protected]. Would the OS name be an acceptable fallback? E.g. "hub for Windows", "hub for OS X", etc.

@nolanlawson
Copy link
Author

This has been fixed in BashOnWindows itself. Closing the issue. microsoft/WSL#562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants