cloudmin install hangs on OS type - how to specify?

I’ve tried to install cloudmin GPL on a Ubuntu 12.04 system. after a while the script informs me that I need to choose an architecture

Reading state information... Done
Package xen-hypervisor is a virtual package provided by:
  xen-hypervisor-4.1-i386 4.1.2-2ubuntu2.5
  xen-hypervisor-4.1-amd64 4.1.2-2ubuntu2.5
You should explicitly select one to install.

E: Package 'xen-hypervisor' has no installation candidate
.. install failed

I don’t see how to specify i386, do I pass a parameter to the script?

Dave

Howdy,

Hmm, it normally doesn’t offer to install both, only one repo should be showing up.

What output does “uname -a” show?

-Eric

uname -a
Linux sandbox 3.2.0-36-generic-pae #57-Ubuntu SMP Tue Jan 8 22:01:06 UTC 2013 i686 athlon i386 GNU/Linux

Howdy,

Hmm… well, the problem seems to be that apt is confused about what architecture it should be using.

By default, it normally uses the architecture defined by the distro installer when installing Ubuntu… but it looks like that’s not the case in your setup there. It’s possible that was changed afterwards.

I don’t immediately see anything out of the ordinary in your uname output.

Another thing that can affect that is the apt config… try running this command, what does this output:

find /etc/apt | xargs grep -i APT::Architecture

no output.

Then I tried this:

...
apt-get install xen-hypervisor-4.1-i386

which ran ok, then rebooted and
reran the install with this output:

Package xen-hypervisor is a virtual package provided by:
  xen-hypervisor-4.1-i386 4.1.2-2ubuntu2.6
  xen-hypervisor-4.1-amd64 4.1.2-2ubuntu2.6
You should explicitly select one to install.

E: Package 'xen-hypervisor' has no installation candidate
.. install failed

Hrm, that’s pretty unusual!

You may need to review your various apt settings and sources in /etc/apt/ in order to figure out why it’s trying to install both i386 and amd64 architectures.

It should only be seeing one of those architectures, not both, so it sounds like something is configured in a way that has it looking at both repositories.

Is this by chance a fresh Ubuntu 12.04 install?

And is it on a dedicated server, and installed by yourself? Or is it running on a VPS, where the OS image may have been provided by your provider?

-Eric

it is a real piece of hardware in my office. It’s my sandbox; I need to get up to speed on cloudmin for a work purpose and don’t want to experiment in a live setting. The unit has Ubuntu 12.04 in consequence of upgrades from 10.04 about six weeks ago - I went in two steps, went pretty smoothly; I guess it’s possible the upgrade may have left some confusion. And yes I installed it. I’ll check in the apt repolist and see what I can see and let you know.

Dave

cat sources.list
# 
# deb cdrom:[Ubuntu-Server 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)]/ lucid main restricted

# deb cdrom:[Ubuntu-Server 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ca.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise universe
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ca.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
# deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-lucid main # disabled on upgrade to precise
# deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal main # disabled on upgrade to precise

deb http://inverse.ca/ubuntu precise precise
deb http://cloudmin.virtualmin.com/gpl/debian binary/

which looks OK to me, All references seem to be to 12.04 and I don’t see any architecture-specific stuff

Dave

Hey, midal!

I’ve experienced the same problem. Try to change the version of xen-hypervisor in the install script.

sudo nano cloudmin-gpl-debian-install.sh

then change string “xen-hypervisor-4.0-$arch” to “xen-hypervisor-4.1-$arch”

This is happening because of a difference in packages of linux distributions. It would be nice if it had a script for x86 or i386 and x86_64 or amd64, where each person could choose according to the version of your system.
Managed to install changing the correct packets according to the version of my dist, more at system startup consists amd64 too.
Has a way to manually install Cloudmin GPL Install for Xen?