How to upgrade Debian 7 (Wheezy) to 10 (Buster) version?

It is always recommended to upgrade the version to prevent any security vulnerability. You can check the current version of your existing Debian version using the below command.

# lsb_release -a

          

As per the above image currently, there are Debian 7.8(Wheezy) is running. Before running any upgrade, it is very important to take the backup of all the Data like Web-content, Database and email accounts. You should take a backup at third party Backup service or in external Drive.

We will upgrade Debian OS step by step as Upgrade Debian 7 (Wheezy) to 8 (Jessie) to 9 (Stretch) to 10 (Buster).

 

Upgrade Debian 7 (Wheezy) to 8 (Jessie)

 

  1. Add the following syntax at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ jessie main
    deb-src http://ftp.debian.org/debian/ jessie main
    
    deb http://security.debian.org/debian-security jessie/updates 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://ftp.debian.org/debian/ jessie-updates main deb-src http://ftp.debian.org/debian/ jessie-updates main

 

  1. Update Debian Package using apt-get

    # apt-get update
    
    # apt-get upgrade
  1. Hit Yes to apply service Restart during package upgrade.





  2. Dist upgrade will update all the package to the newest available version

    # apt-get dist-upgrade
  1. We will disable the Password authentication and let the dist upgrade completed.

  2. Reboot Server.

  3. Enter below command. It will show below output that your version is upgraded to Debian 8 (jessie).

    # cat /etc/os-release
    

 

Debian 8 (Jessie) to 9 (Stretch)

 

  1. Replace the below content at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ stretch main
    deb-src http://ftp.debian.org/debian/ stretch main
    
    deb http://security.debian.org/debian-security stretch/updates main
    deb http://security.debian.org/ stretch/updates main deb-src http://security.debian.org/ stretch/updates main
    # stretch-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ stretch-updates main deb-src http://ftp.debian.org/debian/ stretch-updates main



  1. Update Debian 8 (Jessie) before starting upgrade process.

    # apt-get update
  1. We will upgrade version with below command.

    # apt-get upgrade
  1. Upgrade packages to new version with dist.

    # apt-get dist-upgrade
  1. Reboot Server

  2. Enter below command. It will show below output that your version is upgraded to Debian 9 (Stretch).

    # cat /etc/os-release

Debian 9 (Stretch) to 10 (Buster)

 

  1. Replace the below content at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ buster main
    deb-src http://ftp.debian.org/debian/ buster main
    
    deb http://security.debian.org/debian-security buster/updates main
    deb http://security.debian.org/ buster/updates main deb-src http://security.debian.org/ buster/updates main
    # buster-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ buster-updates main deb-src http://ftp.debian.org/debian/ buster-updates main

 

  1. Update Debian 9 (Stretch) before starting upgrade process..

    # apt-get update
  1. We will upgrade version with below command.

    # apt-get upgrade
  1. Upgrade packages to new version with dist..

    # apt-get dist-upgrade
  1. Reboot Server

  2. Enter below command. It will show below output that your version is upgraded to Debian 10 (Buster).

    # cat /etc/os-release


  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Setup NTP Server in CentOS?

NTP enables the automatically sync your system time with a remote server. With the help of NTP...

How do I enable apache file and directory indexing in Linux or UNIX?

There are 2 ways to enable apache file and directory indexing. Using Apache config file : You...

How to install Virtualmin / Webmin control panel in Ubuntu 16/18?

Before installing Virtualmin/Webmin on Ubuntu 16. We need to make sure that our system is up to...

How to Kill a Process Running on Specific Port in Linux?

First of all, we will need to identify the Process ID which runs on any port. Once we find the...

How to Install Redis on Ubuntu?

Redis called as Remote Dictionary Server. Redis is an Open-Source in-memory data structure...