Ubuntu 18.04 WSL Please help fix this sudo apt-get update [sudo] password for guido: Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101...
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old#修改源sudo vim /etc/apt/souces.list#粘贴如下# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ ...
this official guide for setting up WSL 2, and installed the latest Ubuntu (20.04) from the Microsoft Store. With this launching correctly, the first thing I tried was a `sudo apt update` so that I could start installing software, but this failed saying "Network is unreachable": I browsed...
$grep-nvr"^#"/etc/apt/ |grepimpishgrep: /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg: binary file matchesgrep: /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg: binary file matchesgrep: /etc/apt/keyrings/docker.gpg: binary file matches$grep-nvr"^#"/etc/apt/ |grep...
my-wsl2-username ALL=(ALL) NOPASSWD: /usr/sbin/ip 其中my-wsl2-username换成你的username,/usr/sbin/ip对应1中的路径。 生效配置: source ~/.bashrc 输入ifconfig检查mtu: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1350 最最后可以sudo apt-get update看看是否可以正常更新来确定。
I'm running Ubuntu on WSL and wish to update my apt-get via sudo apt-get update but came across this error. Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-amd64/Packages Connection failed [IP: 91.189.88.149 80] Running a lsb_release -a shows No LSB mo...
1、在 WSL2 中的 Ubuntu 系统中,执行命令:sudo apt install php7.4-cli,报错:E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu2.5_amd64.deb 404 Not Found [IP: 91.189.88.152 80]。如图1 ...
Installed WSL 2 (Debian, but previously tried Ubuntu with same issues). Installation went smoothly, but when I tried the following: wsl2-prompt> sudo apt-get update I get the following output to the terminal: Err:1…
一、解决方法 sudo rm /etc/resolv.conf sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' sudo bash -c 'echo "[network]" > /etc/wsl.conf' sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' 二、界面截图 ...
sudo: unable to initialize policy plugin 网上搜了各种办法都解决不了,最后问了伟大的ChatGPT得到了正确答案: 这个错误表示 `/etc/sudoers` 文件的拥有者不正确,应该是 root 用户 (uid 0) 而不是普通用户 (uid 1000)。 修复此问题的步骤如下: