[Check_mk (english)] Dist-Upgrade from debian 8 to debian 9

Hi,

I would like to upgrade from debian 8 to debian 9. How i can do ?

Apt-get doesn’t work because the installation of check_mk_raw is installed with dpkg (so no dependencies enable…)

I don’t found anything on the website.

Thanks,

Nico


Garanti sans virus. www.avast.com

Hi Nico,

So first the Debian upgrade:

DON’T FORGET TO BACKUP THE SYSTEM !!!

Certifications_EmailSignature_20171004.png

Email_Signature_CentoGenome_red_20161010.png

···
1.  cp /etc/apt/sources.list /etc/apt/sources.list_backup

  1. upgrade your current JESSIE to latest packet revisions
3.  dpkg –C ß check database consistency

  1. apt-mark showhold ßcheck what packages are held back and fix them

`5.      
`vim
`/etc/apt/sources.list```

**FROM JESSIE**

deb http://httpredir.debian.org/debian jessie main contrib non-free

deb http://httpredir.debian.org/debian jessie-updates main contrib non-free

deb http://security.debian.org jessie/updates main contrib non-free

**TO STRETCH**

deb http://httpredir.debian.org/debian stretch main contrib non-free

deb http://httpredir.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org stretch/updates main contrib non-free

6.      
apt-get update

7.      
apt list –upgradable

8.      
apt-get upgrade

9.      
apt-get dist-upgrade

**Note:** In case you get dep. errors because of Check_MK…You can uninstall check_mk or the “hard way” (which I wouldn’t recommend )

# apt-get update && apt-get dist-upgrade -o APT::Force-LoopBreak=1
ß check console what might be removed !

With following commands you can fix most of the problems after / during an upgrade:

apt-get -f install

# dpkg --configure --pending

**Here are the latest Check_MK builds for Debian:**

[https://mathias-kettner.de/check_mk_download.php?HTML=yes](https://mathias-kettner.de/check_mk_download.php?HTML=yes)

[https://mathias-kettner.de/checkmk_install_with_omd.html](https://mathias-kettner.de/checkmk_install_with_omd.html)

Henrik

**Von:** checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
**Im Auftrag von** Nico
**Gesendet:** Montag, 6. November 2017 11:35
**An:** checkmk-en@lists.mathias-kettner.de
**Betreff:** [Check_mk (english)] Dist-Upgrade from debian 8 to debian 9

Hi,

I would like to upgrade from debian 8 to debian 9. How i can do ?

Apt-get doesn’t work because the installation of check_mk_raw is installed with dpkg (so no dependencies enable…)

I don’t found anything on the website.

Thanks,

Nico

[![](https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif)](https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient)

Garanti sans virus.
[
www.avast.com](https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient)

</details>

Hi Nico,

you need to uninstall the current version of check_mk_raw.

Before you can uninstall the current existing sites need to be stopped.

Then you have to remove the symlink inside the site directory to version

root@omd1:/omd/sites/test2# ls -l

total 16

lrwxrwxrwx 1 test2 test2 11 Nov 9 2016 bin → version/bin

drwxr-xr-x 19 test2 test2 4096 Dec 9 2016 etc

lrwxrwxrwx 1 test2 test2 15 Nov 9 2016 include → version/include

lrwxrwxrwx 1 test2 test2 11 Nov 9 2016 lib → version/lib

drwxr-xr-x 5 test2 test2 4096 Nov 9 2016 local

lrwxrwxrwx 1 test2 test2 13 Nov 9 2016 share → version/share

drwxr-xr-x 12 test2 test2 280 Nov 6 08:50 tmp

drwxr-xr-x 14 test2 test2 4096 Oct 16 08:23 var

lrwxrwxrwx 1 test2 test2 27 Oct 16 08:23 version → …/…/versions/1.4.0p15.cre

Only remove the “version” link.

Now you can uninstall the check_mk_raw version.

Do the upgrade procedure. Install the same check_mk_raw version as the old one for your new distribution.

Recreate the symlink.

Start the site.

All should work as before. It could be that the Apache configuration must be altered.

If you use the latest check_mk_raw version this should not be needed.

br

Andreas

···

Nico ndebrou@gmail.com schrieb am Mo., 6. Nov. 2017 um 11:35 Uhr:

Hi,

I would like to upgrade from debian 8 to debian 9. How i can do ?

Apt-get doesn’t work because the installation of check_mk_raw is installed with dpkg (so no dependencies enable…)

I don’t found anything on the website.

Thanks,

Nico


Garanti sans virus. www.avast.com


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en