Upgrading to 20.04 Attempts to Install LXD via Snap Store

Bug #1862550 reported by Hayden Barnes
8
This bug affects 1 person
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://github.com/lxc/lxd-pkg-ubuntu/pull/34

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://github.com/lxc/lxd-pkg-ubuntu/pull/42 handle this scenario better.

It prevents data loss of any LXD devices, storage pools, and networks.

Tags: focal lxd wsl
Revision history for this message
Hayden Barnes (haydenb) wrote :
Revision history for this message
Hayden Barnes (haydenb) wrote :
Revision history for this message
Hayden Barnes (haydenb) wrote :

Unfortunately this leaves the user with unmet dependencies.

Hayden Barnes (haydenb)
Changed in ubuntuwsl:
importance: Undecided → High
assignee: nobody → Patrick Wu (callmepk)
Revision history for this message
Patrick Wu (callmepk) wrote :

Wrong image for the unmet dependency? it is the same as the "Attempting to reach snap store"

Changed in lxd:
status: Unknown → New
Changed in lxd:
status: New → Fix Released
Hayden Barnes (haydenb)
Changed in ubuntuwsl:
importance: High → Medium
Hayden Barnes (haydenb)
Changed in ubuntuwsl:
status: New → Confirmed
Revision history for this message
Patrick Wu (callmepk) wrote :
Changed in ubuntuwsl:
status: Confirmed → In Progress
Revision history for this message
Hayden Barnes (haydenb) wrote :
Changed in ubuntuwsl:
status: In Progress → Fix Committed
Hayden Barnes (haydenb)
description: updated
Changed in ubuntuwsl:
importance: Medium → Critical
Revision history for this message
Patrick Wu (callmepk) wrote :

The fix lxd 1:0.9 is live so mark as fix released

Changed in ubuntuwsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.