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

Getting UDEV STUB: Using libudev-stub 0.9.0 #3

Closed
Kblipz opened this issue Dec 30, 2018 · 8 comments
Closed

Getting UDEV STUB: Using libudev-stub 0.9.0 #3

Kblipz opened this issue Dec 30, 2018 · 8 comments

Comments

@Kblipz
Copy link

Kblipz commented Dec 30, 2018

After I followed these steps: microsoft/WSL#648 (comment)

I am getting this error UDEV STUB: Using libudev-stub 0.9.0 whenever I execute any command.

For example, if I execute a invalid command like:

~$ vdrfvrf
UDEV STUB: Using libudev-stub 0.9.0
vdrfvrf: command not found

I am getting this UDEV STUB: Using libudev-stub 0.9.0 with almost every command even with apt.

@therealkenc
Copy link
Owner

therealkenc commented Dec 30, 2018

If you are getting that message out of every command (even ones that are not found) it means you have put something on your system that is loading libudev every command. Which would be real unusual, bordering on broken. The logging was intended just for the purposes of knowing that you had libdev-stub (and not the real thing) when starting something exceptional like Chrome.

In any case I pushed a deb that makes the logging opt-in. Note I haven't even run the new (scare quote) "release" once, but it was a five min change so why not. That will quash the noise, but if something on your system is looking for a functioning libudev every time you type ls, and that something is expecting a working udev, that something is probably going to be disappointed. Bonne chance.

@azaeng04
Copy link

azaeng04 commented Dec 8, 2019

@therealkenc how can we undo the install of the libudev package? It also gives me that error.

@therealkenc
Copy link
Owner

therealkenc commented Dec 8, 2019

Same as every .deb. Or just "sudo apt install --reinstall udev libudev1". In fact, per commentary in the README, it's hard to not undo the install of libudev-stub; just about any apt install involving udev blows it away.

[ed: Noting that, whether you blow away libudev-stub or not, if you are getting that message out of every command you run, your setup is pretty hooped, entirely independent of libudev-stub. Reinstalling udev is just masking the problem with your rig. Granted being comfortably oblivious is better than an annoying debug message I suppose.]

@azaeng04
Copy link

azaeng04 commented Dec 9, 2019

@therealkenc I think you are forgetting that any apt-get or apt just does not work. It is okay I just deleted the distribution with the error on it and started a new one.

@therealkenc
Copy link
Owner

You did not mention that apt does not work, only that you got (quoth) "that error" from the OP when a command was not found (a command likevdrfvrf).

In your case what couldn't be found was apt, and possibly much else. Probably due to a $PATH problem.

Starting over is always a good big hammer fix when available.

@ericblade
Copy link

ericblade commented Feb 5, 2020

E: Invalid message from method http: UDEV STUB: Using libudev-stub 0.9.0
   100 Capabilities
   Send-Config: true
   Version: 1.2
   Pipeline: true

I've been using WSL fine for months, this came up today when I tried to apt-get update then install something...

edit: using your sudo apt install --reinstall udev libudev1 reinstalled the standard udev from cache, and now i'm back to normal.

@dannywamuya
Copy link

I'm new to programming and I have been using WSL for about a month now. I'm trying to install nodejs using nvm install <version>.
Whenever I do that or even ran apt commands I get a UDEV STUB: Using libudev-stub 0.9.0 and it suggests sudo apt install <deb name>
I'm not sure what's wrong with my setup but would appreciate help with this.

I also ran sudo apt install --reinstall udev libudev1 and this is what it returned

E: Invalid message from method http: UDEV STUB: Using libudev-stub 0.9.0 100 Capabilities Send-Config: true Version: 1.2 Pipeline: true

libudev

@therealkenc
Copy link
Owner

Restore the stock libudev per #4.

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

5 participants