How to upgrade Debian Linux system from Wheezy to Jessie stable release

Article By kevin


BIP media Upgrade Debian Package debian VPS Templates for cloud servers. This tutorial describes the process to upgrade Debian from Debian Wheezy to Debian Jessie. Debian Linux, code name "Jessie" is the latest stable Debian release.

It is important to point out that nothing is full proof so proper backup procedure should be discussed before you start the upgrade process. The rule of thumb is, the less software installed on your system the higher chance for a successful upgrade. Before you move on with the upgrade consider the following recommendations.

1. Upgrade Debian Recommendations

  • Remove unnecessary packages
  • Fully upgrade your current system
  • Make a data backup
  • Although there should not be a problem performing the update via SSH, If possible, It's recommended that you perform the upgrade directly from console

2. Fully Upgrade Debian current System

First, fully upgrade your current Wheezy Debian system:
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

3. Upgrade to Debian Jessie

Once the above upgrade is complete, update /etc/apt/sources.list:
# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
For example:
# cat /etc/apt/sources.list
deb wheezy/updates main
deb-src wheezy/updates main

deb wheezy main contrib non-free
deb-src wheezy main contrib non-free
deb jessie/updates main
deb-src jessie/updates main

deb jessie main contrib non-free
deb-src jessie main contrib non-free
At this stage we are ready to upgrade packages:
# apt-get update
# apt-get upgrade
During the upgrade process you may be given an option to manually or automatically restart any currently running services. The recommended strategy is to do manual restart because it provides more flexibility. If you are running SSH service you will be also given an option to disable SSH root access. What this means is that if you opt to "YES" you will no longer be able to SSH and login as root user. If there are no issues with the package upgrade then you are ready to perform a full system distribution upgrade from Debian Wheezy to Debian Jessie.
# apt-get dist-upgrade
After the upgrade it is recommended to reboot your system:
# reboot
Check your upgrade:
root@debian:~# hostnamectl 
   Static hostname: debian
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 689d78b3d6cdd03bb9cf478d1a3fb18d
           Boot ID: 16583ebda9d427cc9757fcbced3850d0
    Virtualization: oracle
  Operating System: Debian GNU/Linux 8 (jessie)
            Kernel: Linux 3.16.0-4-amd64
      Architecture: x86-64

Tags: , , , , , , , , , , , , , , , ,

Spin Up A VPS Server In No Time Flat

Simple Setup

Full Root Access

Straightforward Pricing


Leave a Reply