出售星辰之书的书商
2024-04-12 16:16 Moderator
Reply Like 1 View the author
感谢分享解决方案,已成功安装deepin WSL,现在可以愉快使用了!
不错,不过我没有用,也不用Win11
遇到过这个问题,试了各种办法都不行。
后来图形化操作的全部删掉,通过命令行一次成功。。
微软是这样的
越来越阿三了
借楼问个有关的问题,在deepinWSL系统中,
sudo apt-get install ca-certificates curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
curl : Depends: libcurl4 (= 8.5.0-2) but it is not going to be installed
dbus : Depends: usr-is-merged (>= 38~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
两个问题:
貌似不会自动安装依赖
如下:
root@DESKTOP-G34OHQ2:/mnt/c/Users/hanoch# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libpython3.11-minimal python3.11-minimal systemd-sysv
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
usr-is-merged
The following NEW packages will be installed:
usr-is-merged
0 upgraded, 1 newly installed, 0 to remove and 86 not upgraded.
12 not fully installed or removed.
Need to get 0 B/5,492 B of archives.
After this operation, 13.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 16071 files and directories currently installed.)
Preparing to unpack .../usr-is-merged_38_all.deb ...
******************************************************************************
*
* The usr-is-merged package cannot be installed because this system does
* not have a merged /usr.
*
* Please install the usrmerge package to convert this system to merged-/usr.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************
dpkg: error processing archive /var/cache/apt/archives/usr-is-merged_38_all.deb (--unpack):
new usr-is-merged package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/usr-is-merged_38_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
借楼问个有关的问题,在deepinWSL系统中,
sudo apt-get install ca-certificates curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
curl : Depends: libcurl4 (= 8.5.0-2) but it is not going to be installed
dbus : Depends: usr-is-merged (>= 38~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
两个问题:
貌似不会自动安装依赖
如下:
root@DESKTOP-G34OHQ2:/mnt/c/Users/hanoch# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libpython3.11-minimal python3.11-minimal systemd-sysv
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
usr-is-merged
The following NEW packages will be installed:
usr-is-merged
0 upgraded, 1 newly installed, 0 to remove and 86 not upgraded.
12 not fully installed or removed.
Need to get 0 B/5,492 B of archives.
After this operation, 13.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 16071 files and directories currently installed.)
Preparing to unpack .../usr-is-merged_38_all.deb ...
******************************************************************************
*
* The usr-is-merged package cannot be installed because this system does
* not have a merged /usr.
*
* Please install the usrmerge package to convert this system to merged-/usr.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************
dpkg: error processing archive /var/cache/apt/archives/usr-is-merged_38_all.deb (--unpack):
new usr-is-merged package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/usr-is-merged_38_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The usr-is-merged package cannot be installed because this system does not have a merged /usr.
我不太懂这个警告。
希望大佬能不吝赐教
背景
近期接收到反馈说win11下 deepin WSL无法使用,随即搞了台windows 11 最新版本试了试,果然不能用……
我启动的时候给我报了个这个错误:这玩意谁能看懂是啥原因……
其实所有的WSL可能都不能用了,解决方法都可以参考下面内容
分析
随即找到我们的研发大佬帮忙看看。
Q:之前明明还好好的呢,这么久我们也没有做什么变动,为何突然就不能用了?
A:研发大佬皱了皱眉,在环境上敲了几行神奇的代码,然后重启了系统。
Q: 这就好了?
A: 是的,因为你的windows没有开启必要的设置,开启一下就好看了。
原来是我不会用,开启WSL需要做一些前置设置,因为windows11的更新可能默认关闭了这些设置。
设置方法
在windows中找到【启用或关闭windows功能】的选项
开启下面这两个选项:
或者是下面这样的:
或者直接用命令(这个没实验)
升级WSL --重要
这一步很重要,windows好像把这个WSL单独做成了一个应用,想要正常使用,需要进行升级安装新版本,或者直接从商店去系在这个子系统应用安装。
更新好了应该是这样的。
重装deepin WSL
如果上面操作完,还是没法运行,请卸载重新安装deepin WSL
重装后第一次启动应该就不会报错了,等待安装:
上面我是等了几分钟,然后就可以正常设置用户名和密码了:
愉快的玩耍吧: