This particular grub failure occurred because grub tries systemd-detect- virt --quiet --container to see if it has to skip grub-install.
I'm fixing this in systemd to detect wsl as a container. ** Changed in: grub2 (Ubuntu) Assignee: (unassigned) => Balint Reczey (rbalint) ** Package changed: grub2 (Ubuntu) => systemd (Ubuntu) ** Changed in: systemd (Ubuntu) Assignee: Balint Reczey (rbalint) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1816753 Title: do-release-upgrade on WSL failed horribly due to grub and others Status in systemd package in Ubuntu: New Bug description: Upon reading an Ubuntu page that said it was possible to upgrade my Ubuntu-under-Windows 10 install (WSL) from 16.04 LTS just by running do-release-upgrade, I excitedly went to my terminal and ran the command. First it refused to run because system was not fully updated. Fine, I ran: sudo apt update sudo apt dist-upgrade This process completed without any errors. I then ran do-release- upgrade again. This time it started okay and got through most of the process. But then at some point it decided to run grub even though I am running Ubuntu under WSL, so presumably grub should not be used. It did apparently detect that it wasn't needed, because it asked me if I was sure I didn't want to install it on the boot device. I answered yes. Then the install proceeded to LXD but soon after came an error related to grub. After that it went downhill fast with at least 2 other errors. Additionally, when the system attempted to roll back the upgrade I got an error from a kernel package. ProblemType: Package DistroRelease: Ubuntu 18.04 Package: friendly-recovery 0.2.38ubuntu1 ProcVersionSignature: Microsoft 4.4.0-17763.253-Microsoft 4.4.35 Uname: Linux 4.4.0-17763-Microsoft x86_64 ApportVersion: 2.20.9-0ubuntu7.5 Architecture: amd64 Date: Tue Feb 19 23:50:44 2019 Dmesg: [ 0.017808] Microsoft 4.4.0-17763.253-Microsoft 4.4.35 ErrorMessage: installed friendly-recovery package post-installation script subprocess returned error exit status 1 PackageArchitecture: all Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04 PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu2.1 apt 1.6.8 SourcePackage: grub2 Title: package friendly-recovery 0.2.38ubuntu1 failed to install/upgrade: installed friendly-recovery package post-installation script subprocess returned error exit status 1 UpgradeStatus: Upgraded to bionic on 2019-02-20 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1816753/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp