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

Do You Offer VPS with 8 vCPU Cores?

No, we do not provide VPS with 8 vCPU cores. We provide VPS with maximum 4 vCPU cores. This is...

How to use chmod to change file permission?

In this article, we will describe how to use the chmod command to modify file permission in Linux...

How To Configure Redis Caching to Speed Up WordPress on Ubuntu 18.04?

Redis is an open-source in-memory data structure store. It can be used as a DB and cache. It...

What are the benefits of CloudLinux?

There are numerous advantages and benefits of CloudLinux OS and we will discuss it in this...

Is it possible to take complete VPS backup in VPS itself?

Please note that, there is no provision to take backup of full VPS image in VPS itself. As an...