Upgrading to 20.04 Attempts to Install LXD via Snap Store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu WSL |
Fix Released
|
Critical
|
Patrick Wu | ||
lxd |
Fix Released
|
Unknown
|
Bug Description
Upgrading to Ubuntu 20.04 attempts to install LXD via snap which fails on WSL.
At a minimum this results in a bad user upgrade experience with errors that have to be ignored. Under certain circumstances it can leave users with broken apt dependencies.
snap is not currently supported on WSL.
Ubuntu 20.04 has a transition package for LXD, to switch from the deb to the snap.
Logic was previously added to the LXD deb preinst to detect if it was on WSL and bypass the deb to snap switch: https:/
However, if a user upgrades from 16.04 to 18.04 and then attempts to upgrade to 20.04 they will still encounter the deb to snap switch.
The 16.04 to 18.04 upgrade path leaves enough traces that it fails the WSL detection test and attempts to install the snap.
The changes at https:/
It prevents data loss of any LXD devices, storage pools, and networks.
Changed in ubuntuwsl: | |
importance: | Undecided → High |
assignee: | nobody → Patrick Wu (callmepk) |
Changed in lxd: | |
status: | Unknown → New |
Changed in lxd: | |
status: | New → Fix Released |
Changed in ubuntuwsl: | |
importance: | High → Medium |
Changed in ubuntuwsl: | |
status: | New → Confirmed |
description: | updated |
Changed in ubuntuwsl: | |
importance: | Medium → Critical |
Unfortunately this leaves the user with unmet dependencies.