-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core OS changes in Debian Bookworm break under WSL 1 #8927
Comments
Debian bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020971 |
Debian bug closed with this note
|
A new upload to the store has been done by the maintainer, and the Debian image is now merged-usr by default. Users on WSL 1.0 can uninstall and reinstall to fix this problem. |
This also applies to Kali Linux which is based on Debian:
It just broke with the latest updates from last night though. |
The WSL1 Kali Linux now changed to
|
I was able to bypass the Then I ran into the issue that files exist in That got me back to the initial issue. It is extremely weird since it was able to copy/move several files between those folders already. There's no |
I was able to work around the issue by doing
That leads to a different error:
Running After that I was finally able to update the system again. It did report the following though:
That suggests to run |
No, that further breaks it, it means you won't be able to upgrade to bookworm. Delete the image and install it from scratch. |
Is it possible to use the Linux distribution in WSL2 instead of WSL1? |
I am using Kali which is rolling so I am possibly already on a bookworm-ish state. |
Still not working, I remove my Debian image using wsl unregister then uninstall it from start menu. Then, I download new image from https://aka.ms/wsl-debian-gnulinux. I got a fresh Debian 11. After editing sources.list and upgrade:
|
Not in some cases. WSL2 requires Hyper-V. Some Virtual desktop systems like AWS WorkSpaces can't run a hypervisor like Hyper-V, because the system itself is a VM. |
Here is a pure WSL1 workaround: #4279 (comment) |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.22000.978]
WSL Version
Kernel Version
Linux 4.4.0-22000-Microsoft
Distro Version
Debian Bookworm
Other Software
No response
Repro Steps
Expected Behavior
All system-critical/essential/default packages should upgrade correctly.
Actual Behavior
The installation of usrmerge fails. This bug effectively breaks the entire install of Debian Bookworm on
WSL 1.0, because usrmerge is now a required dependency of the
essential/system-critical package init-system-helpers, as of version
1.65~exp1 through the current version (1.65.2) of that package.
Diagnostic Logs
Setting up usrmerge (31) ...
mv: cannot move '/lib/x86_64-linux-gnu/security' to
'/usr/lib/x86_64-linux-gnu/security': Permission denied
FATAL ERROR:
mv --no-clobber /lib/x86_64-linux-gnu/security
/usr/lib/x86_64-linux-gnu/security: rc=1
You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.
E: usrmerge failed.
dpkg: error processing package usrmerge (--configure):
installed usrmerge package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
The text was updated successfully, but these errors were encountered: