Skip to content

Heartbeat install issues on Ubuntu  #3765

@geekpete

Description

@geekpete

Issue installing on Ubuntu, the original "heartbeat" clustering tool package tries to install instead of the heartbeat beat.

  • Version: 5.2.2
  • Operating System:
    • uname -a: 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    • cat /etc/debian_version: stretch/sid
cat os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
apt-get install heartbeat
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cluster-glue corosync crmsh iproute libcfg6 libcib4 libcmap4 libcorosync-common4 libcpg4 libcrmcluster4 libcrmcommon3 libcrmservice3 libesmtp6 libheartbeat2 libibverbs1 liblrm2 liblrmd1 libnet1 libopenhpi2 libopenipmi0 libpe-rules2 libpe-status10 libpengine10
  libpils2 libplumb2 libplumbgpl2 libqb0 libquorum5 librdmacm1 libstatgrab10 libstonith1 libstonithd2 libtotem-pg5 libtransitioner2 libvotequorum7 openhpid pacemaker pacemaker-cli-utils pacemaker-common pacemaker-resource-agents python-yaml resource-agents
Suggested packages:
  fence-agents
The following NEW packages will be installed:
  cluster-glue corosync crmsh heartbeat iproute libcfg6 libcib4 libcmap4 libcorosync-common4 libcpg4 libcrmcluster4 libcrmcommon3 libcrmservice3 libesmtp6 libheartbeat2 libibverbs1 liblrm2 liblrmd1 libnet1 libopenhpi2 libopenipmi0 libpe-rules2 libpe-status10
  libpengine10 libpils2 libplumb2 libplumbgpl2 libqb0 libquorum5 librdmacm1 libstatgrab10 libstonith1 libstonithd2 libtotem-pg5 libtransitioner2 libvotequorum7 openhpid pacemaker pacemaker-cli-utils pacemaker-common pacemaker-resource-agents python-yaml
  resource-agents
0 to upgrade, 43 to newly install, 0 to remove and 0 not to upgrade.
Need to get 4,202 kB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
  • as a workaround I've successfully used this instead:
    • First use the apt madison command to see what versions of a specific package exist:
# apt-cache madison heartbeat
 heartbeat |  1:3.0.6-2 | http://mirror.internode.on.net/pub/ubuntu/ubuntu xenial/main amd64 Packages
 heartbeat |      5.2.2 | https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 Packages
 heartbeat |      5.2.1 | https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 Packages
 heartbeat |      5.2.0 | https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 Packages
  • which strangely doesn’t list the ubuntu/default heartbeat app that tries to install if you just install heartbeat. Then install with specific version to cherrypick the one you want:
# apt install heartbeat=5.2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  heartbeat
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 8,583 kB of archives.
After this operation, 28.1 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 heartbeat amd64 5.2.2 [8,583 kB]
Fetched 8,583 kB in 42s (203 kB/s)
Selecting previously unselected package heartbeat.
(Reading database ... 322908 files and directories currently installed.)
Preparing to unpack .../heartbeat_5.2.2_amd64.deb ...
Unpacking heartbeat (5.2.2) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up heartbeat (5.2.2) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) …
  • then you can confirm it's installed with:
# dpkg -l heartbeat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                          Version                             Architecture                        Description
+++-=============================================================-===================================-===================================-================================================================================================================================
ii  heartbeat                                                     5.2.2                               amd64                               Ping remote services for availability and log results to Elasticsearch or send to Logstash.
  • Including my /etc/apt/sources.list as well, in case some local Aussie ISP (internode) repo is different to the standard Ubuntu ones, or in case some additional repo I've added provides this other heartbeat package,etc:
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial main restricted
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-updates main restricted
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial universe
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial universe
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-updates universe
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-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://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-updates multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## 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://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://mirror.internode.on.net/pub/ubuntu/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main
# deb-src http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main
# deb-src http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main
# deb-src http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions