重装Windows 10上的Linux子系统
发表于:2025-02-01 作者:千家信息网编辑
千家信息网最后更新 2025年02月01日,之前听说Windows 10上面可以装Linux了,一时兴起,就捣鼓了起来,长时间不用了,结果又忘记root密码。哎,老了,记不住事情了。所以就上网查了一下如何卸载Linux子系统,再写一篇笔记吧,免
千家信息网最后更新 2025年02月01日重装Windows 10上的Linux子系统
之前听说Windows 10上面可以装Linux了,一时兴起,就捣鼓了起来,长时间不用了,结果又忘记root密码。哎,老了,记不住事情了。所以就上网查了一下如何卸载Linux子系统,再写一篇笔记吧,免得以后又忘记了。
打开CMD,输入lxrun,就会提示这条命令的使用方法,见下:
C:\Users\admin>lxrunWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store:https://aka.ms/wslstoreUsage: /install - Installs the subsystem Optional arguments: /y - Do not prompt user to accept or create a subsystem user /uninstall - Uninstalls the subsystem Optional arguments: /full - Perform a full uninstall /y - Do not prompt user to confirm /setdefaultuser - Sets the default subsystem user. If the user account does not exist it will be created. Optional arguments: username - Supply the username /y - If username is supplied, do not prompt to create a password
输入:lxrun /uninstall 就可以开始卸载原来的Linux子系统了。
C:\Users\admin>lxrun /uninstallWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store:https://aka.ms/wslstoreThis will uninstall Ubuntu on Windows.This will remove the Ubuntu environment as well as any modifications and new applications with the exception of:C:\Users\admin\AppData\Local\lxss\homeC:\Users\admin\AppData\Local\lxss\rootType "y" to continue: yUninstalling...
再输入bash查看一下,验证Ubuntu已经被卸载。
C:\Users\admin>bashWindows Subsystem for Linux has no installed distributions.Distributions can be installed by visiting the Microsoft Store:https://aka.ms/wslstorePress any key to continue...
接下来安装Ubuntu Linux,输入命令:lxrun /install
C:\Users\admin>lxrun /installWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store:https://aka.ms/wslstoreThis will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here:https://aka.ms/uowtermsType "y" to continue: yDownloading from the Microsoft Store... 100%Extracting filesystem, this will take a few minutes...Error: 0x800706ba
擦,有Error,本机电脑没有权限?查了一下,我确实没有admin权限。但是我重试了一下,结果这次成功了。
不过又在网上查了一下,如果你重试了,还是不行,请参考下面的方法有可能解决你的安装失败问题:
在下面的启用或关闭Windows功能里启用适用于Linux的Windows子系统,然后再试一遍吧。
输入
子系统
命令
方法
权限
结果
面的
不行
成功
接下来
不用
事情
使用方法
功能
密码
电脑
笔记
还是
问题
本机
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
desc在数据库中的意思
新加坡服务器游戏充值
数据库关系图连接线含义
服务器通信基站
数据库单值函数
大学生与网络安全的关系
安徽惠普服务器虚拟化云空间
p2p平台软件开发
慈溪安卓软件开发
河北元素网络技术有限公司
网络安全工程师职业资格证
2021年大乐透往期数据库
高清下载软件开发
dede数据库连接名称
闵行区微型软件开发服务密度
超星的数据库怎么样
什么cpu支持服务器内存
饥荒服务器怎么看到对方
神经网络技术应用总结有哪些技术
福州软件开发黄诗棋
达梦数据库如何更改授权
想做卖云服务器
服务器无法创建apple id
手机版最强斗罗服务器魂兽分布图
服务器如何防疫
河南碳排放数据库
运城软件开发培训公司
数据库检索的最基本检索技术
服务器管理者所在地
互联网人士谈科技