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

WSL无法使用ping命令 #23

Open
jrdeng opened this issue Mar 6, 2024 · 0 comments
Open

WSL无法使用ping命令 #23

jrdeng opened this issue Mar 6, 2024 · 0 comments
Labels

Comments

@jrdeng
Copy link
Owner

jrdeng commented Mar 6, 2024

问题:

$ ping github.com
ping: socktype: SOCK_RAW
ping: socket: Operation not permitted
ping: => missing cap_net_raw+p capability or setuid?

解决方法:

$ sudo setcap cap_net_raw+p /bin/ping

参考:microsoft/WSL#5109

@jrdeng jrdeng added the WSL label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant