Your system is unable to reach the snap store
This microsoft WSL issue completely made it work for me. Essentially it boiled down to:
- Abort the
do-release-upgrade
script - Re-launch Ubuntu
Remove lxd with:
sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client
Finish with
sudo apt upgrade
I was faced with the same problem and found this question.
So far, the only answer requires to abort the do-release-upgrade
script. I do not want this.
Here is the solution:
When the error message from lxd
appeared, you are given three choices, one of them is skip.
After choosing skip, the following message appeared:
Skipping is not allowed when LXD has been initialized
LXD appears to have been configured on this system.
Please stop LXD and remove local data in /var/lib/lxd/ if
you would like to skip installing the LXD snap and migrating the local data.
<Ok>
So FIRST, I opened another Ubuntu shell window and entered: sudo /etc/init.d/lxd stop
The response was Stopping Container hypervisor based on LXC: (not running).
Then SECOND, I deleted the directory given in the message: sudo rm -rf /var/lib/lxd
LAST, I returned to the first Ubuntu shell window and pressed return. And chose skip
again. This time the installation continued.