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

pacman更新失败 #185

Closed
chenyidao110 opened this issue Jan 21, 2021 · 8 comments
Closed

pacman更新失败 #185

chenyidao110 opened this issue Jan 21, 2021 · 8 comments

Comments

@chenyidao110
Copy link

1、环境:
windows 10 2004 WSL2
最新的Arch.zip,解压以管理员身份安装
2、问题:
安装之后运行pacman -Syy
failed retrieving file 'core.db' from mirrors.kernel.org,后发现/etc/resolve.conf文件中被写入自动生成的nameserver,是无法ping通的,修改/etc/wsl.conf禁止自动生成并更新nameserver为 192.168.1.1,还是会报上述错误,换成国内源也是报类似的问题

@escape0707
Copy link

escape0707 commented Jan 21, 2021

Please use English to report issues on GitHub.

@escape0707
Copy link

As for your issue, I think it might relates to #161.

@escape0707
Copy link

escape0707 commented Jan 21, 2021

What's in your /etc/resolve.conf and what does executing ip route give you?

For me, my /etc/resolve.conf contains:

nameserver 172.29.240.1

... which is the consistent with what ip route gives:

$ ip route
default via 172.29.240.1 dev eth0
...

And I can ping my LAN gateway 192.168.1.1 and the WSL2 VM's gateway 172.29.240.1 in a admin shell successfully (non-privileged shell will get ping: socket: Operation not permitted).

@chenyidao110
Copy link
Author

chenyidao110 commented Jan 21, 2021

ip route
Ip is 172.18.144.1,and can't reach while run ping command

@escape0707
Copy link

escape0707 commented Jan 21, 2021

Interesting, see microsoft/WSL#4171 and microsoft/WSL#5634 (comment). E.g. try ping microsoft.com.

@chenyidao110
Copy link
Author

Interesting, see microsoft/WSL#4171. E.g. try ping microsoft.com.

Thank you .
I will try later, and reply result

@escape0707
Copy link

Is the problem fixed? Please post how's it going for future reference. If it's not, it's okay to keep it open so that we could have an eye on it.

@chenyidao110
Copy link
Author

Is the problem fixed? Please post how's it going for future reference. If it's not, it's okay to keep it open so that we could have an eye on it.
Not fixed, delete it ,use https://github.com/sileshn/ManjaroWSL

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

2 participants