包含标签 WSL 的文章

WSL里的Ubuntu/Debian因为时间不同步报错

报错: E: Release file for http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 2h 1min 40s). Updates for this repository will not be applied. E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 5h 19min 27s). Updates for this repository will not be applied. 同步时间解决: hwclock -s Comments: (on github issue)……

阅读全文

WSL无法使用ping命令

问题: $ 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 参考:https://github.com/microsoft……

阅读全文

WSL里docker启动失败

报错: failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1 (exit status 4)) 解决: sudo update-alternatives --set iptables /usr/sbin/iptables-legacy sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy 参……

阅读全文

Windows 11家庭版安装WSL

管理员权限打开PowerShell,执行: wsl --install 提示安装成功。但是启动WSL的时候报错: WslRegisterDistribution failed with error: 0x80370114 似乎是家庭版在“启用或关闭W……

阅读全文