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 reset/renew cPanel/WHM Self-signed Certificate?

You might be receiving an email with subject like “The SSL certificate for “[service like exim,...

how to configure SSH key-based Authentication in Linux VPS or Dedicated Server

This article will guide how to configure SSH key-based Authentication in Linux VPS or Dedicated...

Will internal traffic between two VPS viz. a Database Server and a Web Server be counted in my bandwidth usage?

Yes it will. The traffic will be counted in the bandwidth usage of your VPS. Even if you use...

How to install ISPConfig on CentOS 7.x?

This article will help you on how to install ISPConfig on CentOS 7.xISP config is an open-source...

How To Add A New IP Address In Virtualmin?

You can add an IP Address via Networking Module directly with virtualmean. To do this, you need...