Debian/Ubuntu dist-upgrade keeping OMD

Changing major releases on linux is always a risk, but Debian / Ubuntu dist-upgrades really worked fine the last years. If you are using OMD (Open Monitoring Distribution) for Nagios/Icinga/Shinken, then the release-update would disabled 3rd party repositorys and therefore remove your OMD installations during the update. This is usually not what you want, but with a small trick, updates work smoothly.

First step:

  • make sure you made backups
  • make sure all your sites use latest stable OMD release

OMD daily Snapshot releases will be removed during the update because the snapshot version is probably not longer available.

After a quick check via “omd sites” i had to update my development site:

#> omd sites
SITE             VERSION          COMMENTS
devel            0.57.20130607
thruktest        1.00
modgearmantest   1.00

But thanks to OMD, this isn’t a big deal:

#> omd update devel

Second step, start the upgrade:

#> do-release-upgrade

After some moments, you will get this screen which tells you the update process disabled some repositorys:

Updating repository information
WARNING: Failed to read mirror file

Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

To continue please press [ENTER]

DON’T press enter now, instead open a second shell and change your /etc/apt/sources.list:


# Consol Labs Repository
# deb precise main # disabled on upgrade
# deb precise main # disabled on upgrade


# Consol Labs Repository
deb precise main
deb precise main

Be careful, mistakes can lead to serious fuckups. Double check the release name!

After editing the sources.list, continue with your update…

Finally, check the details of the update by pressing “d” at the next step and make sure your OMD packages are listed in “Upgrade:”

 Continue [yN]  Details [d]

It should look like this:

Upgrade: kruler kscreensaver knode plasma-scriptengines liblcms1
knetwalk xorg-docs-core kscreensaver-xsavers kpat omd-1.00

Now enjoy your updated system.