During do-release-upgrade from 18.04 to 18.10: package lxd 3.0.2-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 | |
---|---|---|---|---|---|
apport (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Upgrading apt version of lxd to snap version during do-release-upgrade failed.
I attempted to update my ubuntu server 18.04 system to 18.10 as root:
apt update
apt dist-upgrade -y
apt autoremove -y
do-release-upgrade
I have an existing LXD installed via apt, and running containers.
It asked me which snap LXD to upgrade to, and I selected "latest".
Console log:
==> Installing the LXD snap from the latest track for ubuntu-18.10
error: cannot perform the following tasks:
- Run install hook of "lxd" snap if present (run hook "install": cannot perform operation: mount /var/lib/
dpkg: error processing archive /tmp/apt-
new lxd package pre-installation script subprocess returned error exit status 1
Traceback (most recent call last):
Traceback (most recent call last):
Unpacking open-iscsi (2.0.874-
Preparing to unpack .../34-
Unpacking poppler-data (0.4.9-2) over (0.4.8-2) ...
Preparing to unpack .../35-
Unpacking tasksel-data (3.34ubuntu12) over (3.34ubuntu11) ...
Preparing to unpack .../36-
Unpacking tasksel (3.34ubuntu12) over (3.34ubuntu11) ...
Preparing to unpack .../37-
Unpacking libsepol1:amd64 (2.8-1) over (2.7-1) ...
Errors were encountered while processing:
/tmp/apt-
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
*** Send problem report to the developers?
There also appears to be a secondary bug in the error report collection software, causing it to process an illegal UTF-8 sequence:
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.....ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
check_
File "/usr/share/
trim_
File "/usr/share/
report[
File "/usr/share/
report[
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 14333-14334: invalid continuation byte
I'm afraid I don't know which software package this second error falls under.
[Test Case]
I'm not sure about this, but I think it may have to do with me already bind-mounting /var/lib/lxd off the boot drive because it's too small to support the data (using https:/
apt update
apt dist-upgrade -y
apt autoremove -y
do-release-upgrade
[Regression Potential]
TBD
ProblemType: Package
DistroRelease: Ubuntu 18.10
Package: lxd 3.0.2-0ubuntu1~
ProcVersionSign
Uname: Linux 4.15.0-39-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Tue Dec 11 09:25:57 2018
ErrorMessage: new lxd package pre-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-03-23 (262 days ago)
InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180322.1)
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.10
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
RelatedPackageV
dpkg 1.19.0.5ubuntu5
apt 1.7.0
SourcePackage: lxd
Title: package lxd 3.0.2-0ubuntu1~
UpgradeStatus: Upgraded to cosmic on 2018-12-11 (0 days ago)
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.