Upgrading to Ubuntu 17.10 on WSL
Note: This workaround is no longer necessary in Windows 10 Insider build 17046 and later. As of 2018-02-07, the patch hasn't yet made it to stable.
- Upgrade with
do-release-upgrade, as you normally would. It will error out and leave your system in a partially upgraded state.
- Close all WSL terminals and ensure that all WSL processes have terminated
- Run as a normal user (not root):
wget -O - https://gist.githubusercontent.com/Zenexer/10bc12fa5c99848b4b2150184f6beee5/raw/ubuntu-fix.sh | sh -s
- Answer any prompts (sudo password, version disambiguation)
- If there are errors, resolve them and re-run the script. It is idempotent, meaning that it is safe to run any number of times, even if it only partially completes.