Update software (Keepalived) on Ubuntu

irBosOtter

Expert Member
Joined
Feb 14, 2014
Messages
2,933
Reaction score
984
Location
Cape Town
I installed Keepalived on two Ubuntu servers and setup VRRP, but I see the version of Keepalived is old and has some issues, so have to upgrade

How does one upgrade to the latest, any easy command? Nothing in the documentation nor any google results on how to do it...

I know nothing about Linux so have no idea if I need to re-install Keepalived from scratch or is there a easier way to update it to the latest version?
 
I installed Keepalived on two Ubuntu servers and setup VRRP, but I see the version of Keepalived is old and has some issues, so have to upgrade
Which version of Ubuntu? Which issues in keepalived?
How does one upgrade to the latest, any easy command? Nothing in the documentation nor any google results on how to do it...
With a distribution, you don't upgrade individual packages to new versions, you upgrade the distribution to a new version and all the packages get upgraded too.
 
Which version of Ubuntu? Which issues in keepalived?

With a distribution, you don't upgrade individual packages to new versions, you upgrade the distribution to a new version and all the packages get upgraded too.

Ubuntu 18. 04.2LTS
Keepalived v1.3.9 (2017 version by the looks of it)

Experiencing all the issues that is documented regarding Keepalived on VM's, latest version will fix it, but guess I should remove and re-install?
 
Ubuntu 18. 04.2LTS
Keepalived v1.3.9 (2017 version by the looks of it)
From https://launchpad.net/ubuntu/+source/keepalived
Ubuntu 18.04 was released with keepalived 1:1.3.9-1build1
version 1:1.3.9-1ubuntu0.18.04.1 is available in updates for 18.04

https://launchpad.net/ubuntu/+source/keepalived/1:1.3.9-1ubuntu0.18.04.1
The changelog for this version shows:
Code:
keepalived (1:1.3.9-1ubuntu0.18.04.1) bionic; urgency=medium

  * d/p/fix-removing-left-over-addresses-if-keepalived-abort.patch:
    Cherry-picked from upstream to ensure left-over VIPs and eVIPs are
    properly removed on restart if keepalived terminates abonormally. This
    fix is from the upstream 1.4.0 release (LP: #1744062).

 -- Corey Bryant <[email protected]>  Tue, 03 Jul 2018 10:40:59 -0400
Experiencing all the issues that is documented regarding Keepalived on VM's, latest version will fix it, but guess I should remove and re-install?
So Canonical have already backported some fixes from version 1.4.0. If you are still experiencing problems with this version, then open a bug against keepalived in Launchpad, and maybe it will be fixed for 18.04.

Ubuntu 19.04 has keepalived 1:2.0.10-1, so one option for you is to enable non-LTS upgrades and upgrade to 18.10 and then 19.04. Obviously then you will no longer be on an LTS version of Ubuntu.
 
From https://launchpad.net/ubuntu/+source/keepalived
Ubuntu 18.04 was released with keepalived 1:1.3.9-1build1
version 1:1.3.9-1ubuntu0.18.04.1 is available in updates for 18.04

https://launchpad.net/ubuntu/+source/keepalived/1:1.3.9-1ubuntu0.18.04.1
The changelog for this version shows:
Code:
keepalived (1:1.3.9-1ubuntu0.18.04.1) bionic; urgency=medium

  * d/p/fix-removing-left-over-addresses-if-keepalived-abort.patch:
    Cherry-picked from upstream to ensure left-over VIPs and eVIPs are
    properly removed on restart if keepalived terminates abonormally. This
    fix is from the upstream 1.4.0 release (LP: #1744062).

-- Corey Bryant <[email protected]>  Tue, 03 Jul 2018 10:40:59 -0400

So Canonical have already backported some fixes from version 1.4.0. If you are still experiencing problems with this version, then open a bug against keepalived in Launchpad, and maybe it will be fixed for 18.04.

Ubuntu 19.04 has keepalived 1:2.0.10-1, so one option for you is to enable non-LTS upgrades and upgrade to 18.10 and then 19.04. Obviously then you will no longer be on an LTS version of Ubuntu.

Cool thanks

This is just to have a failover Pi-Hole DNS server at home, so don't really care what version of Ubuntu. (It works fine until one of the VM's reboot, then DNS queries stops working to the VIP on both VM's)
Also now found a reply on a site to say Keepalived 2.0.14 (The one I apparently need) does not support Ubuntu 18.04, and also not 19.XX, so just going to can this and add the two separate DNS server IP's back to the DHCP lease, to much effort getting this thing working haha
 
Top
Sign up to the MyBroadband newsletter
X