package maas 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 failed to install/upgrade: new maas package pre-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Upgrading my MAAS server from Bionic / 2.6 to Focal / 2.7. The upgrade broke during handling of MAAS with a traceback. (Apologies for the formatting, this was copied from console and the formatting got skewed there for some reason).
Preparing to unpack .../6-libkrb5su
Unpacking libkrb5support0
Traceback (most recent call last):
File "/usr/lib/
return self._weakref[key]
File "/usr/lib/
o = self.data[key]()
KeyError: '2-maas'
During handling of the above exception, another exception occurred:
File "/usr/lib/
rawpkg = self._cache[key]
KeyError: '2-maas'
During handling of the above exception, another exception occurred:
File "/usr/lib/
return self._cache(
File "/usr/lib/
raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named '2-maas'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/
pr['SourcePac
File "/usr/lib/
in get_source
if self._apt_
File "/usr/lib/
in _apt_pkg
raise ValueError('package %s does not exist' % package)
ValueError: package 2-maas does not exist
Unpacking libcom-err2:amd64 (1.45.5-2ubuntu1) over (1.44.1-1ubuntu1.3) ...
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?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (354.9 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): s
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: maas 2.6.2-7841-
ProcVersionSign
Uname: Linux 4.15.0-65-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
Date: Tue Apr 28 19:59:25 2020
ErrorMessage: new maas package pre-installation script subprocess returned error exit status 1
PackageArchitec
Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 3.6.7-1~18.04
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.0.5ubuntu2.3
apt 1.6.12
SourcePackage: maas
Title: package maas 2.6.2-7841-
UpgradeStatus: Upgraded to focal on 2020-04-28 (0 days ago)
tags: | removed: need-duplicate-check |
After sending this report, my system was left in a broken state:
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Setting up libcom-err2:amd64 (1.45.5-2ubuntu1) ... ga10625be3- 0ubuntu1~ 18.04.1.
dpkg: dependency problems prevent configuration of maas-region-api:
maas-region-api depends on maas (= 1:0.6); however:
Version of maas on system is 2.6.2-7841-
dpkg: error processing package maas-region-api (--configure): controller: controller depends on maas-region-api (= 1:0.6); however:
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of maas-region-
maas-region-
Package maas-region-api is not configured yet.
dpkg: error processing package maas-region- controller (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dnsutils:
dnsutils depends on bind9-dnsutils; however:
Package bind9-dnsutils is not installed.
dpkg: error processing package dnsutils (--configure): :amd64 (1.17-6ubuntu4) ... controller: controller depends on maas (= 1:0.6); however: ga10625be3- 0ubuntu1~ 18.04.1.
dependency problems - leaving unconfigured
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up libkrb5support0
Setting up bzip2 (1.0.8-2) ...
dpkg: dependency problems prevent configuration of maas-rack-
maas-rack-
Version of maas on system is 2.6.2-7841-
dpkg: error processing package maas-rack- controller (--configure): krb5-2: amd64 (1.17-6ubuntu4) ... theme-ubuntu- text (0.9.3- 1ubuntu7. 18.04.2) ... controller controller
dependency problems - leaving unconfigured
Setting up libip4tc2:amd64 (1.8.4-3ubuntu2) ...
Setting up bsdmainutils (11.1.2ubuntu3) ...
Setting up libk5crypto3:amd64 (1.17-6ubuntu4) ...
Setting up libkrb5-3:amd64 (1.17-6ubuntu4) ...
Setting up libgssapi-
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for plymouth-
update-initramfs: deferring update (trigger activated)
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for initramfs-tools (0.130ubuntu3.9) ...
Errors were encountered while processing:
maas-region-api
maas-region-
dnsutils
maas-rack-
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]