Upgrade Debian
This is a short instruction how to upgrade Debian Wheezy to Jessie. The Article describes an upgrade process from Debian Wheezy to Debian Jessie. For now Debian Linux with a code name “Jessie” is the latest stable Debian release.
It is very important to create a backup before upgrade Debian system. The less software is installed on your system the higher chance for a successful upgrade.
1. Upgrade Debian Recommendations:
2. Fully Upgrade Debian current System:
1 2 3 |
# apt-get update # apt-get upgrade # apt-get dist-upgrade |
3. Change sources:
Once the above steps are finished update /etc/apt/sources.list:
If you have other sources in /etc/apt/sources.list.d you should also change wheezy to jessie this sources
1 |
# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list |
e.g.:
FROM DEBIAN WHEEZY:
1 |
# cat /etc/apt/sources.list |
1 2 3 4 5 |
deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main deb http://ftp.at.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.at.debian.org/debian/ wheezy main contrib non-free |
TO DEBIAN JESSIE:
1 2 3 4 5 |
deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main deb http://ftp.at.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.at.debian.org/debian/ jessie main contrib non-free |
4 Upgrade Debian packages:
At this stage we are everything ins ready to upgrade debian:
1 2 |
# apt-get update # apt-get upgrade |
WARNING!
During the upgrade you may be given an option to manually or automatically restart any currently running services. The recommended strategy is to do manual restart as it provides more flexibility. If you are running SSH service you will be also given an option to disable SSH root access. What it means, that if you opt to “YES” you will no longer be able to SSH login as root user and direct console of ipkvm access will be the only solution to access your server
5. Upgrade Debian
If there are no issues with the package upgrade we are ready to perform a full system distribution upgrade Debian from Wheezy to Jessie.
1 |
# apt-get dist-upgrade |
6. Reboot and check result:
After the upgrade it is recommended to reboot your system:
1 |
# reboot |
Check your upgrade:
1 2 3 4 5 6 7 8 9 10 |
root@debian-test:~# hostnamectl Static hostname: debian-test Icon name: computer-vm Chassis: vm Machine ID: 697b36026554492fbd650c2e8b65e8a2 Boot ID: 80e8858d70964c6abb0a6c8026dd3393 Virtualization: kvm Operating System: Debian GNU/Linux 8 (jessie) Kernel: Linux 3.16.0-4-amd64 Architecture: x86-64 |