label_alt_logo
2019-08-08

Upgrade Debian 9 to Debian 10

by Alexander Mahr

Since version 19.2 KeyHelp also supports the operating system Debian 10 "Buster".

Do you run KeyHelp on a server with Debian 9 "Stretch" and want to take advantage of the optimized Debian 10 "Buster"? With this guide, we give you the opportunity to update the software by yourself and provide you with the required script and detailed instructions. Please do not hesitate to contact us if you have any questions or need assistance.




Such instructions are also available for the older operating system versions of Debian and Ubuntu.
Further information can be found here.

ATTENTION: After you have started the script and confirmed the start of the upgrade with [ENTER], all the steps described here must be completed. If you cancel the current process, any changes already made must be undone manually.

ATTENTION: An ongoing upgrade process should always be monitored. Please keep the terminal window open for the duration of the upgrade. You should consider running the upgrade using the screen command to prevent the SSH session from being accidentally terminated.

ATTENTION: Although extensively tested, a previous backup of the server should always be performed.

ATTENTION: Additionally installable PHP interpreters are available from PHP 5.4 on. If older PHP interpreters are used on your system, you have to manually change the affected domains to a higher version.

ATTENTION: Please check the firewall setting on your server and re-apply the firewall rules if necessary after the operating system upgrade has been completed.

 


 

Upgrade guide

 

Preparation
Download the script with this command:

wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_debian_upgrade_9_to_10_php7 -O keyhelp_debian_upgrade_9_to_10.php

Afterwards start script with:

php keyhelp_debian_upgrade_9_to_10.php

1.)
Follow the instructions of the script. It will automatically run necessary tasks in preparation for the upgrade. Your current operating system will be updated.

2.)
During the execution of the script, the control of the program flow is transferred to the operating system routine "dist-upgrade". Please follow the instructions of the program and answer the questions (see below). Note that depending on the services installed on your server, you may receive further questions.

  • Restart services during package upgrades without asking? ⇒ Yes
  • Configuration file »/etc/nagios/nrpe.cfg« ⇒ Keep your currently-installed version
  • Configuration file »/etc/default/spamassassin« ⇒ Keep your currently-installed version
  • Should smb.conf be modified to use WINS settings offered by DHCP? ⇒ No
  • Configuration file »/etc/init.d/proftpd« ⇒ Keep your currently-installed version
  • Configuration file »/usr/share/dovecot/conf.d/10-ssl.conf« ⇒Keep your currently-installed version
  • Configuration file »/etc/ssh/sshd_config« ⇒ Keep your currently-installed version
  • Configuration file »/etc/apache2/mods-available/http2.conf« ⇒ Keep your currently-installed version
  • Configuration file »/etc/apache2/mods-available/mime.conf« ⇒ Keep your currently-installed version

3.)
In the last step, the script is restarted automatically. Confirm the continuation of the upgrade with [ENTER]. The required configuration files will then be updated. Confirm the restart of the system when the work is complete. The upgrade is now finished.

Congratulations, you now use KeyHelp with Debian 10 "Buster"!