Looking at the logs it seems that postgresql is not running:
django.db.utils.OperationalError: could not connect to server: Connection
refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Postgresq needs to be running
** Tags removed: 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/1795726
Title:
package maas-region-controller 2.4.2-7034-g2f5deb8b8-0ubuntu1 failed
to install/upgrade: