Skip to content

Instantly share code, notes, and snippets.

@abenevaut
Last active May 22, 2024 11:34
Show Gist options
  • Save abenevaut/a37cdf783e705f98360c7cf18fedb887 to your computer and use it in GitHub Desktop.
Save abenevaut/a37cdf783e705f98360c7cf18fedb887 to your computer and use it in GitHub Desktop.

Right after getting kali linux on windows WSL, from windows store, i tried to upgrade it as follow

sudo apt-get update && sudo apt full-upgrade -y
# log, log, log...
Unpacking libc6:amd64 (2.38-10) over (2.37-12) ...
Setting up libc6:amd64 (2.38-10) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.

[001% #>----------------------]

The upgrade seems stuck at the "Nothing to restart" output.

As mentionned here : microsoft/WSL#11092 (comment), directories /run/systemd/system do not exist and block the upgrade. You can do this action during the blocked upgrade, from another terminal.

sudo mkdir -p /run/systemd/system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment