Uncategorized

Update Strato server to Debian 11 Bullseye

In this article I'll show you how to update your newly delivered Strato server from Debian 10 to Debian 11 Bullseye.
After you receive the mail from Strato that your server is ready to use, log in using ssh on it. On windows you can use a little program called Putty to do manage your server, on a Mac you start terminal and open a ssh connection to your server.

Change repositories

After logging in remove all lines in /etc/apt/sources.list
In the empty sources.list paste the repositories showed below the command.
				
					sudo vi /etc/apt/sources.list
				
			
				
					deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free

				
			
				
					sudo apt update
sudo apt upgrade --without-new-pkgs -y
				
			
You will get some questions along the way:
* Don't change the keyboard layout
* Leave DHCPv6-client empty
* /etc/cron.daily/dpkg -> Y
* Reboot services -> Yes
* /etc/cron.daily/mlocate ->
				
					sudo apt full-upgrade -y
				
			
You will get some questions along the way:
* /etc/rsyslog.conf -> y
* opensshserver -> Keep current version
* /etc/cron.daily/sendmail -> Y
				
					sudo reboot
				
			
After your server is rebooted you can check if your running the latest Debian version 
				
					cat /etc/os-release
cat /etc/debian_version
lsb_release -a
				
			
If you don't use the Strato nameservers you have to add your own or Google nameservers to /etc/resolv.conf 
				
					sudo vi /etc/resolv.conf
				
			
				
					nameserver 8.8.8.8
nameserver 8.8.4.4