Public bug reported:
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-dpkg-install-KQugPW/00-lxd_1%3a0.10_all.deb
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-dpkg-install-KQugPW/00-lxd_1%3a0.10_all.deb': 'new lxd package
pre-installation script subprocess returned error exit status 1'
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-release-upgrader-imqzkt03/DistUpgrade/DistUpgradeView.py",
line 220, in run
res = pm.do_install(self.writefd)
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-17T12:57:58+03:00 INFO Waiting for automatic snapd restart...
lxd (4.0/stable) 4.0.9-8e2046b from CanonicalESC[32m✓ESC[0m installed
==> 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://unix.socket/1.0": dial
unix /var/lib/lxd/unix.socket: connect: connection refused
dpkg: error processing archive
/tmp/apt-dpkg-install-KQugPW/00-lxd_1%3a0.10_all.deb (--unpack):
new lxd package pre-installation script subprocess returned error exit status 1
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: lxd (not installed)
ProcVersionSignature: Ubuntu 4.15.0-177.186-generic 4.15.18
Uname: Linux 4.15.0-177-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
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
RelatedPackageVersions:
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)
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-package focal need-duplicate-check
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973800
Title:
package lxd (not installed) failed to install/upgrade: new lxd package
pre-installation script subprocess returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1973800/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs