MAAS INSTALLATION IN UBUNTU 14.04 USING JOID

Asked by Navin Sridharan

Hi, I get the below error when installing MAAS. Kindly advice

The following packages have unmet dependencies:

maas : Depends: maas-region-controller (= 1.9.5+bzr4599-0ubuntu1~14.04.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Kindly look into the output of the following diagnostic commands for further info :

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ uname -a Linux ubuntu-ProLiant-DL380-G6 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ lsb_release -crid Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu maas Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which command do you execute to receive this error message?

What is the output of the command

apt-cache policy maas maas-region-controller

Revision history for this message
Navin Sridharan (navinsridharan) said :
#2

Thanks for the response

sudo apt-get install maas --- > Command used and I received the above error

Output of the following command:
apt-cache policy maas maas-region-controller

maas:
  Installed: (none)
  Candidate: 1.9.5+bzr4599-0ubuntu1~14.04.2
  Version table:
     1.9.5+bzr4599-0ubuntu1~14.04.2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://mirrors.kernel.org/ubuntu/ trusty-updates/main amd64 Packages
     1.9.4+bzr4592-0ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/maas/stable/ubuntu/ trusty/main amd64 Packages
     1.5.4+bzr2294-0ubuntu1.2 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.5+bzr2252-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
maas-region-controller:
  Installed: (none)
  Candidate: 1.9.5+bzr4599-0ubuntu1~14.04.2
  Version table:
     1.9.5+bzr4599-0ubuntu1~14.04.2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://mirrors.kernel.org/ubuntu/ trusty-updates/main amd64 Packages
     1.9.4+bzr4592-0ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/maas/stable/ubuntu/ trusty/main amd64 Packages
     1.5.4+bzr2294-0ubuntu1.2 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.5+bzr2252-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What output do you receive for the command

sudo apt-get install maas maas-region-controller

Revision history for this message
Navin Sridharan (navinsridharan) said :
#4

Below given is the output:

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ sudo apt-get install maas maas-region-controller
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 maas-region-controller : Depends: maas-dns (= 1.9.5+bzr4599-0ubuntu1~14.04.2) but it is not going to be installed
                          Depends: maas-region-controller-min (= 1.9.5+bzr4599-0ubuntu1~14.04.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

try adding the next packages, too

sudo apt-get install maas maas-region-controller maas-dns maas-region-controller-min

Revision history for this message
Navin Sridharan (navinsridharan) said :
#6

Looks like there are further dependencies

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ sudo apt-get install maas maas-region-controller maas-dns maas-region-controller-min
[sudo] password for ubuntu:
Sorry, try again.
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 maas-region-controller-min : Depends: python-django16 but it is not installable or
                                       python-django (< 1.7) but 1.8.7-1ubuntu5.5~cloud0 is to be installed
E: Unable to correct problems, you have held broken packages.

=============================================================================================

I tried installing this dependency package along with the other packages but below given is the error:

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ sudo apt-get install maas maas-region-controller maas-dns maas-region-controller-min python-django16
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-django16 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-django16' has no installation candidate

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The dependencies show "python-django16 or python-django < 1.7"
The standard repositories for trusty have python-django 1.6.*, so that should be no problem unless you have upgraded to an unofficial version of python-django.

What is the output of the command

apt-cache policy python-django

Revision history for this message
Navin Sridharan (navinsridharan) said :
#8

Thanks for the response Manfred, here's the output:

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ apt-cache policy python-djangopython-django:
  Installed: 1.8.7-1ubuntu5.5~cloud0
  Candidate: 1.8.7-1ubuntu5.5~cloud0
  Version table:
 *** 1.8.7-1ubuntu5.5~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/mitaka/main amd64 Packages
        100 /var/lib/dpkg/status
     1.6.11-0ubuntu1.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        500 http://mirrors.kernel.org/ubuntu/ trusty-updates/main amd64 Packages
     1.6.1-2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The version of python-django from the Ubuntu-cloud mitaka repository is incompatible with the maas version from the trusty repository.

Revision history for this message
Navin Sridharan (navinsridharan) said :
#10

The script earlier contained Ocata, but then threw following error:

ubuntu@ubuntu-ProLiant-DL380-G6:~/joid-master/ci$ sudo apt-add-repository cloud-archive:ocata -y
[sudo] password for ubuntu:
'ocata': not a valid cloud-archive name.
Must be one of ['folsom', 'folsom-proposed', 'grizzly', 'grizzly-proposed', 'havana', 'havana-proposed', 'icehouse', 'icehouse-proposed', 'juno', 'juno-proposed', 'kilo', 'kilo-proposed', 'liberty', 'liberty-proposed', 'mitaka', 'mitaka-proposed', 'tools', 'tools-proposed']

So, I changed it to Mitaka, but now that they are not compatible any suggestions which cloud-archive would be better to install? Thanks.

Revision history for this message
Navin Sridharan (navinsridharan) said :
#11

Just to provide additional info that we re using Ubuntu 14.04

Can you help with this problem?

Provide an answer of your own, or ask Navin Sridharan for more information if necessary.

To post a message you must log in.