package lxd (not installed) failed to install/upgrade: new lxd package pre-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I was doing a release upgrade from 18.04 LTS to 20.04 LTS
I found several similar bugs, but none had the same original and target versions
The console said:
Errors were encountered while processing:
/tmp/apt-
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
main.log ended with:
2022-05-17 11:52:56,838 INFO cache.commit()
2022-05-17 12:58:40,102 ERROR got an error from dpkg for pkg: '/tmp/apt-
2022-05-17 12:58:40,104 DEBUG running apport_pkgfailure() lxd: new lxd package pre-installation script subprocess returned error exit status 1
2022-05-17 12:59:10,440 ERROR Exception during pm.DoInstall()
Traceback (most recent call last):
File "/tmp/ubuntu-
res = pm.do_install(
apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1)
2022-05-17 12:59:10,471 ERROR SystemError from cache.commit(): installArchives() failed
2022-05-17 12:59:10,471 ERROR found exception: 'E:Sub-process /usr/bin/dpkg returned an error code (1)'
(END)
apt-term.log had this error:
2022-05-
lxd (4.0/stable) 4.0.9-8e2046b from CanonicalESC[
==> Waiting for LXD to be online (10min timeout)
==> Running migration from Deb to Snap
=> Connecting to source server
error: Unable to connect to the source LXD: Get "http://
dpkg: error processing archive /tmp/apt-
new lxd package pre-installation script subprocess returned error exit status 1
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: lxd (not installed)
ProcVersionSign
Uname: Linux 4.15.0-177-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.27
Architecture: amd64
Date: Tue May 17 12:58:40 2022
EcryptfsInUse: Yes
ErrorMessage: new lxd package pre-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: lxd
Title: package lxd (not installed) failed to install/upgrade: new lxd package pre-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2022-05-17 (0 days ago)
tags: | removed: need-duplicate-check |