【问题标题】:Uninstall linux from Windows Powershell从 Windows Powershell 卸载 linux
【发布时间】:2021-11-27 23:30:04
【问题描述】:

所以我想知道如何从 powershell 卸载 linux,因为每次我尝试更新时,我都会通过 powershell 安装子系统 linux 更新,这让我很紧张。有人可以帮忙删除吗?

我在 Powershell(管理员)上使用的命令

Invoke-WebRequest -Uri https://wsldownload.azureedge.net/Ubuntu_1604.2019.523.0_x64.appx -OutFile Ubuntu.appx -UseBasicParsing

现在我想卸载它,也许使用了不同的命令,但我确实使用了类似的东西

【问题讨论】:

  • 请记住,本网站上的问题应该是关于 “特定的编码、算法或语言问题。” 像您这样的非编程 WSL 问题通常更适合 @ 987654321@。也就是说,在超级用户上重新发布之前,请查看this question on reinstalling WSL,我的回答涵盖了卸载过程。我会仔细检查以确保它是最新的。

标签: powershell windows-subsystem-for-linux


【解决方案1】:

如果您安装了带有 WSL 的 linux 发行版,它使您能够管理您的发行版。

运行 wsl --list 以查找您的发行版名称。 之后运行 wsl --unregister <DistributionName> 来卸载你的发行版。

此链接对此命令有说明:https://docs.microsoft.com/en-us/windows/wsl/wsl-config#unregister-and-reinstall-a-distribution

【讨论】:

  • 这说明了如何取消注册发行版,而不是如何卸载 WSL。
猜你喜欢
  • 2017-01-09
  • 2016-04-17
  • 2020-06-23
  • 1970-01-01
  • 2017-01-08
  • 2020-08-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多