package lxd 3.0.3-0ubuntu1~18.04.1 failed to install/upgrade: new lxd package pre-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
running do-release-upgrade from ubuntu 18.04 to 20.04 i got this upgrade error for lxd
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: lxd 3.0.3-0ubuntu1~
ProcVersionSign
Uname: Linux 4.15.0-99-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
Date: Tue May 5 22:08:32 2020
EcryptfsInUse: Yes
ErrorMessage: new lxd package pre-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2
SourcePackage: lxd
Title: package lxd 3.0.3-0ubuntu1~
UpgradeStatus: Upgraded to focal on 2020-05-05 (0 days ago)
modified.
modified.
modified.
modified.
modified.
[Impact]
The migration script which transitions users from the deb to the snap completes the migration by deleting the old directory. In cases where we have mountpoints in there the migration fails. With this change, we attempt to unmount those paths (but not fail should they be missing).
[Test plan]
Ideally, get a system which has both /var/lib/
[Where problems could occur]
Can't really think of anything, the two unmounts run with "|| true" so at worst they should behave the same as without.
I have chosen the LXD '4.0' realease path
As the 'do-release- upgrade' will break in the middle on the upgrade process I fix the upgrading myself with this steps:
1) sudo apt purge lxd-client lxd
2) sudo apt update && sudo apt dist-upgrade
afterward lxd runs as expected from snap
rplessl@ host:/home/ rplessl# ps -ef | grep lxd 14890/commands/ daemon. start lxd/common/ var/lib/ lxcfs -p /var/snap/ lxd/common/ lxcfs.pid lxd/common/ lxd/logs/ lxd.log --group lxd
root 12596 9709 0 22:22 pts/0 00:00:00 grep --color=auto lxd
root 25885 1 0 22:08 ? 00:00:00 /bin/sh /snap/lxd/
root 26047 1 0 22:08 ? 00:00:00 lxcfs /var/snap/
root 26059 25885 0 22:08 ? 00:00:01 lxd --logfile /var/snap/