sudo: unable to resolve host DESKTOP-PS8VD9E 在/etc/hosts文件中 127.0.0.1 对应主机名字给加一行就好了
(hostname) /etc/hosts > then next > else sudo sed -i "s/127.0.0.1 localhost/127.0.0.1 localhost $(hostname)/g" /etc/hosts > fi sudo: unable to resolve host place 0 (^.^) | 02:21:15 person@place:~ ] |_> sudo cat /etc/hosts 1>/dev/null 0 (^.^) | 02:21:24 person@...
https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#4-configure-ubuntu 2.然后运行sudo apt-get update命令,如果终端报错“sudo unable to resolve host”,这说明是hosts文件中的主机名不正确,可以按照这篇教程在hosts文件中加一行 127.0.0.1 这里填写终端显示的主机名: https:...
sudo: unable to resolve host DESKTOP [sudo]: password for <hostname>: Sorry, try again Your Windows build number Version 1607 (OS Build 14393.82) Steps / commands required to reproduce the error Strace of the failing command Required packages and commands to install Seeour contributing instructio...
[WSL2] Fix for Windows interop when using su / sudo [GH 4465]Build 18980For general Windows information on build 18980 visit the Windows blog.Fix reading symlinks that deny FILE_READ_DATA. This includes all the symlinks Windows creates for backwards compatibility such as "C:\Document and Sett...
sudo apt-get purge nvidia* sudo apt-get autoremove sudo apt-get autoclean sudo rm -rf /usr/local/cuda* 尝试重新装一个wls-ubuntu版本cuda wget <https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin> sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences...
[WSL2] Sync time with host time when system resumes from sleep state [GH 4245] [WSL2] Create NT symlinks on the Windows volumes when possible. [WSL2] Create distros in UTS, IPC, PID, and Mount namespaces. [WSL2] Fix localhost port relay when server binds to localhost directly [GH 43...
[WSL2] Fix for Windows interop when using su / sudo [GH 4465] Build 18980 For general Windows information on build 18980 visit the Windows blog. Fix reading symlinks that deny FILE_READ_DATA. This includes all the symlinks Windows creates for backwards compatibility such as "C:\Document and...
[WSL2] Fix for Windows interop when using su / sudo [GH 4465] Build 18980 For general Windows information on build 18980 visit the Windows blog. Fix reading symlinks that deny FILE_READ_DATA. This includes all the symlinks Windows creates for backwards compatibility such as "C:\Document and...
$ sudo apt-get update $ sudo apt-get dist-upgrade $ <CTRL-D> C:\> exit Now, launch theWSLtool to see if the error has been cleared. Fix #5: Repair the WSL App If nothing has worked so far, then it is possible that the error is caused by a corrupt installation of the WSL ap...