maas-region-controller-2.9 depends on maas transitional package

Bug #1890859 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

When trying to install MAAS 2.9 on Focal apt thinks maas-region-controller depends on the maas transitional Snap. That prevents things like isc-dhcp-server from being installed leaving you with a broken MAAS.

$ sudo add-apt-repository -y ppa:maas/2.9
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://ppa.launchpad.net/maas/2.9/ubuntu focal InRelease [18.0 kB]
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:6 http://ppa.launchpad.net/maas/2.9/ubuntu focal/main amd64 Packages [956 B]
Get:7 http://ppa.launchpad.net/maas/2.9/ubuntu focal/main Translation-en [480 B]
Fetched 19.5 kB in 1s (15.0 kB/s)
Reading package lists... Done
$ sudo apt install -y maas-region-controller maas-rack-controller
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  maas maas-region-api
The following NEW packages will be installed:
  maas maas-rack-controller maas-region-api maas-region-controller
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 9308 B of archives.
After this operation, 45.1 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 maas all 1:0.7 [4732 B]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 maas-rack-controller all 1:0.7 [1524 B]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 maas-region-api all 1:0.7 [1520 B]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 maas-region-controller all 1:0.7 [1532 B]
Fetched 9308 B in 1s (17.9 kB/s)
Preconfiguring packages ...
Selecting previously unselected package maas.
(Reading database ... 38841 files and directories currently installed.)
Preparing to unpack .../archives/maas_1%3a0.7_all.deb ...
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
         installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more
         details.

maas (2.7/stable) 2.7.2-8284-g.037e34a46 from Canonical✓ installed
Unpacking maas (1:0.7) ...
Selecting previously unselected package maas-rack-controller.
Preparing to unpack .../maas-rack-controller_1%3a0.7_all.deb ...
Unpacking maas-rack-controller (1:0.7) ...
Selecting previously unselected package maas-region-api.
Preparing to unpack .../maas-region-api_1%3a0.7_all.deb ...
Unpacking maas-region-api (1:0.7) ...
Selecting previously unselected package maas-region-controller.
Preparing to unpack .../maas-region-controller_1%3a0.7_all.deb ...
Unpacking maas-region-controller (1:0.7) ...
Setting up maas (1:0.7) ...
Setting up maas-rack-controller (1:0.7) ...
Setting up maas-region-api (1:0.7) ...
Setting up maas-region-controller (1:0.7) ...
$ apt-cache rdepends --no-recommends --no-suggests --no-enhances --recurse maas
maas
Reverse Depends:
  maas-rack-controller
  maas-region-api
  maas-rack-controller
  maas-region-api
maas-rack-controller
Reverse Depends:
  maas
  maas
  maas
  maas
maas-region-api
Reverse Depends:
  maas-region-controller
  maas
  maas
  maas
  maas-region-controller
  maas
maas-region-controller
Reverse Depends:
  maas
  maas
  maas
  maas

Related branches

Revision history for this message
Lee Trager (ltrager) wrote :

I'm pretty sure this is because the transitional package has its epoch set to 1. I tried to do the same thing with MAAS but make package doesn't take the epoch I specified.

diff --git a/debian/changelog b/debian/changelog
index ff556b43e..e4ad7cfa4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+maas (1:2.9.0~alpha1-0ubuntu2) focal; urgency=medium
+
+ * Bump epoch to not conflict so transitional package doesn't conflict
+
+ -- Lee Trager <email address hidden> Fri, 07 Aug 2020 23:56:20 +0000
+
 maas (2.9.0~alpha1-0ubuntu1) bionic; urgency=medium

   * Open 2.9 release.

Changed in maas:
status: Triaged → Fix Committed
Lee Trager (ltrager)
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Igor Gnip (igorgnip) wrote :

Thank you for this fix. It was really causing issues.

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.