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

Bug #1875741 reported by Jeff Lane 
8
This bug affects 1 person
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-libkrb5support0_1.17-6ubuntu4_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-6ubuntu4) over (1.16-2ubuntu0.1) ...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 289, in __getitem__
  return self._weakref[key]
File "/usr/lib/python3.6/weakref.py", line 137, in __getitem__
     o = self.data[key]()
     KeyError: '2-maas'

During handling of the above exception, another exception occurred:
                                                                          Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 292, in __getitem__
 rawpkg = self._cache[key]
 KeyError: '2-maas'

During handling of the above exception, another exception occurred:
                                                                          Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 126, in _apt_pkg
   return self._cache()[package]
File "/usr/lib/python3/dist-packages/apt/cache.py", line 294, in __getitem__
   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/apport/package_hook", line 48, in <module>
  pr['SourcePackage'] = apport.packaging.get_source(options.package)
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 159,
  in get_source
     if self._apt_pkg(package).installed:
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 128,
  in _apt_pkg
     raise ValueError('package %s does not exist' % package)
     ValueError: package 2-maas does not exist
                                                                          Preparing to unpack .../7-libcom-err2_1.45.5-2ubuntu1_amd64.deb ...
Unpacking libcom-err2:amd64 (1.45.5-2ubuntu1) over (1.44.1-1ubuntu1.3) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-xFEKoD/2-maas_1%3a0.6_all.deb
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-ga10625be3-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-65.74-generic 4.15.18
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
PackageArchitecture: all
Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 3.6.7-1~18.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.3
 apt 1.6.12
SourcePackage: maas
Title: 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
UpgradeStatus: Upgraded to focal on 2020-04-28 (0 days ago)

Revision history for this message
Jeff Lane  (bladernr) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Jeff Lane  (bladernr) wrote :

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) ...
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-ga10625be3-0ubuntu1~18.04.1.

dpkg: error processing package maas-region-api (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of maas-region-controller:
 maas-region-controller depends on maas-region-api (= 1:0.6); however:
  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):
 dependency problems - leaving unconfigured
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up libkrb5support0:amd64 (1.17-6ubuntu4) ...
Setting up bzip2 (1.0.8-2) ...
dpkg: dependency problems prevent configuration of maas-rack-controller:
 maas-rack-controller depends on maas (= 1:0.6); however:
  Version of maas on system is 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1.

dpkg: error processing package maas-rack-controller (--configure):
 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-krb5-2:amd64 (1.17-6ubuntu4) ...
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-theme-ubuntu-text (0.9.3-1ubuntu7.18.04.2) ...
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-controller
 dnsutils
 maas-rack-controller

Upgrade complete

The upgrade has completed but there were errors during the upgrade
process.

To continue please press [ENTER]

description: updated
Revision history for this message
Jeff Lane  (bladernr) wrote :

after rebooting, this is what apt is telling me:
ubuntu@lxc-maas:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dnsutils : Depends: bind9-dnsutils but it is not installed
 maas : Depends: maas-rack-controller (= 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1)
        Depends: maas-region-controller (= 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1)
 maas-rack-controller : Depends: maas (= 1:0.6) but 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 is installed
 maas-region-api : Depends: maas (= 1:0.6) but 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Revision history for this message
Jeff Lane  (bladernr) wrote :
Download full text (4.3 KiB)

Finally:

ubuntu@lxc-maas:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  archdetect-deb authbind avahi-daemon avahi-utils bind9utils curtin-common dbconfig-common dbconfig-pgsql docutils-common formencode-i18n grub-common ieee-data libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-core7 libdaemon0 libdbi-perl libdebian-installer4 libecap3 libip4tc2 libirs-export160 libisccfg-export160 libjs-angularjs libjs-sphinxdoc libjs-underscore liblcms2-2 libltdl7
  libnspr4 libnss-mdns libnss3 libpaper-utils libpaper1 libprotobuf10 libsodium23 libvirt-clients libvirt0 libwebpdemux2 libwebpmux3 libyajl2 maas-rack-controller maas-region-api maas-region-controller
  os-prober postgresql pxelinux python-babel-localedata python3-alabaster python3-babel python3-bs4 python3-bson python3-bson-ext python3-convoy python3-crochet python3-curtin python3-django
  python3-django-maas python3-django-piston3 python3-djorm-ext-pgarray python3-dnspython python3-docutils python3-formencode python3-html5lib python3-imagesize python3-iso8601 python3-lib2to3 python3-lxml
  python3-maas-client python3-maas-provisioningserver python3-macaroonbakery python3-mimeparse python3-nacl python3-netaddr python3-oauth python3-olefile python3-pbr python3-petname python3-pexpect python3-pil
  python3-ply python3-prettytable python3-protobuf python3-psycopg2 python3-ptyprocess python3-pygments python3-pymacaroons python3-pyparsing python3-pyvmomi python3-rfc3339 python3-roman
  python3-seamicroclient python3-simplejson python3-simplestreams python3-sphinx python3-sqlparse python3-tempita python3-txtftp python3-tz python3-uvloop python3-webencodings sgml-base sphinx-common squid
  squid-common squid-langpack syslinux-common xml-core
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  bind9-dnsutils bind9-libs libjson-c4 liblmdb0 libmaxminddb0 libuv1 maas
Suggested packages:
  mmdb-bin
The following NEW packages will be installed:
  bind9-dnsutils bind9-libs libjson-c4 liblmdb0 libmaxminddb0
The following packages will be upgraded:
  libuv1 maas
2 upgraded, 5 newly installed, 0 to remove and 730 not upgraded.
4 not fully installed or removed.
Need to get 0 B/1433 kB of archives.
After this operation, 4240 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libjson-c4:amd64.
(Reading database ... 60175 files and directories currently installed.)
Preparing to unpack .../0-libjson-c4_0.13.1+dfsg-7_amd64.deb ...
Unpacking libjson-c4:amd64 (0.13.1+dfsg-7) ...
Selecting previously unselected package liblmdb0:amd64.
Preparing to unpack .../1-liblmdb0_0.9.24-1_amd64.deb ...
Unpacking liblmdb0:amd64 (0.9.24-1) ...
Selecting previously unselected package libmaxminddb0:amd64.
Preparing to unpack .../2-libmaxminddb0_1.4.2-0ubuntu1_amd64.deb ...
Unpacking libmaxminddb0:amd64 (1.4.2-0ubuntu1) ...
Preparing to unpack .../3-libuv1_1.34.2-1ubuntu1_amd64.deb ...
Unpacking l...

Read more...

Revision history for this message
Jeff Lane  (bladernr) wrote :

ubuntu@lxc-maas:~$ snap list
Name Version Rev Tracking Publisher Notes
core18 20200311 1705 latest/stable canonical✓ base
maas-cli 0.6.5 13 latest/stable canonical✓ -
snapd 2.44.3 7264 latest/stable canonical✓ snapd

Revision history for this message
Jeff Lane  (bladernr) wrote :

ubuntu@lxc-maas:~$ dpkg -l |grep maas
ii maas 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all "Metal as a Service" is a physical cloud and IPAM
ii maas-cert-server 0.4.9-0ppa1~gitdc398f0~ubuntu18.04.1 all Ubuntu certification support files for MAAS server
rc maas-common 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS server common files
rc maas-dhcp 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS DHCP server
rc maas-proxy 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS Caching Proxy
iU maas-rack-controller 1:0.6 all Transitional package to the maas snap
iU maas-region-api 1:0.6 all Transitional package to the maas snap
iU maas-region-controller 1:0.6 all Transitional package to the maas snap
ii python3-django-maas 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS server Django web framework (Python 3)
ii python3-maas-client 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS python API client (Python 3)
ii python3-maas-provisioningserver 2.6.2-7841-ga10625be3-0ubuntu1~18.04.1 all MAAS server provisioning libraries (Python 3)

Revision history for this message
Adam Collard (adam-collard) wrote :

snapd failing to install when upgraded in a container is https://bugs.launchpad.net/snapd/+bug/1865503

Revision history for this message
Alberto Donato (ack) wrote :

The udev setup failure seems related to https://bugs.launchpad.net/snapd/+bug/1865503, which happens with snaps running in containers.

Revision history for this message
Jeff Lane  (bladernr) wrote :

Per ack's request:

ubuntu@lxc-maas:~$ dpkg -l |grep snapd
ii snapd 2.42.1+18.04 amd64 Daemon and tooling that enable snap packages

ubuntu@lxc-maas:~$ snap version
snap 2.44.3
snapd 2.44.3
series 16
ubuntu 20.04
kernel 4.15.0-65-generic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.