BIP KB:
How to upgrade Debian Linux system from Wheezy to Jessie stable release

Article By kevin


img

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:
FROM DEBIAN WHEEZY:
# cat /etc/apt/sources.list
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
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
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.

DEPLOY VPS SERVER

Leave a Reply



Feedbacks