Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Debian»How to Upgrade Debian 7 Wheezy to Debian 8 Jessie

    How to Upgrade Debian 7 Wheezy to Debian 8 Jessie

    By RahulApril 26, 20152 Mins Read

    Debian 8.0 “Jessie” has been released on April 25th, 2015. After a long wait of 2 years finally Debian Team has announced his new release 8 code name “Jessie“.

    Advertisement

    If you are a user of Debian 7, this article will help your for upgrading your system to Debian 8 with simple steps. In this command all commands are running with root account. So before starting work login to your system as root account or use sudo with all commands.

    1. Backup Your Data

    The first and very important thing is data. So we strongly recommend you to take backup any data which is important for you’re in existing system.

    • Application codebases
    • Databases
    • Configuration files (eg: DNS, Apache, MySQL, PHP, Postgres etc)
    • Emails and email accounts.
    • User accounts details.

    For more details read Chapter 4. Upgrades from Debian 7 (wheezy) recommendation by Debian before upgrading to Debian 8.0.

    2. Upgrade All Packages of Debian 7

    Before upgrading to Debian 8.0 first update all packages of current installed Debian system using following command.

    [email protected]:~:# apt-get update && apt-get upgrade
    

    3. Update sources.list Repository File

    Now edit Debian apt repository file /etc/apt/sources.list and replace all “wheezy” with “jessie” to get Debian 8 packages. Replace all instances at once use sed command like below:

    [email protected]:~# cp /etc/apt/sources.list /etc/apt/sources.list.orig
    [email protected]:~# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
    

    Old /etc/apt/sources.list File:

    deb http://mirror.cc.columbia.edu/debian/ wheezy main
    deb-src http://mirror.cc.columbia.edu/debian/ wheezy main
    
    deb http://security.debian.org/ wheezy/updates main
    deb-src http://security.debian.org/ wheezy/updates main
    
    # wheezy-updates, previously known as 'volatile'
    deb http://mirror.cc.columbia.edu/debian/ wheezy-updates main
    deb-src http://mirror.cc.columbia.edu/debian/ wheezy-updates main
    

    After changes new /etc/apt/sources.list File:

    deb http://mirror.cc.columbia.edu/debian/ jessie main
    deb-src http://mirror.cc.columbia.edu/debian/ jessie main
    
    deb http://security.debian.org/ jessie/updates main
    deb-src http://security.debian.org/ jessie/updates main
    
    # jessie-updates, previously known as 'volatile'
    deb http://mirror.cc.columbia.edu/debian/ jessie-updates main
    deb-src http://mirror.cc.columbia.edu/debian/ jessie-updates main
    

    4. Update all Packages Again

    After replaces all references of repository source file, first update all packages before upgrading distribution.

    [email protected]:~:# apt-get update && apt-get upgrade
    

    5. Upgrade to Debian 8 Jessie

    Finally upgrade your current Debian 7 distribution to Debian 8 Jessie using following command.

    [email protected]:~:# apt-get dist-upgrade
    

    6. Verify Upgrade

    At this point your system will have upgraded successfully to Debian 8. Lets reboot the instance first and check the version of upgraded system.

    [email protected]:~:# reboot
    

    Verify current version of Debian.

    [email protected]:~:# lsb_release -a
    
    Distributor ID: Debian
    Description:    Debian GNU/Linux 8.0 (jessie)
    Release:        8.0
    Codename:       jessie
    
    

    Congratulation’s You have successfully upgraded to Debian 8 “Jessie”. Have fun!

    debian debian 7 debian 8 upgrade
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Install Flask on Debian

    How to Install and Use Flask on Debian 11/10

    How to Setup DKIM (DomainKeys) with Postfix

    A Step-by-Step Guide to Installing OpenDKIM with Postfix on Ubuntu – Unleash the Power of DKIM!

    Setup Selenium with Python and Chrome on Ubuntu & Debian

    Setup Selenium with Python and Chrome Driver on Ubuntu & Debian

    View 3 Comments

    3 Comments

    1. Beaglebone_user on September 6, 2021 6:46 am

      Thank you! Very helpful :). After step 4 it started upgrading automatically though.

      Reply
    2. exp on December 29, 2015 3:28 pm

      thx. very useful.

      Reply
    3. user1226868 on November 1, 2015 2:38 pm

      Can somebody please help me with this problem:

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • 20 Basic Linux Commands for the Beginners (Recommended)
    • tail Command in Linux with Examples
    • What is a Orphan Process in Unix/Linux
    • How To Display Warning Message to Unauthorized SSH Access
    • How to Set a Custom SSH Login Banner and MOTD
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.