记录Ubuntu无法update的问题
sky@Dagwbl:/etc/apt$ sudo cat /etc/resolv.conf This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf generateResolvConf = false nameserver 172.24.224.1 sky@Dagwbl:/etc/apt$ sudo vim /etc/resolv.conf sky@Dagwbl:/etc/apt$ sudo apt update Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease [270 kB] Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease [109 kB] Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease [99.8 kB] 通过添加nameserver即可